Invoice creation restriction

Hi,

How to force user to create invoices againts purchase receipt or delivery only? They will not able to create invoices from sales/purchase order

Tks

You can make the Sales Order and Delivery Note field in the “Sales Invoice Item” and PO and GRN fields in “Purchase Invoice Item” doctype as mandatory.

This would ensure that the following path is always followed: SO==>DN==> SI and PO==>GRN==>PI

But please note that on doing this you would not be able to make POS Invoices.

How to set a field as mandatory? Tks

Hello,

You can set field mandatory from Custom Form. Check following link for more help.

https://manual.erpnext.com/customize-erpnext/customize-form