|
@ -256,7 +256,7 @@ class general_ledger_xls(report_xls): |
|
|
cumul_balance_curr = account.init_balance.get( |
|
|
cumul_balance_curr = account.init_balance.get( |
|
|
'init_balance_currency') or 0.0 |
|
|
'init_balance_currency') or 0.0 |
|
|
c_specs = [('empty%s' % x, 1, 0, 'text', None) |
|
|
c_specs = [('empty%s' % x, 1, 0, 'text', None) |
|
|
for x in range(6)] |
|
|
|
|
|
|
|
|
for x in range(7)] |
|
|
c_specs += [ |
|
|
c_specs += [ |
|
|
('init_bal', 1, 0, 'text', _('Initial Balance')), |
|
|
('init_bal', 1, 0, 'text', _('Initial Balance')), |
|
|
('counterpart', 1, 0, 'text', None), |
|
|
('counterpart', 1, 0, 'text', None), |
|
@ -334,14 +334,14 @@ class general_ledger_xls(report_xls): |
|
|
row_pos = self.xls_write_row( |
|
|
row_pos = self.xls_write_row( |
|
|
ws, row_pos, row_data, ll_cell_style) |
|
|
ws, row_pos, row_data, ll_cell_style) |
|
|
|
|
|
|
|
|
debit_start = rowcol_to_cell(row_start, 8) |
|
|
|
|
|
debit_end = rowcol_to_cell(row_pos - 1, 8) |
|
|
|
|
|
|
|
|
debit_start = rowcol_to_cell(row_start, 9) |
|
|
|
|
|
debit_end = rowcol_to_cell(row_pos - 1, 9) |
|
|
debit_formula = 'SUM(' + debit_start + ':' + debit_end + ')' |
|
|
debit_formula = 'SUM(' + debit_start + ':' + debit_end + ')' |
|
|
credit_start = rowcol_to_cell(row_start, 9) |
|
|
|
|
|
credit_end = rowcol_to_cell(row_pos - 1, 9) |
|
|
|
|
|
|
|
|
credit_start = rowcol_to_cell(row_start, 10) |
|
|
|
|
|
credit_end = rowcol_to_cell(row_pos - 1, 10) |
|
|
credit_formula = 'SUM(' + credit_start + ':' + credit_end + ')' |
|
|
credit_formula = 'SUM(' + credit_start + ':' + credit_end + ')' |
|
|
balance_debit = rowcol_to_cell(row_pos, 8) |
|
|
|
|
|
balance_credit = rowcol_to_cell(row_pos, 9) |
|
|
|
|
|
|
|
|
balance_debit = rowcol_to_cell(row_pos, 9) |
|
|
|
|
|
balance_credit = rowcol_to_cell(row_pos, 10) |
|
|
balance_formula = balance_debit + '-' + balance_credit |
|
|
balance_formula = balance_debit + '-' + balance_credit |
|
|
c_specs = [ |
|
|
c_specs = [ |
|
|
('acc_title', COLS_TOT - 4, 0, 'text', |
|
|
('acc_title', COLS_TOT - 4, 0, 'text', |
|
|