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

Reuse accounting API.

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