"Item Jnl.-Post Line"(CodeUnit 22).PostItem line 72 - Base Application by Microsoft"Item Jnl.-Post Line"(CodeUnit 22).Code line 140 - Base Application by Microsoft
"Item Jnl.-Post Line"(CodeUnit 22).PostSplitJnlLine line 12 - Base Application by Microsoft
"Item Jnl.-Post Line"(CodeUnit 22).RunWithCheck line 16 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).RunItemJnlPostLine line 2 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).PostItemJnlLine line 31 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).PostItemTrackingForShipment line 88 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).PostItemTracking line 46 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).PostItemTrackingLine line 22 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).PostSalesLine line 61 - Base Application by Microsoft
"Sales-Post"(CodeUnit 80).OnRun(Trigger) line 105 - Base Application by Microsoft
"Sales-Post (Yes/No)"(CodeUnit 81).OnRunPreview line 15 - Base Application by Microsoft
"Gen. Jnl.-Post Preview"(CodeUnit 19).OnRunPreview(Event) line 2 - Base Application by Microsoft
"Gen. Jnl.-Post Preview"(CodeUnit 19).RunPreview line 4 - Base Application by Microsoft
"Gen. Jnl.-Post Preview"(CodeUnit 19).PreviewStart line 17 - Base Application by Microsoft
"Gen. Jnl.-Post Preview"(CodeUnit 19).Preview line 3 - Base Application by Microsoft
"Sales-Post (Yes/No)"(CodeUnit 81).Preview line 6 - Base Application by Microsoft
"Sales Invoice"(Page 43).ShowPreview line 5 - Base Application by Microsoft
"Sales Invoice"(Page 43)."Preview - OnAction"(Trigger) line 2 - Base Application by Microsoft
hi
This appears to be a list of code units and lines of code that are executed when posting a sales invoice in Business Central. Here's a high-level explanation of what's happening:
The "Item Jnl.-Post Line" code unit (CodeUnit 22) is called to post item journal lines. This includes posting the item quantity and cost to the appropriate general ledger accounts.
The "Sales-Post" code unit (CodeUnit 80) is called to post sales lines. This includes updating the sales order status, calculating the sales amount, and posting the revenue and cost of goods sold to the appropriate general ledger accounts.
The "Gen. Jnl.-Post Preview" code unit (CodeUnit 19) is called to preview the general journal entries that will be created as a result of posting the sales invoice.
The "Sales-Post (Yes/No)" code unit (CodeUnit 81) is called to display a preview of the general journal entries and ask the user to confirm whether to post them or not.
Finally, the "Sales Invoice" page (Page 43) is called to display the sales invoice and allow the user to preview and post it.
Each of these code units and pages contains a set of rules and procedures that ensure the accurate posting of the sales invoice and related transactions to the general ledger accounts.
DAniele
So this is happening when you try to add a lines to a sales order or when you try to post it?
I am trying to register a sales invoice, and this error is keeping me from doing so, i have a strong suspicion its something to do with the lot number assignment and product movement number, i had something similar happen before where the lot and product movement numbers would get assigned to a different line in a different sales shipment, so i am trying to see if i can fix the issue trough data editor in a test copy of the enviroment, any help would be appreciated.
this is fully standard BC, no custom code.
I think you need to explain some more about what you are trying to do. Are you using a function in Business Central or are you running some custom code that you have made?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156