I’m currently working on Nav 5.0 SP1 IN .
I need to Post the SO/PO with the Multiple Sale Items.
The Fields “Qty. to Ship and “Qty. to Receive” of the SO/PO Document gets populate automatically at time of entering the amount at the “Quantity” Field.
But Some Item of the currently i need not ship ,But after Posting the Order all the Lines including Qty to Ship is 0 is also getting updated to the Posted Invoice Sales Line. Please let me know wheather i can change the default functionality.if i change the existing feature , any issues will come in future
Wat can i do for this. Is there is any way to solve this problem. Need urgent reply from any of the navision experts .
Thanks in Advance
Subha
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Code Unit = 90.
Trigger = On Run
Green = You need to write the code.
Blue = Microsft coding.
Wtite the code after this line
IF (PurchRcptHeader."No." <> '') AND (PurchLine."Receipt No." = '') AND
NOT RoundingLineInserted
THEN BEGIN
// My coding for post only when the qty – to receive <> 0
IF TempPurchLine."Qty. to Receive" <> 0 THEN BEGIN
Then After this coding
PurchRcptLine."Item Rcpt. Entry No." :=
InsertRcptEntryRelation(PurchRcptLine); // ItemLedgShptEntryNo
PurchRcptLine."Item Charge Base Amount" :=
ROUND(CostBaseAmount / PurchLine.Quantity * PurchRcptLine.Quantity);
END;
PurchRcptLine.INSERT;
Write your coding
END ;
http://ssdynamics.co.in