We have a requirement to pick from different no. series while creating sales invoice from Project planning lines for Project accounting module in business Central. We have customized it in such a way the user can select the required no. series as per the screenshots below.
Can anyone please guide how to get this selected no. series during sales invoice creation and where to pass this selected value for us to create an invoice with the selected no. series.
Generating sales invoice from Project planning lines having multiple invoice no. series
Hello,
as you said you customized Create Sales Invoice function, and within that process report you must add code so that function get your picked No. series and create Sales invoice with that series from request page. Standard functionality is that no. series will be picked from Sales & Receivables Setup for defined Sales Invoice no. series.
Try to debug codeunit 1002 "Job Create-Invoice" and see in which moment it will get Sales Invoice No. from Sales & Receivables Setup and try to add your code there so it get your No. series from request page, instead of no. series that is defines in the Sales Setup.
Greetings
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.