Hi,
When we create a document programmatically, we fill in only a few mandatory fields, and the rest of the fields' value is determined by B1 automatically when we add the document.
Example, B1 will automatically set the Tax Amount, if we specify the Tax Code. Similarly for many other fields.
Before adding the document, if I want to show a preview of some key fields to the user (like say Tax Amount, or Price after Discount), and I want to show the values which B1 will auto calculate when adding the document, how can I do this?
For example, I read an Excel file and create the document objects using the DI API, Before posting to SAP, I want to show all the calculated fields to the user, like Tax Amount, Price After Discount, Revenue Ledger Name, etc, which are determined by SAP. Once the user reviews and clicks on Post button, I will add the documents to SAP.
My hunch is that it may not be possible, but I am still taking a chance here
Thanks.