Orders and Invoices must disallow amount lines without product/charge
Probably this can be configured via a Sysconfig parameter if somebody needs this kind of lines.
But it is usually a mistake from the operator to save an order or an invoice line without product or charge and with an amount.
It can be good to allow a way to avoid these errors.
oops..I saw we can configure it through the document type. That is sufficient.
Well this must be configurable to support backward compatibility. Many people use the "descriptive" line since compiere era to workaround many issues in invoice/order. This is not ideal however, so if it is configurable, by the default we should not allowed such line.
Just my 2 cents.
Also - I think orders and invoices must implement the same as other documents, not allowing the user to enter product and charge at the same time.
(via readonly or displaylogic)
i think it should be configured in the doc type.
I've made this customization (adding checkbox 'IsChargeOrProductMandatory' on C_DocType and add a control in a modelValidator class) and it works fine.
Another similar control would be to disallow line with charges and amount equals to 0 (which should be configured also in the doc type with a checkbox).