Commit 1e71c8c2 authored by Jérome Perrin's avatar Jérome Perrin

getTargetStopDate no longer exists, I use getPaymentConditionPaymentDate instead



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10535 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd13141c
......@@ -70,13 +70,13 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
packing_list_list = context.getCausalityValueList(portal_type=[\'Sale Packing List\',\'Sales Packing List\'])\n
packing_list_list = context.getCausalityValueList(portal_type=\'Sale Packing List\')\n
\n
if len(packing_list_list) > 0:\n
packing_list = context.getCausalityValueList(portal_type=[\'Sale Packing List\',\'Sales Packing List\'])[0]\n
order = packing_list.getCausalityValueList()[0]\n
packing_list = packing_list_list[0]\n
order = packing_list.getCausalityValue(portal_type=\'Sale Order\')\n
from DateTime import DateTime\n
due_date = packing_list.getTargetStopDate( DateTime() )\n
due_date = order.getPaymentConditionPaymentDate( DateTime() )\n
pat = None #order.getPaymentAdditionalTerm()\n
else:\n
due_date = context.getStartDate()\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