To do order processing you must have opted for optional order processing
module(SO). Make sure that you have marked 'Yes' against 'Order
Required' setting in main menu.
Now after that you have to create two DocTypes 1 is for invoice and 2nd is
for order. To create an invoice from an order follow the following steps:
1. Set the following properties of Invoice DocType:
Property
Value
DocOrderFactor
-1
DocOrderWise
True
2. Add txpAgainstOrder, txpOrderNo field in DocInput style of Invoice
DocType.
3. Set "DocOrderFactor=1" property in Order DocType.
Now make an order, then create an invoice. Enter the generated order no.
in invoice's order no. input field it automatically picks all the items from
that order. Make sure you have select the same parties in both order and
invoice.