Skip to content

Broken posting of inventory receipts with item tracking and quantity per unit of mesaure > 1 in BC v26.5 #319

@nkarczmarzyk

Description

@nkarczmarzyk

Hello everyone,

Unfortunately, I couldn't find a more suitable place to report my error, so I'm doing it here.

In Business Central version v26.5, there is a problem when posting inventory receipts.

When adding a Invt. Document Line with an item unit of measure which has a quantity per unit of measure > 1 and a defined item tracking for package number we get the following error when posting:

Qty. to Handle (Base) in the item tracking assigned to the document line for item <deducted> is currently 1. It must be 72.

Check the assignment for serial number , lot number , package number <deducted>.

The reason is that in the Base App (v26.5) Codeunit 5854 "Invt. Doc. Line-Reserve" in the procedure TransferInvtDocToItemJnlLine the quantity for transfer reserv entry is no longer in the base quantity:

                  CreateReservEntry.TransferReservEntry(
                    Database::"Item Journal Line",
                    ItemJournalLine."Entry Type".AsInteger(), ItemJournalLine."Journal Template Name",
                    ItemJournalLine."Journal Batch Name", 0, ItemJournalLine."Line No.",
                    ItemJournalLine."Qty. per Unit of Measure", OldReservationEntry,
                    ReceiptQty); // qty base <---- Error is here

In v26.1 this part was

                  CreateReservEntry.TransferReservEntry(
                    Database::"Item Journal Line",
                    ItemJournalLine."Entry Type".AsInteger(), ItemJournalLine."Journal Template Name",
                    ItemJournalLine."Journal Batch Name", 0, ItemJournalLine."Line No.",
                    ItemJournalLine."Qty. per Unit of Measure", OldReservationEntry,
                    ReceiptQty * ItemJournalLine."Qty. per Unit of Measure"); // qty base

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions