[IMP]:point_of_sale:Improves the reports
bzr revid: azaz.201186@gmail.com-20101012133956-n53roc67kkxox3g1
This commit is contained in:
parent
01dc02fe61
commit
825308570d
|
@ -121,8 +121,10 @@ class pos_details_summary(report_sxw.rml_parse):
|
|||
|
||||
def _get_start_period(self, objects):
|
||||
date_orders = [obj.date_order for obj in objects]
|
||||
print "=========================",date_orders
|
||||
min_date = min(date_orders)
|
||||
max_date = max(date_orders)
|
||||
print "========================",min_date
|
||||
if min_date == max_date:
|
||||
return '%s' % min_date
|
||||
else:
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<paraStyle name="P3" fontName="Helvetica-Bold" fontSize="16.0" leading="20" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
|
||||
<paraStyle name="P4" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
||||
<paraStyle name="P5" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
||||
<paraStyle name="P6" fontName="Helvetica-Bold" fontSize="16.0" leading="20" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
|
||||
<paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
|
||||
<paraStyle name="Standard" fontName="Helvetica"/>
|
||||
<paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
|
||||
<paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
|
||||
|
@ -150,8 +150,8 @@
|
|||
<font color="white"> </font>
|
||||
</para>
|
||||
<para style="P3">Details of Sales</para>
|
||||
<para style="P3">
|
||||
<font face="Helvetica" size="9.0"/>
|
||||
<para style="P6">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
<blockTable colWidths="167.0,115.0,115.0,115.0" style="Table1">
|
||||
<tr>
|
||||
|
@ -240,7 +240,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</blockTable>
|
||||
<para style="terp_default_9">
|
||||
<para style="terp_default_1">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
</section>
|
||||
|
|
|
@ -149,16 +149,16 @@
|
|||
<para style="terp_default_9">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
<blockTable colWidths="198.0,81.0,87.0,87.0,83.0" style="Tableau6">
|
||||
<blockTable colWidths="301.0,58.0,34.0,57.0,61.0" style="Tableau6">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_tblheader_Details">Product</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_tblheader_Details_Right">Qty</para>
|
||||
<para style="terp_tblheader_Details_Centre">Qty</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_tblheader_Details_Right">Disc. (%)</para>
|
||||
<para style="terp_tblheader_Details_Centre">Disc.(%)</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_tblheader_Details_Right">Unit Price</para>
|
||||
|
@ -172,7 +172,7 @@
|
|||
<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
|
||||
<section>
|
||||
<para style="terp_default_8">[[ repeatIn(pos_payment(o), 'line_ids') ]]</para>
|
||||
<blockTable colWidths="198.0,81.0,87.0,87.0,83.0" style="Tableau7">
|
||||
<blockTable colWidths="301.0,58.0,34.0,57.0,61.0" style="Tableau7">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_default_9">[ [[ line_ids['code'] ]] ] [[ line_ids['name'] ]]</para>
|
||||
|
@ -194,7 +194,7 @@
|
|||
</blockTable>
|
||||
</section>
|
||||
</section>
|
||||
<blockTable colWidths="198.0,81.0,87.0,87.0,83.0" style="Table1">
|
||||
<blockTable colWidths="302.0,57.0,34.0,57.0,61.0" style="Table1">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_default_9">
|
||||
|
@ -215,7 +215,7 @@
|
|||
<para style="terp_tblheader_Details">Net Total:</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_default_Right_9">[[ formatLang(pos_payment_total(o)) or removeParentNode('blockTable')]] [[ company.currency_id.symbol ]]</para>
|
||||
<para style="terp_default_Right_9_Bold">[[ formatLang(pos_payment_total(o)) or removeParentNode('blockTable')]] [[ company.currency_id.symbol ]]</para>
|
||||
</td>
|
||||
</tr>
|
||||
</blockTable>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<document filename="test.pdf">
|
||||
<template pageSize="(595.0,842.0)" title="Payment" author="OpenERP S.A. (sales@openerp.com)" allowSplitting="20">
|
||||
<template pageSize="(595.0,842.0)" title="Sales Lines" author="OpenERP S.A. (sales@openerp.com)" allowSplitting="20">
|
||||
<pageTemplate id="first">
|
||||
<frame id="first" x1="27.0" y1="57.0" width="512" height="728"/>
|
||||
</pageTemplate>
|
||||
|
@ -128,7 +128,7 @@
|
|||
<para style="Standard">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
<blockTable colWidths="271.0,63.0,45.0,64.0,68.0" style="Table3">
|
||||
<blockTable colWidths="301.0,57.0,35.0,57.0,61.0" style="Table3">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_tblheader_Details">Product</para>
|
||||
|
@ -149,7 +149,7 @@
|
|||
</blockTable>
|
||||
<section>
|
||||
<para style="terp_default_1">[[ repeatIn(pos_payment_date(data['form']), 'line_ids') ]]</para>
|
||||
<blockTable colWidths="271.0,63.0,45.0,64.0,68.0" style="Table6">
|
||||
<blockTable colWidths="301.0,58.0,34.0,57.0,61.0" style="Table6">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_default_9">[ [[ line_ids['code'] ]] ] [[ line_ids['name'] ]]</para>
|
||||
|
@ -169,7 +169,7 @@
|
|||
</tr>
|
||||
</blockTable>
|
||||
</section>
|
||||
<blockTable colWidths="271.0,63.0,45.0,64.0,68.0" style="Table5">
|
||||
<blockTable colWidths="302.0,57.0,34.0,57.0,61.0" style="Table5">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="Table Contents">
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
<para style="terp_default_8">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
<blockTable colWidths="370.0,55.0,95.0" style="Table3">
|
||||
<blockTable colWidths="356.0,68.0,95.0" style="Table3">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_tblheader_General">Product</para>
|
||||
|
@ -182,7 +182,7 @@
|
|||
<para style="terp_default_1">[[ repeatIn(get_data(statement), 'line_ids') and ' ' or removeParentNode('blockTable') ]]</para>
|
||||
<section>
|
||||
<para style="terp_default_1">[[ repeatIn(get_data(statement), 'line_ids')]]</para>
|
||||
<blockTable colWidths="371.0,55.0,95.0" style="Table6">
|
||||
<blockTable colWidths="356.0,69.0,95.0" style="Table6">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="terp_default_9">[ [[line_ids['code'] ]] ] [[ line_ids['name'] ]]</para>
|
||||
|
@ -191,13 +191,13 @@
|
|||
<para style="terp_default_Right_9">[[ formatLang(line_ids['qty']) ]] [[line_ids['uom'] ]]</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_default_Right_9_Bold">[[ formatLang(line_ids['amt']) ]] [[ company.currency_id.symbol ]]</para>
|
||||
<para style="terp_default_Right_9">[[ formatLang(line_ids['amt']) ]] [[ company.currency_id.symbol ]]</para>
|
||||
</td>
|
||||
</tr>
|
||||
</blockTable>
|
||||
</section>
|
||||
</section>
|
||||
<blockTable colWidths="371.0,55.0,94.0" style="Table5">
|
||||
<blockTable colWidths="357.0,69.0,94.0" style="Table5">
|
||||
<tr>
|
||||
<td>
|
||||
<para style="P1">
|
||||
|
@ -208,7 +208,7 @@
|
|||
<para style="terp_tblheader_General_Right">Total :</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_default_Right_9">[[ formatLang(get_total(statement)) ]] [[ company.currency_id.symbol ]]</para>
|
||||
<para style="terp_default_Right_9_Bold">[[ formatLang(get_total(statement)) ]] [[ company.currency_id.symbol ]]</para>
|
||||
</td>
|
||||
</tr>
|
||||
</blockTable>
|
||||
|
|
Loading…
Reference in New Issue