Commit 9827c9e3 authored by Romain Courteaud's avatar Romain Courteaud

Check that the line has a grouping reference

parent 0deb9c6e
...@@ -64,8 +64,9 @@ else:\n ...@@ -64,8 +64,9 @@ else:\n
for line in context.getMovementList(context.getPortalObject().getPortalAccountingMovementTypeList()):\n for line in context.getMovementList(context.getPortalObject().getPortalAccountingMovementTypeList()):\n
node_value = line.getSourceValue(portal_type=\'Account\')\n node_value = line.getSourceValue(portal_type=\'Account\')\n
if node_value.getAccountType() == \'asset/receivable\':\n if node_value.getAccountType() == \'asset/receivable\':\n
paid = False\n if not line.hasGroupingReference():\n
break\n paid = False\n
break\n
\n \n
if paid:\n if paid:\n
result = "Paid"\n result = "Paid"\n
......
326 327
\ 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