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
for line in context.getMovementList(context.getPortalObject().getPortalAccountingMovementTypeList()):\n
node_value = line.getSourceValue(portal_type=\'Account\')\n
if node_value.getAccountType() == \'asset/receivable\':\n
paid = False\n
break\n
if not line.hasGroupingReference():\n
paid = False\n
break\n
\n
if paid:\n
result = "Paid"\n
......
326
\ No newline at end of file
327
\ 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