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 at 4:06 PM

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

Thanks.

Armen

Armen Rizal July 13, 2012 at 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 at 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 at 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

Details

Assignee

Reporter

Priority

Created March 6, 2012 at 2:26 AM
Updated March 13, 2014 at 2:20 PM
Resolved March 8, 2012 at 2:22 AM

Flag notifications