|
|
@ -25,32 +25,37 @@ class GeneralLedgerXslx(abstract_report_xlsx.AbstractReportXslx): |
|
|
|
1: {'header': _('Entry'), 'field': 'entry', 'width': 18}, |
|
|
|
2: {'header': _('Journal'), 'field': 'journal', 'width': 8}, |
|
|
|
3: {'header': _('Account'), 'field': 'account', 'width': 9}, |
|
|
|
4: {'header': _('Partner'), 'field': 'partner', 'width': 25}, |
|
|
|
5: {'header': _('Ref - Label'), 'field': 'label', 'width': 40}, |
|
|
|
6: {'header': _('Cost center'), |
|
|
|
4: {'header': _('Taxes'), |
|
|
|
'field': 'taxes_description', |
|
|
|
'width': 15}, |
|
|
|
5: {'header': _('Partner'), 'field': 'partner', 'width': 25}, |
|
|
|
6: {'header': _('Ref - Label'), 'field': 'label', 'width': 40}, |
|
|
|
7: {'header': _('Cost center'), |
|
|
|
'field': 'cost_center', |
|
|
|
'width': 15}, |
|
|
|
7: {'header': _('Rec.'), 'field': 'matching_number', 'width': 5}, |
|
|
|
8: {'header': _('Debit'), |
|
|
|
8: {'header': _('Rec.'), 'field': 'matching_number', 'width': 5}, |
|
|
|
9: {'header': _('Debit'), |
|
|
|
'field': 'debit', |
|
|
|
'field_initial_balance': 'initial_debit', |
|
|
|
'field_final_balance': 'final_debit', |
|
|
|
'type': 'amount', |
|
|
|
'width': 14}, |
|
|
|
9: {'header': _('Credit'), |
|
|
|
10: { |
|
|
|
'header': _('Credit'), |
|
|
|
'field': 'credit', |
|
|
|
'field_initial_balance': 'initial_credit', |
|
|
|
'field_final_balance': 'final_credit', |
|
|
|
'type': 'amount', |
|
|
|
'width': 14}, |
|
|
|
10: {'header': _('Cumul. Bal.'), |
|
|
|
'width': 14 |
|
|
|
}, |
|
|
|
11: {'header': _('Cumul. Bal.'), |
|
|
|
'field': 'cumul_balance', |
|
|
|
'field_initial_balance': 'initial_balance', |
|
|
|
'field_final_balance': 'final_balance', |
|
|
|
'type': 'amount', |
|
|
|
'width': 14}, |
|
|
|
11: {'header': _('Cur.'), 'field': 'currency_name', 'width': 7}, |
|
|
|
12: {'header': _('Amount cur.'), |
|
|
|
12: {'header': _('Cur.'), 'field': 'currency_name', 'width': 7}, |
|
|
|
13: {'header': _('Amount cur.'), |
|
|
|
'field': 'amount_currency', |
|
|
|
'type': 'amount', |
|
|
|
'width': 14}, |
|
|
@ -58,15 +63,23 @@ class GeneralLedgerXslx(abstract_report_xlsx.AbstractReportXslx): |
|
|
|
|
|
|
|
def _get_report_filters(self, report): |
|
|
|
return [ |
|
|
|
[_('Date range filter'), |
|
|
|
_('From: %s To: %s') % (report.date_from, report.date_to)], |
|
|
|
[_('Target moves filter'), |
|
|
|
[ |
|
|
|
_('Date range filter'), |
|
|
|
_('From: %s To: %s') % (report.date_from, report.date_to), |
|
|
|
], |
|
|
|
[ |
|
|
|
_('Target moves filter'), |
|
|
|
_('All posted entries') if report.only_posted_moves |
|
|
|
else _('All entries')], |
|
|
|
[_('Account balance at 0 filter'), |
|
|
|
_('Hide') if report.hide_account_balance_at_0 else _('Show')], |
|
|
|
[_('Centralize filter'), |
|
|
|
_('Yes') if report.centralize else _('No')], |
|
|
|
else _('All entries'), |
|
|
|
], |
|
|
|
[ |
|
|
|
_('Account balance at 0 filter'), |
|
|
|
_('Hide') if report.hide_account_balance_at_0 else _('Show'), |
|
|
|
], |
|
|
|
[ |
|
|
|
_('Centralize filter'), |
|
|
|
_('Yes') if report.centralize else _('No'), |
|
|
|
], |
|
|
|
] |
|
|
|
|
|
|
|
def _get_col_count_filter_name(self): |
|
|
|