|
-
-
-
- |
-
- [[ move_g['code'] ]]
- |
-
- [[ move_g['name'] ]]
- |
-
-
-
-
- |
-
-
-
-
+ [[ move_g['code'] ]] [[ move_g['name'] ]]
|
@@ -199,126 +195,110 @@
|
- [[ repeatIn(move_g['lines'],'move_a') ]]
- [[ move_a['date'] ]]
+ [[ repeatIn(lines_a(move_g['id'], o.id, data['form']['date1'], data['form']['date2']), 'move_a') ]]
+ [[ move_a['date'] ]]
|
- [[ move_a['cj'] ]]
+ [[ move_a['cj'] ]]
|
- [[ move_a['name'] ]]
+ [[ move_a['name'] ]]
|
- [[ move_a['quantity'] ]]
+ [[ '%.2f' % move_a['quantity'] ]]
|
- [[ move_a['debit'] ]]
+ [[ '%.2f' % move_a['debit'] ]]
|
- [[ move_a['credit'] ]]
+ [[ '%.2f' % move_a['credit'] ]]
|
- [[ '%.2f' % move_a['balance'] ]]
+ [[ '%.2f' % move_a['balance'] ]]
|
- [[ '%.2f' % move_a['revenue'] ]]
+ [[ '%.2f' % move_a['revenue'] ]]
|
-
+
|
-
-
-
+ Total ([[ move_g['name'] ]])
|
- Sum of account [[ move_g['name'] ]]
+ [[ '%.2f' % move_g['quantity'] ]]
|
- [[ move_g['quantity'] ]]
+ [[ '%.2f' % move_g['debit'] ]]
|
- [[ move_g['debit'] ]]
+ [[ '%.2f' % move_g['credit'] ]]
|
- [[ move_g['credit'] ]]
+ [[ '%.2f' % move_g['balance'] ]]
|
- [[ move_g['balance'] ]]
- |
-
- [[ move_g['revenue'] ]]
+ [[ '%.2f' % (account_g_sum_revenue(move_g['id']) or 0.0) ]]
|
-
+
-
+
|
-
-
-
+ Total ([[ o['code'] ]])
|
- sum [[ o['code'] ]]
+ [[ '%.2f' % (account_sum_qty(o.id, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ o['name'] ]]
+ [[ '%.2f' % (account_sum_debit(o.id, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ o['quantity'] ]]
+ [[ '%.2f' % (account_sum_credit(o.id, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ o['debit'] ]]
+ [[ '%.2f' % (account_sum_balance(o.id, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ o['credit'] ]]
- |
-
- [[ o['balance'] ]]
- |
-
- [[ o['revenue'] ]]
+ [[ '%.2f' % (account_sum_revenue(o.id) or 0.0) ]]
|
-
+
-
+
|
- Sum
+ Total
|
- [[ totals['quantity'] ]]
+ [[ '%.2f' % (sum_qty(objects, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ totals['debit'] ]]
+ [[ '%.2f' % (sum_debit(objects, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ totals['credit'] ]]
+ [[ '%.2f' % (sum_credit(objects, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ totals['balance'] ]]
+ [[ '%.2f' % (sum_balance(objects, data['form']['date1'], data['form']['date2']) or 0.0) ]]
|
- [[ totals['revenue'] ]]
+ [[ '%.2f' % (sum_revenue(objects) or 0.0) ]]
|
-
-
-
-
+
|