...
IF PhysInvtCountRep.GetRequest(
PostingDate,DocNo,SortingMethod,PrintDoc,PrintDocPerItem,ZeroQty,PrintQtyCalculated)
THEN BEGIN
Window.OPEN(Text000,TempPhysInvtItemSel."Item No.");
REPEAT
Window.UPDATE;
CalcQtyOnHand.InitializeRequest(PostingDate,DocNo,ZeroQty);
CalcQtyOnHand.SetItemJnlLine(ItemJnlLine);
CalcQtyOnHand.InitializePhysInvtCount(
TempPhysInvtItemSel."Phys Invt Counting Period Code",
TempPhysInvtItemSel."Phys Invt Counting Period Type");
...
...
IF PhysInvtCountRep.GetRequest(
PostingDate,DocNo,SortingMethod,PrintDoc,PrintDocPerItem,ZeroQty,PrintQtyCalculated)
THEN BEGIN
Window.OPEN(Text000,TempPhysInvtItemSel."Item No.");
REPEAT
Window.UPDATE;
// Add the following line.
CalcQtyOnHand.SetSkipDim(TRUE);
CalcQtyOnHand.InitializeRequest(PostingDate,DocNo,ZeroQty);
CalcQtyOnHand.SetItemJnlLine(ItemJnlLine);
CalcQtyOnHand.InitializePhysInvtCount(
TempPhysInvtItemSel."Phys Invt Counting Period Code",
TempPhysInvtItemSel."Phys Invt Counting Period Type");
...