fixed issue in excel exporter of equipmentincome in API
parent
bcf8cbc438
commit
152ab66064
|
@ -294,9 +294,10 @@ def generate_excel(report,
|
||||||
ws['D' + str(current_row_number)].font = title_font
|
ws['D' + str(current_row_number)].font = title_font
|
||||||
ws['D' + str(current_row_number)].alignment = c_c_alignment
|
ws['D' + str(current_row_number)].alignment = c_c_alignment
|
||||||
ws['D' + str(current_row_number)].border = f_border
|
ws['D' + str(current_row_number)].border = f_border
|
||||||
ws['D' + str(current_row_number)] = '{:.2%}'.format(round(reporting_period_data['subtotals'][i], 2) /
|
ws['D' + str(current_row_number)] = '{:.2%}'.format(round(
|
||||||
income_sum if income_sum is not None and
|
reporting_period_data['subtotals'][i], 2) / income_sum) \
|
||||||
income_sum != Decimal(0.0) else "")
|
if income_sum is not None and income_sum != Decimal(0.0) \
|
||||||
|
else ''
|
||||||
|
|
||||||
current_row_number += 1
|
current_row_number += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue