Commit 2b3b8e57 authored by Jérome Perrin's avatar Jérome Perrin

when building invoice, use order and packing list as explanation uid, to...

when building invoice, use order and packing list as explanation uid, to collect also movements coming from the packing list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25351 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09aa0042
...@@ -58,8 +58,9 @@ packing_list = sci[\'object\']\n ...@@ -58,8 +58,9 @@ packing_list = sci[\'object\']\n
delivery_tool = sci.getPortal().portal_deliveries\n delivery_tool = sci.getPortal().portal_deliveries\n
\n \n
if packing_list.getPortalType() == \'Purchase Packing List\':\n if packing_list.getPortalType() == \'Purchase Packing List\':\n
explanation_uid = packing_list.getCausalityUid(\n explanation_uid = packing_list.getCausalityUid(portal_type=\'Purchase Order\')\n
portal_type=\'Purchase Order\') or packing_list.getUid()\n if explanation_uid:\n
explanation_uid = (explanation_uid, packing_list.getUid())\n
\n \n
tag = \'build_invoice_%s\' % packing_list.getRelativeUrl()\n tag = \'build_invoice_%s\' % packing_list.getRelativeUrl()\n
# WARNING: this tag is also used in InvoiceTransaction_postGeneration script\n # WARNING: this tag is also used in InvoiceTransaction_postGeneration script\n
......
...@@ -58,8 +58,9 @@ packing_list = sci[\'object\']\n ...@@ -58,8 +58,9 @@ packing_list = sci[\'object\']\n
delivery_tool = sci.getPortal().portal_deliveries\n delivery_tool = sci.getPortal().portal_deliveries\n
\n \n
if packing_list.getPortalType() == \'Sale Packing List\':\n if packing_list.getPortalType() == \'Sale Packing List\':\n
explanation_uid = packing_list.getCausalityUid(\n explanation_uid = packing_list.getCausalityUid(portal_type=\'Sale Order\')\n
portal_type=\'Sale Order\') or packing_list.getUid()\n if explanation_uid:\n
explanation_uid = (explanation_uid, packing_list.getUid())\n
\n \n
tag = \'build_invoice_%s\' % packing_list.getRelativeUrl()\n tag = \'build_invoice_%s\' % packing_list.getRelativeUrl()\n
# WARNING: this tag is also used in InvoiceTransaction_postGeneration script\n # WARNING: this tag is also used in InvoiceTransaction_postGeneration script\n
......
579 580
\ No newline at end of file \ 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