Posting Sales Documents

subhadynamicssubhadynamics Member Posts: 109
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

Comments

  • kinekine Member Posts: 12,562
    I do not understand the problem from your description. What you need to do?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • reemareema Member Posts: 255
    If I understand your query properly try the following code.

    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 ;
    reema
  • ssinglassingla Member Posts: 2,973
    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
    Why are you not using the invoice functionality with "Get Shipment Lines".
    CA Sandeep Singla
    http://ssdynamics.co.in
  • subhadynamicssubhadynamics Member Posts: 109
    I need to Supress the lines which the Qty to Ship /Qty To Receive is 0.If i will write a code to Hide these lines for Posting ,wheather any issues ??
Sign In or Register to comment.