From c3afe326daf4c7e7fecb2e6bee0de65a43100cd0 Mon Sep 17 00:00:00 2001 From: Vinay Rana Date: Fri, 10 Oct 2008 16:24:20 +0530 Subject: [PATCH] modified Qty Cost Ledger (Only Quantities) report rml and sxw file of Analytical account in account module. bzr revid: vinusoft85@gmail.com-20081010105420-nfdj6t57qusd2ckr --- .../project/report/quantity_cost_ledger.rml | 306 +++++++++++++++++- 1 file changed, 305 insertions(+), 1 deletion(-) diff --git a/addons/account/project/report/quantity_cost_ledger.rml b/addons/account/project/report/quantity_cost_ledger.rml index 31d8d578ee4..755ed501fd3 100644 --- a/addons/account/project/report/quantity_cost_ledger.rml +++ b/addons/account/project/report/quantity_cost_ledger.rml @@ -1,3 +1,307 @@ - Cost Ledger [[ company.name ]]Period from [[ data['form']['date1'] ]]to [[ data['form']['date2'] ]]Currency: [[ company.currency_id.name ]] Printing date: [[ time.strftime('%Y-%m-%d') ]] at [[ time.strftime('%H:%M:%S') ]] DateJ.C.CodeMove nameQuantity
[[ repeatIn(objects,'o') ]] [[ o.code ]] [[ o.complete_name ]]Maximal quantity: [[ '%.2f' % (o.quantity_max or 0.0)]]
[[ repeatIn(lines_g(o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_g') ]] [[ move_g['code'] ]] [[ move_g['name'] ]][[ repeatIn(lines_a(move_g['id'],o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_a') ]][[ move_a['date'] ]][[ move_a['cj'] ]][[ move_a['code'] ]][[ move_a['name'] ]][[ '%.2f' % (move_a['quantity'] or 0.0 )]]Total ([[ move_g['code'] ]])[[ '%.2f' % (move_g['quantity'] or 0.0) ]]
Total ([[ o.code ]])[[ '%.2f' % (account_sum_quantity(o.id,data['form']['date1'],data['form']['date2'], data['form']['journal']) or 0.0 )]]
Total[[ '%.2f' % (sum_quantity(objects,data['form']['date1'],data['form']['date2'], data['form']['journal']) or 0.0) ]]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Period from + + + Period to + + + Printing date + + + + + + + [[ data['form']['date1'] ]] + + + [[ data['form']['date2'] ]] + + + [[ time.strftime('%Y-%m-%d') ]] at [[ time.strftime('%H:%M:%S') ]] + + + + + + + + + +
+ + + + Code/Date + + + J.C./Move name + + + Quantity + + + Total + + + + + + + + + + + + + + Total: + + + [[ '%.2f' % (sum_quantity(objects,data['form']['date1'],data['form']['date2'], data['form']['journal']) or 0.0) ]] + + + + + + + + + [[ repeatIn(objects,'o') ]] + + + + [[ o.code ]] + + + [[ o.complete_name ]] + + + Max.qty:[[ '%.2f' % (o.quantity_max or 0.0)]] + + + [[ '%.2f' % (account_sum_quantity(o.id,data['form']['date1'],data['form']['date2'], data['form']['journal']) or 0.0 )]] + + + + + + [[ repeatIn(lines_g(o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_g') ]] + + + + [[ move_g['code'] ]] + + + [[ move_g['name'] ]] + + + + + + + + [[ '%.2f' % (move_g['quantity'] or 0.0) ]] + + + + + + + + + [[ repeatIn(lines_a(move_g['id'],o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_a') ]][[ move_a['date'] ]] + + + [[ move_a['cj'] ]] + + + [[ move_a['name'] ]] + + + [[ '%.2f' % (move_a['quantity'] or 0.0 )]] + + + + + + + + + + + + + + + +
+
+