[ADD] account : Add the get_intial_balance function in third_party_ledger report
bzr revid: sbh@tinyerp.com-20100729111826-hbk2dbbcophrxotg
This commit is contained in:
@@ -53,6 +53,7 @@ class third_party_ledger(rml_parse.rml_parse, common_report_header):
|
||||
'get_end_date':self._get_end_date,
|
||||
'get_journal': self._get_journal,
|
||||
'get_partners':self._get_partners,
|
||||
'get_intial_balance':self._get_intial_balance,
|
||||
|
||||
})
|
||||
|
||||
@@ -445,7 +446,9 @@ class third_party_ledger(rml_parse.rml_parse, common_report_header):
|
||||
else:
|
||||
currency_total = self.tot_currency = 0.0
|
||||
return currency_total
|
||||
|
||||
def _get_intial_balance(self, parnter, data):
|
||||
return ''
|
||||
|
||||
report_sxw.report_sxw('report.account.third_party_ledger', 'res.partner',
|
||||
'addons/account/report/third_party_ledger.rml',parser=third_party_ledger,
|
||||
header='internal')
|
||||
|
||||
@@ -275,6 +275,20 @@
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
<blockTable colWidths="314.0,77.0,75.0,74.0" style="Table2">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
|
||||
<tr>[[ data['form']['initial_balance'] and get_intial_balance(p,data) or removeParentNode('tr') ]]
|
||||
<td>
|
||||
<para style="P2"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para style="P2">[[ p.ref ]] - [[ p.name ]]</para>
|
||||
@@ -377,6 +391,25 @@
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
<blockTable colWidths="276.0,67.0,66.0,65.0,65.0" style="Table6">[[ data['form']['amount_currency'] == True or removeParentNode('blockTable') ]]
|
||||
<tr>[[ data['form']['initial_balance'] and get_intial_balance(p,data) or removeParentNode('tr') ]]
|
||||
<td>
|
||||
<para style="P2"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para style="P2">[[ p.ref ]] - [[ p.name ]]</para>
|
||||
|
||||
@@ -455,6 +455,20 @@
|
||||
<section>
|
||||
<para style="P3">[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]]</para>
|
||||
<blockTable colWidths="314.0,77.0,75.0,74.0" style="Table2">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
|
||||
<tr>[[ data['form']['initial_balance'] and get_intial_balance(p,data) or removeParentNode('tr') ]]
|
||||
<td>
|
||||
<para style="P2"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para style="P2">[[ p.ref ]] - [[ p.name ]]</para>
|
||||
@@ -552,6 +566,21 @@
|
||||
<section>
|
||||
<para style="P3">[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]]</para>
|
||||
<blockTable colWidths="276.0,67.0,66.0,65.0,65.0" style="Table6">[[ data['form']['amount_currency'] == True or removeParentNode('blockTable') ]]
|
||||
<td>
|
||||
<para style="P2"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P5"></para>
|
||||
</td>
|
||||
<tr>
|
||||
<td>
|
||||
<para style="P2"> [[ p.ref ]] - [[ p.name ]]</para>
|
||||
|
||||
Reference in New Issue
Block a user