Commit 13b7cbb7 authored by Jérome Perrin's avatar Jérome Perrin

price is always 1 on accounting transaction lines, so this rule generating

simulation movement that will be accounting transaction lines can set them a
price of 1


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25063 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4b0c44d
......@@ -143,12 +143,12 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
# 'variation_property_dict': \
# accounting_rule_cell_line.getVariationPropertyDict(),
# 'aggregate_list': accounting_rule_cell_line.getAggregateList(),
# 'price': accounting_rule_cell_line.getPrice(),
# 'price_currency': accounting_rule_cell_line.getPriceCurrency(),
# calculate (quantity * price) * cell_quantity
'quantity': (context_movement.getCorrectedQuantity() *
context_movement.getPrice(0.0)) * accounting_rule_cell_line.getQuantity(),
# 'quantity_unit': accounting_rule_cell_line.getQuantityUnit(),
'price': 1,
'force_update': 1,
}
......
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