on 2021 Sep 16 4:19 PM
Hello,
via a plugin do you think it is viable to enable seeing all the Invoices for all the branches and if so do you have any direction?
Thanks.
BR,
Elena
Request clarification before answering.
Hello,
To fetch list of Invoice or list of other supported documents from SAP BusinessOne, we call the service sap.POS.GetInvoiceByID
Here we set the parameter BPLId which is copied from the SAP Customer Checkout -> B1 Integration setting
In the PlugIn if you will replace this BPLId with the right branch ID or leave it empty then only invoice from the right branch ID or all invoices from every branch will be returned.
The B1 service call has an extension point where such a logic can be replaced. This solves the fetching problem which is 50% job done.
When you post this AR Invoice, this will again contain the normal BPLId ID from B1 integration setting. Hence in this call sap.POS.PayAsynchIN001 also you need to replace the BPLId ID.
The B1 service for this call has an extension point where such a logic can be replaced. This will solve the rest 50%.
I would suggest that when you fetch an Invoice belonging to a different branch, you store this branch in Receipt And while posting sap.POS.PayAsynchIN001, use this stored branch ID.
Also in 1 receipt mixing of invoices from 1 different branch will not work. As the AR Invoice finally belongs to 1 branch only.
Any financial impact needs to be thought-through specially accounts.
In principal what i explained should work. However i have not done this in a PlugIn. So the developer needs to verify all this before making commitments.
Hope it helps.
If your question in answered correctly, kindly select the answer as "Right Answer". This helps others to follow and easily locate answers.
Regards,
Bikash Bansal
Product Owner - SAP Customer Checkout
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.