[Erp5-dev] Chaning values on packing list and its propagation into simulation - bug or feature?

Łukasz Nowak lukasz.nowak at ventis.com.pl
Fri Nov 2 13:42:55 CET 2007


Hello,

I've played a lot with simulations related to accounting - simple ones
(if invoice is causality of parent applied rule) and more complicated -
when packing list or order are parents of applied rule.

I've spotted on bizzare problem.

Create Sale Packing List, add line to it. Confirm - applied rules and
simulations will be created.

Check if _all_ related applied rules and simulation movements are
correct.

Modify quantity on Sale Packing List Line, then packing list will
become diverge, accept decision, solved.

Check if _all_ related applied rules and simulation movements are
correct (==updated).

Now change start date on Sale Packing List. It will become diverged.
Accept decision.

Check if _all_ related applied rules and simulation movements are
correct (==updated). And this check is not passed - start date on
simulation movement, which parent's specialise is
'default_invoicing_rule' is not modified.

And implication - invoice will be created with "wrong" date - old one,
not which is on packing list (same applies to accounting transaction
lines).

Attached unit test (hope enough Nexedish) is following above scenario
(with addition, that packing list is generated by order).

My questions:
 - even if I run this unit test on revision 17359 *please* check me
twice - I'm famous with simple mistakes ;)
 - is such behaviour correct?
 - is such situation unit tested anywhere? (in previous email there
was another problem - modification of dates on invoices)
 - is it a bug or feature?

If it is a bug (and I didn't make another simple mistake) I'd be glad
if it could be confirmed.

Regards,
Luke
-- 
Ł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...'' I am only craftsman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testModifyPackingListAndAccoutningSimulations.py
Type: text/x-python
Size: 24881 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20071102/592bffa5/attachment.py>


More information about the Erp5-dev mailing list