How to control invoice generation untill all lines in sales order in awaiting billing
we have 4 lines in sales order. Two are in awating billing and two in awaiting shipping. If we run AutoimportInvoice program, the invoice will get generate for two lines.
Business wants to control that and they want system to generate only when all lines in awaiting billing, if two lines are in awaiting billing then system should throw error for autoimport invoice program.
Kindly help us on the same.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):