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

Łukasz Nowak lukasz.nowak at ventis.com.pl
Thu Apr 12 08:55:26 CEST 2007


Hello,

Dnia 11-04-2007, śro o godzinie 19:33 +0200, Jérôme Perrin napisał(a):
> 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.

Huh. I mean, that init scripts[0][1] for Purchase/Sale Invoice
Transaction are creating accounting lines - w/o any user interaction.
Default configruation hides accounting lines object from action box.

In correctly configured system accounting lines will be always (I
think^Wbelive) automatically created by builder using
default_invoice_transaction_rule. So maybe init scripts are just
obsolete? Is this that place, where I may stop system from building
lines manually?

Luke

[0]
http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/SaleInvoiceTransaction_init.xml?view=markup
[1]
http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PurchaseInvoiceTransaction_init.xml?view=markup
-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''





More information about the Erp5-dev mailing list