Commit b9607c98 authored by Jérome Perrin's avatar Jérome Perrin

When we apply trade condition on an invoice transaction, we can also...

When we apply trade condition on an invoice transaction, we can also initialise the resource using price currency

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28573 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cbf9db46
......@@ -87,6 +87,12 @@ for category in category_list:\n
v = getPropertyFromTradeCondition(trade_condition, category)\n
if v:\n
new_category_dict[category] = v\n
# for accounting transactions, we also initialize resource with the price\n
# currency\n
if category == \'price_currency\' and \\\n
context.getPortalType() in \\\n
context.getPortalAccountingTransactionTypeList():\n
new_category_dict[\'resource\'] = v\n
\n
\n
def copyPaymentCondition(order, trade_condition):\n
......
721
\ No newline at end of file
722
\ No newline at end of file
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