Announcements
Hi,
Can anyone help me with small bit of C/AL code to Call Sales Posting CU directly from Sale Order line after filling Qty to ship/Qty to Invoice.
I would like to create invoice directly.
I want run this set of code in a batch program.
Please help
Warm Regards
Kris
Add the code in the OnValidate of Qty. to Ship field on the sales line the following code
If "Qty. to Ship" <> 0 THEN BEGIN
GetSalesHeader;
SalesPost.RUN(SalesHeader);
END;
Where SalesPost is the of type Codeunit 80.
100% , I have only one line in sale order. Just I am filling quantity (qty to ship) using batch job. immediately need to post and make qty-to ship to zero and again fill quantity and post.
directly posting sales invoice without any dialog.
Warm regards
Kris
Do you want to post the sales order as soon as you enter the qty. to ship or invoice? do you want to post only that particular line? what is the issue of using sales post action?
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156