I am trying to pull dynamic values upon the creation of a sales invoice as shown below.
Full payment due on demand
Payment Options
Lipa Na M-PESA
Paybill Number 123456
Account Number {{ name }}
The Account Number should be the invoice number but every time a new invoice is created, the document name appears as " New Sales Invoice 1, New Sales Invoice 2, and so forth" until after saving the sales invoice I have to clear Terms and Conditions field to now pick the new document name eg " ACC-SINV-2021-00288". It’s tiresome when you’ve to create a bunch of these documents. Can someone give me few pointers on how to around this issue?