...
LinesNotCopied := 0;
CASE CurrentMenuType OF
0:
BEGIN
CurrForm.PostedShpts.FORM.GetSelectedLine(FromSalesShptLine);
CopyDocMgt.SetProperties(FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,OriginalQuantity);
CopyDocMgt.CopySalesShptLinesToDoc(
ToSalesHeader,FromSalesShptLine,LinesNotCopied,MissingExCostRevLink);
END;
1:
...
...
LinesNotCopied := 0;
CASE CurrentMenuType OF
0:
BEGIN
CurrForm.PostedShpts.FORM.GetSelectedLine(FromSalesShptLine);
// Add the following line.
CopyDocMgt.CopyAllDimensions;
// End of the added line.
CopyDocMgt.SetProperties(FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,OriginalQuantity);
CopyDocMgt.CopySalesShptLinesToDoc(
ToSalesHeader,FromSalesShptLine,LinesNotCopied,MissingExCostRevLink);
END;
1:
...
...
ToSalesHeader,FromSalesInvLine,LinesNotCopied,MissingExCostRevLink);
END;
2:
BEGIN
CurrForm.PostedReturnRcpts.FORM.GetSelectedLine(FromReturnRcptLine);
CopyDocMgt.SetProperties(FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,OriginalQuantity);
CopyDocMgt.CopySalesReturnRcptLinesToDoc(
ToSalesHeader,FromReturnRcptLine,LinesNotCopied,MissingExCostRevLink);
END;
3:
...
...
ToSalesHeader,FromSalesInvLine,LinesNotCopied,MissingExCostRevLink);
END;
2:
BEGIN
CurrForm.PostedReturnRcpts.FORM.GetSelectedLine(FromReturnRcptLine);
// Add the following line.
CopyDocMgt.CopyAllDimensions;
// End of the added line.
CopyDocMgt.SetProperties(FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,OriginalQuantity);
CopyDocMgt.CopySalesReturnRcptLinesToDoc(
ToSalesHeader,FromReturnRcptLine,LinesNotCopied,MissingExCostRevLink);
END;
3:
...