I Have a Page which posts a warehouse entry. When Posting a partially received Item I Get this error, On the debugger it error's on this line. I'm unsure on how the Base Quantity's differ depending on the Unit of measure. Any ideas on how I can start finding this solution.
IF OnlyLot THEN BEGIN
GetUndefinedLots(ReservationEntry,Handle,Invoice,LotsToHandleUndefined,LotsToInvoiceUndefined);
IF NOT (LotsToHandleUndefined OR LotsToInvoiceUndefined) THEN
EXIT;
END;
IF NOT ReservationEntry.FIND('-') THEN
EXIT;
REPEAT
IF Handle THEN
HandleQtyBase += ReservationEntry."Qty. to Handle (Base)";
IF Invoice THEN
InvoiceQtyBase += ReservationEntry."Qty. to Invoice (Base)";
UNTIL ReservationEntry.NEXT = 0; //??
TrackingSpecification.TRANSFERFIELDS(ReservationEntry);
IF Handle THEN
IF ABS(HandleQtyBase) > ABS(QtyToHandleBase) THEN // ERROR HERE
TrackingSpecification.TestFieldError(FIELDCAPTION("Qty. to Handle (Base)"),HandleQtyBase,QtyToHandleBase);
IF Invoice THEN
IF ABS(InvoiceQtyBase) > ABS(QtyToInvoiceBase) THEN
TrackingSpecification.TestFieldError(FIELDCAPTION("Qty. to Invoice (Base)"),InvoiceQtyBase,QtyToInvoiceBase);
*This post is locked for comments