[Erp5-dev] Holding of creation of Accounting Transaction Line for hand-made Accounting Transactions

Jérôme Perrin jerome at nexedi.com
Wed Apr 11 19:33:46 CEST 2007


Le Mardi 10 Avril 2007 16:54, Łukasz Nowak a écrit :
> Hello,
>
> Creating Sale Invoice Transaction (SIT) or Purchase Invoice Transaction
> (PIT) can be done by hadn (go into accounting_module, create objects) or
> by builder.
>
> While using builder Accounting Transaction Lines (ATL) aren't created -
> there are done by suitable builder using
> default_invoice_transaction_rule - and it works great.
>
> Well - while creating SIT or PIT by hand ATLs are created, user is able
> to choose proper accounts - so far so good. But when user confirm
> transaction more ATLs are created by
> portal_workflow/accounting_workflow/scripts/Delivery_Build script.
>
> How shall I prevent building such lines? 

It's more a problem of preventing creation of simulation movement than a 
problem of preventing building lines. We could change 
portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation
so that it does not call updateAppliedRule in the case of manually
created invoices (ie. without causality) already containing accounting lines, 
but I'm curious about the need for this.
If I understand correctly, it's only when the user create invoice lines,
set the resource on those lines, there is an invoice transaction rule
configured for this resource, but the user doesn't want the system to
generate accounting lines automatically. Why ? isn't it a
misunderstanding from the user ? user could simply wait for accounting
line to be created instead of creating lines manually.

Jérome



More information about the Erp5-dev mailing list