Orders and Invoices must disallow amount lines without product/charge

Description

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.

Regards,

Carlos Ruiz

Environment

None

Activity

Show:
Armen Rizal
July 13, 2012, 4:06 PM

oops..I saw we can configure it through the document type. That is sufficient.

Thanks.

Armen

Armen Rizal
July 13, 2012, 4:03 PM

Hi Carlos,

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.

Armen

Carlos Ruiz
March 7, 2012, 10:22 PM

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)

Regards,

Carlos Ruiz

Nicolas Micoud
March 6, 2012, 6:11 PM

Hi,

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).

WDYT ?

Fixed

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Priority

Major