Commit bbbf44d4 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed stupid errors.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2206 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75765fdd
...@@ -92,19 +92,19 @@ class PaymentRule(Rule): ...@@ -92,19 +92,19 @@ class PaymentRule(Rule):
if bank_id in applied_rule.objectIds(): if bank_id in applied_rule.objectIds():
bank_movement = applied_rule[bank_id] bank_movement = applied_rule[bank_id]
else: else:
transformation_source = applied_rule.newContent( bank_movement = applied_rule.newContent(
type_name = payment_line_type, type_name = payment_line_type,
id = bank_id) id = bank_id)
receivable_id = 'receivable' receivable_id = 'receivable'
if receivable_id in applied_rule.objectIds(): if receivable_id in applied_rule.objectIds():
receivable_movement = applied_rule[receivable_id] receivable_movement = applied_rule[receivable_id]
else: else:
transformation_source = applied_rule.newContent( receivable_movement = applied_rule.newContent(
type_name = payment_line_type, type_name = payment_line_type,
id = receivable_id) id = receivable_id)
bank_movement._setQuantity() bank_movement.setQuantity(my_parent_movement.getQuantity())
receivable_movement._setQuantity() receivable_movement.setQuantity(0 - my_parent_movement.getQuantity())
Rule.expand(self, applied_rule, **kw) Rule.expand(self, applied_rule, **kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment