Commit a92ac956 authored by Łukasz Nowak's avatar Łukasz Nowak

Reuse accounting API.

parent f74a8d01
......@@ -53,10 +53,7 @@
<value> <string>invoice = context\n
\n
total_price = invoice.getTotalPrice()\n
\n
accounting = 0.0\n
for line in invoice.getMovementList(portal_type=invoice.getPortalAccountingMovementTypeList()):\n
accounting += line.getSourceDebit()\n
accounting_price = invoice.AccountingTransaction_getTotalCredit()\n
\n
return total_price == accounting\n
</string> </value>
......
376
\ No newline at end of file
377
\ 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