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):
if bank_id in applied_rule.objectIds():
bank_movement = applied_rule[bank_id]
else:
transformation_source = applied_rule.newContent(
bank_movement = applied_rule.newContent(
type_name = payment_line_type,
id = bank_id)
receivable_id = 'receivable'
if receivable_id in applied_rule.objectIds():
receivable_movement = applied_rule[receivable_id]
else:
transformation_source = applied_rule.newContent(
receivable_movement = applied_rule.newContent(
type_name = payment_line_type,
id = receivable_id)
bank_movement._setQuantity()
receivable_movement._setQuantity()
bank_movement.setQuantity(my_parent_movement.getQuantity())
receivable_movement.setQuantity(0 - my_parent_movement.getQuantity())
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