1
- < style >
2
- @media screen {
3
- .print-format {
4
- padding : 8mm ;
5
- }
6
- }
7
- </ style >
1
+ {% if(filters.show_pdc_in_print) { %}
2
+ < style >
3
+ @media screen {
4
+ .print-format {
5
+ padding : 8mm ;
6
+ margin : 4mm ;
7
+ font-size : 10px ;
8
+ font-family : Tahoma, sans-serif;
9
+ }
10
+ }
11
+ </ style >
12
+ {% } %}
8
13
9
14
< h2 class ="text-center "> {%= __(report.report_name) %}</ h2 >
10
15
< h4 class ="text-center "> {%= filters.customer || filters.supplier %} </ h4 >
@@ -82,21 +87,24 @@ <h5 class="text-center">
82
87
< tr >
83
88
{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
84
89
< th style ="width: 10% "> {%= __("Date") %}</ th >
85
- < th style ="width: 10% "> {%= __("Ref") %}</ th >
90
+ < th style ="width: 15% "> {%= __("Ref") %}</ th >
91
+ {% if(!filters.show_pdc_in_print) { %}
86
92
< th style ="width: 20% "> {%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</ th >
93
+ {% } %}
87
94
< th style ="width: 10% "> {%= __("Invoiced Amount") %}</ th >
88
95
{% if(!filters.show_pdc_in_print) { %}
89
96
< th style ="width: 10% "> {%= __("Paid Amount") %}</ th >
90
97
< th style ="width: 10% "> {%= report.report_name === "Accounts Receivable" ? __('Credit Note') : __('Debit Note') %}</ th >
91
98
{% } %}
92
- < th style ="width: 6 % "> {%= __("Outstanding Amount") %}</ th >
99
+ < th style ="width: 15 % "> {%= __("Outstanding Amount") %}</ th >
93
100
{% if(filters.show_pdc_in_print) { %}
94
101
{% if(report.report_name === "Accounts Receivable") { %}
95
- < th style ="width: 6 % "> {%= __("Customer LPO No.") %}</ th >
102
+ < th style ="width: 10 % "> {%= __("Customer LPO No.") %}</ th >
96
103
{% } %}
97
- < th style ="width: 6% "> {%= __("PDC/LC Date") %}</ th >
98
- < th style ="width: 6% "> {%= __("PDC/LC Ref") %}</ th >
99
- < th style ="width: 6% "> {%= __("PDC/LC Amount") %}</ th >
104
+ < th style ="width: 10% "> {%= __("PDC/LC Date") %}</ th >
105
+ < th style ="width: 10% "> {%= __("PDC/LC Ref") %}</ th >
106
+ < th style ="width: 10% "> {%= __("PDC/LC Amount") %}</ th >
107
+ < th style ="width: 10% "> {%= __("Remaining Balance") %}</ th >
100
108
{% } %}
101
109
{% } else { %}
102
110
< th style ="width: 40% "> {%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</ th >
@@ -115,6 +123,7 @@ <h5 class="text-center">
115
123
< td > {%= dateutil.str_to_user(data[i][__("Posting Date")]) %}</ td >
116
124
< td > {%= data[i][__("Voucher Type")] %}
117
125
< br > {%= data[i][__("Voucher No")] %}</ td >
126
+ {% if(!filters.show_pdc_in_print) { %}
118
127
< td >
119
128
{% if(!(filters.customer || filters.supplier)) { %}
120
129
{%= data[i][__("Customer")] || data[i][__("Supplier")] %}
@@ -127,6 +136,7 @@ <h5 class="text-center">
127
136
< br > {%= __("Remarks") %}:
128
137
{%= data[i][__("Remarks")] %}
129
138
</ td >
139
+ {% } %}
130
140
< td style ="text-align: right ">
131
141
{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"]) %}</ td >
132
142
@@ -147,10 +157,13 @@ <h5 class="text-center">
147
157
< td style ="text-align: right "> {%= frappe.datetime.str_to_user(data[i][__("PDC/LC Date")]) %}</ td >
148
158
< td style ="text-align: right "> {%= data[i][__("PDC/LC Ref")] %}</ td >
149
159
< td style ="text-align: right "> {%= format_currency(data[i][__("PDC/LC Amount")], data[i]["currency"]) %}</ td >
160
+ < td style ="text-align: right "> {%= format_currency(data[i][__("Remaining Balance")], data[i]["currency"]) %}</ td >
150
161
{% } %}
151
162
{% } else { %}
152
163
< td > </ td >
164
+ {% if(!filters.show_pdc_in_print) { %}
153
165
< td > </ td >
166
+ {% } %}
154
167
< td > < b > {%= __("Total") %}</ b > </ td >
155
168
< td style ="text-align: right ">
156
169
{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"] ) %}</ td >
@@ -171,6 +184,7 @@ <h5 class="text-center">
171
184
< td style ="text-align: right "> {%= frappe.datetime.str_to_user(data[i][__("PDC/LC Date")]) %}</ td >
172
185
< td style ="text-align: right "> {%= data[i][__("PDC/LC Ref")] %}</ td >
173
186
< td style ="text-align: right "> {%= format_currency(data[i][__("PDC/LC Amount")], data[i]["currency"]) %}</ td >
187
+ < td style ="text-align: right "> {%= format_currency(data[i][__("Remaining Balance")], data[i]["currency"]) %}</ td >
174
188
{% } %}
175
189
{% } %}
176
190
{% } else { %}
0 commit comments