Commit 28c98a81 authored by Jérome Perrin's avatar Jérome Perrin

Copy Source from Purchase Trade Condition when applying it

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7161 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68b8cabe
......@@ -114,6 +114,10 @@ else :\n
(trade_condition.getDestinationPaymentValue() is not None) :\n
categories += (\'destination_payment/\'+trade_condition.getDestinationPayment(),)\n
\n
# source\n
if order.getSourceValue() is None :\n
if trade_condition.getSourceValue() is not None :\n
categories += (\'source/\'+trade_condition.getSource(),) \n
# source_section\n
if order.getSourceSectionValue() is None :\n
# if source_section is not defined on TradeCondition, use Order source\n
......
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