Hello,
on invoice we have a constraint[1] which restricts the creation of
draft invoices with lines of type product without a given
revenue/expense account. When the sales men and the accountant are the
same person, and there are only some sales/purchases to handle, I
understand some usefulness of the constraint. But this constraint moves
problems from the accounting domain into the sale or purchase domain.
Blocking sale or purchase orders because of missing information for the
accounting domain is IMHO an issue. The revenue/expense account has
neither a function nor a meaning on sales or purchase.
The revenue/expense accounts should become required on invoices which
are checked to 'open'. These accounts are IMHO not required on draft
invoices.
* Is there a technical or functional reason for the constraint?
* Is it an idea to allow draft invoices with lines without
revenue/expense accounts?
(move the constraint to state != draft, cancel)
[1]
http://hg.tryton.org/modules/account_invoice/file/4d3e00bb65ca/invoice.py#l1534
Regards
Udo Spallek
--
_____________________________
virtual things
Preisler & Spallek GbR
München - Aachen
Windeckstr. 77
81375 München
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56
[email protected]
http://www.virtual-things.biz