forked from OCA/commission
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
252 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
|
||
<report auto="True" | ||
id="settlement_report" | ||
model="settlement" | ||
name="settlement.report" | ||
rml="sale_commission/report/settlement_report.rml" | ||
string="Settlement report"/> | ||
|
||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,238 @@ | ||
<?xml version="1.0"?> | ||
<document filename="test.pdf"> | ||
<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20"> | ||
<pageTemplate id="first"> | ||
<frame id="first" x1="0.0" y1="57.0" width="538" height="728"/> | ||
</pageTemplate> | ||
</template> | ||
<stylesheet> | ||
<blockTableStyle id="Standard_Outline"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Table_Address_detail"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Table_Title_String"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Header_Order_Reference_Tbl"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="2,0" stop="2,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="2,0" stop="2,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="3,0" stop="3,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
<lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Content_Order_Reference_Table"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="2,0" stop="2,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="2,0" stop="2,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="3,0" stop="3,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
<lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Move_Line_Header"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#000000" start="4,-1" stop="4,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#000000" start="5,-1" stop="5,-1"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Move_Line_Contect_Assign_State"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Move_Line_Content_Other_State"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Table6"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,-1" stop="6,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | ||
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | ||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Table7"> | ||
<blockAlignment value="LEFT"/> | ||
<blockValign value="TOP"/> | ||
</blockTableStyle> | ||
<blockTableStyle id="Table8"> | ||
<blockAlignment value="CENTER"/> | ||
<blockValign value="MIDDLE"/> | ||
<lineStyle kind="BOX" colorName="#000000" thickness="1" start="0,0" stop="-1,0" /> | ||
</blockTableStyle> | ||
<initialize> | ||
<paraStyle name="all" alignment="justify"/> | ||
</initialize> | ||
<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"/> | ||
<paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
<paraStyle name="Caption" fontName="Helvetica-Oblique" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/> | ||
<paraStyle name="Index" fontName="Helvetica"/> | ||
<paraStyle name="terp_header" fontName="Helvetica-Bold" fontSize="12.0" leading="15" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="12.0" leading="15" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Bold_8" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Bold" rightIndent="0.0" leftIndent="20.0" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/> | ||
<paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="Table Contents" fontName="Helvetica"/> | ||
<paraStyle name="Footer" fontName="Helvetica"/> | ||
<paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/> | ||
<paraStyle name="Horizontal Line" fontName="Helvetica" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="14.0"/> | ||
<paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/> | ||
<paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_2" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_5cm_Above_Space" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_1cm_above_space" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="3.0" spaceAfter="0.0"/> | ||
<paraStyle name="terp_default_Italic" rightIndent="0.0" leftIndent="20.0" fontName="Helvetica-Oblique" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
</stylesheet> | ||
<images/> | ||
<story> | ||
<para style="terp_default_8">[[ repeatIn(objects, 's')]] </para> | ||
<section> | ||
<para style="terp_default_8">[[ repeatIn(s.settlement_agent_id, 'agent') ]] </para> | ||
<para style="terp_default_80">[[ agent.agent_id.partner_id and setLang(agent.agent_id.partner_id.lang) ]]</para> | ||
<blockTable colWidths="538.0" style="Table_Title_String"> | ||
<tr> | ||
<td> | ||
<para style="terp_header">SETTLEMENT: [[ (s.date_from and s.date_to) and formatLang(s.date_from, date=True) + '//' + formatLang(s.date_to, date=True) or s.name ]]</para> | ||
</td> | ||
</tr> | ||
</blockTable> | ||
<para style="terp_default_5cm_Above_Space"> | ||
<font color="white"> </font> | ||
</para> | ||
<blockTable colWidths="538.0" style="Table_Title_String"> | ||
<tr> | ||
<td> | ||
<para style="terp_default_Bold_9">AGENT: [[ agent.agent_id.name ]]</para> | ||
</td> | ||
</tr> | ||
</blockTable> | ||
<para style="terp_default_5cm_Above_Space"> | ||
<font color="white"> </font> | ||
</para> | ||
<blockTable colWidths="135.0,135.0,124.0,120.0" style="Header_Order_Reference_Tbl"> | ||
<tr> | ||
<td> | ||
<para style="terp_tblheader_General_Centre">INVOICE NO [[not agent.invoices and removeParentNode('blockTable')]]</para> | ||
</td> | ||
<td> | ||
<para style="terp_tblheader_General_Centre">INVOICE DATE</para> | ||
</td> | ||
<td> | ||
<para style="terp_tblheader_General_Centre">AMOUNT INVOICED</para> | ||
</td> | ||
<td> | ||
<para style="terp_tblheader_General_Centre">AMOUNT SETTLED</para> | ||
</td> | ||
</tr> | ||
</blockTable> | ||
|
||
<section> | ||
<para style="terp_default_80">[[repeatIn(agent.invoices,'invoice')]]</para> | ||
<blockTable colWidths="135.0,135.0,124.0,120.0" style="Content_Order_Reference_Table"> | ||
<tr> | ||
<td> | ||
<para style="terp_default_Centre_8">[[ invoice.invoice_number or '' ]]</para> | ||
</td> | ||
<td> | ||
<para style="terp_default_Centre_8">[[ invoice.invoice_date or '' ]]</para> | ||
</td> | ||
<td> | ||
<para style="terp_default_Centre_8">[[ formatLang(invoice.invoice_amount or 0.0) ]] [[ invoice.currency_id and invoice.currency_id.code or '']]</para> | ||
</td> | ||
<td> | ||
<para style="terp_default_Centre_8">[[ formatLang(invoice.settled_amount or 0.0) ]] [[ invoice.currency_id and invoice.currency_id.code or '']]</para> | ||
</td> | ||
</tr> | ||
</blockTable> | ||
</section> | ||
<blockTable colWidths="394.0,120.0" style="Table7"> | ||
<tr> | ||
<td> | ||
<para style="terp_default_Right_8">TOTAL : [[ not agent.invoices and removeParentNode('blockTable') ]]</para> | ||
</td> | ||
<td> | ||
<para style="terp_default_Centre_8">[[ formatLang(agent.total or 0.0) ]]</para> | ||
</td> | ||
</tr> | ||
</blockTable> | ||
<nextFrame/> | ||
</section> | ||
|
||
</story> | ||
</document> |