@@ -98,24 +98,12 @@ def _write_currency_lines(self, row_pos, sheet, partner, currency, data):
98
98
FORMATS ["current_money_format" ],
99
99
)
100
100
for line in currency_data .get ("lines" ):
101
- # if line.get("blocked") and not line.get("reconciled_line"):
102
- # format_tcell_left = FORMATS["format_tcell_left_blocked"]
103
- # format_tcell_date_left = FORMATS["format_tcell_date_left_blocked"]
104
- # format_distributed = FORMATS["format_distributed_blocked"]
105
- # current_money_format = FORMATS["current_money_format_blocked"]
106
- if (
107
- line .get ("reconciled_line" )
108
- # and not line.get("blocked")
109
- and not line .get ("outside-date-rank" )
110
- ):
101
+ if line .get ("reconciled_line" ) and not line .get ("outside-date-rank" ):
111
102
format_tcell_left = FORMATS ["format_tcell_left_reconciled" ]
112
103
format_tcell_date_left = FORMATS ["format_tcell_date_left_reconciled" ]
113
104
format_distributed = FORMATS ["format_distributed_reconciled" ]
114
105
current_money_format = FORMATS ["current_money_format_reconciled" ]
115
- elif (
116
- # line.get("blocked")
117
- line .get ("reconciled_line" ) and not line .get ("outside-date-rank" )
118
- ):
106
+ elif line .get ("reconciled_line" ) and not line .get ("outside-date-rank" ):
119
107
format_tcell_left = FORMATS ["format_tcell_left_blocked_reconciled" ]
120
108
format_tcell_date_left = FORMATS [
121
109
"format_tcell_date_left_blocked_reconciled"
@@ -124,11 +112,7 @@ def _write_currency_lines(self, row_pos, sheet, partner, currency, data):
124
112
current_money_format = FORMATS [
125
113
"current_money_format_blocked_reconciled"
126
114
]
127
- elif (
128
- line .get ("reconciled_line" )
129
- # and not line.get("blocked")
130
- and line .get ("outside-date-rank" )
131
- ):
115
+ elif line .get ("reconciled_line" ) and line .get ("outside-date-rank" ):
132
116
format_tcell_left = FORMATS [
133
117
"format_tcell_left_reconciled_outside-date-rank"
134
118
]
@@ -141,23 +125,6 @@ def _write_currency_lines(self, row_pos, sheet, partner, currency, data):
141
125
current_money_format = FORMATS [
142
126
"current_money_format_reconciled_outside-date-rank"
143
127
]
144
- # elif (
145
- # line.get("blocked")
146
- # and line.get("reconciled_line")
147
- # and line.get("outside-date-rank")
148
- # ):
149
- # format_tcell_left = FORMATS[
150
- # "format_tcell_left_blocked_reconciled_outside-date-rank"
151
- # ]
152
- # format_tcell_date_left = FORMATS[
153
- # "format_tcell_date_left_blocked_reconciled_outside-date-rank"
154
- # ]
155
- # format_distributed = FORMATS[
156
- # "format_distributed_blocked_reconciled_outside-date-rank"
157
- # ]
158
- # current_money_format = FORMATS[
159
- # "current_money_format_blocked_reconciled_outside-date-rank"
160
- # ]
161
128
else :
162
129
format_tcell_left = FORMATS ["format_tcell_left" ]
163
130
format_tcell_date_left = FORMATS ["format_tcell_date_left" ]
@@ -257,26 +224,11 @@ def _write_currency_prior_lines(self, row_pos, sheet, partner, currency, data):
257
224
format_distributed = FORMATS ["format_distributed" ]
258
225
current_money_format = FORMATS ["current_money_format" ]
259
226
for line in currency_data .get ("prior_lines" ):
260
- # if line.get("blocked") and not line.get("reconciled_line"):
261
- # format_tcell_left = FORMATS["format_tcell_left_blocked"]
262
- # format_tcell_date_left = FORMATS["format_tcell_date_left_blocked"]
263
- # format_distributed = FORMATS["format_distributed_blocked"]
264
- # current_money_format = FORMATS["current_money_format_blocked"]
265
227
if line .get ("reconciled_line" ):
266
228
format_tcell_left = FORMATS ["format_tcell_left_reconciled" ]
267
229
format_tcell_date_left = FORMATS ["format_tcell_date_left_reconciled" ]
268
230
format_distributed = FORMATS ["format_distributed_reconciled" ]
269
231
current_money_format = FORMATS ["current_money_format_reconciled" ]
270
- # elif line.get("blocked") and line.get("reconciled_line"):
271
- # elif line.get("reconciled_line"):
272
- # format_tcell_left = FORMATS["format_tcell_left_blocked_reconciled"]
273
- # format_tcell_date_left = FORMATS[
274
- # "format_tcell_date_left_blocked_reconciled"
275
- # ]
276
- # format_distributed = FORMATS["format_distributed_blocked_reconciled"]
277
- # current_money_format = FORMATS[
278
- # "current_money_format_blocked_reconciled"
279
- # ]
280
232
row_pos += 1
281
233
name_to_show = (
282
234
line .get ("name" , "" ) == "/" or not line .get ("name" , "" )
@@ -363,25 +315,11 @@ def _write_currency_ending_lines(self, row_pos, sheet, partner, currency, data):
363
315
format_distributed = FORMATS ["format_distributed" ]
364
316
current_money_format = FORMATS ["current_money_format" ]
365
317
for line in currency_data .get ("ending_lines" ):
366
- # if line.get("blocked") and not line.get("reconciled_line"):
367
- # format_tcell_left = FORMATS["format_tcell_left_blocked"]
368
- # format_tcell_date_left = FORMATS["format_tcell_date_left_blocked"]
369
- # format_distributed = FORMATS["format_distributed_blocked"]
370
- # current_money_format = FORMATS["current_money_format_blocked"]
371
318
if line .get ("reconciled_line" ):
372
319
format_tcell_left = FORMATS ["format_tcell_left_reconciled" ]
373
320
format_tcell_date_left = FORMATS ["format_tcell_date_left_reconciled" ]
374
321
format_distributed = FORMATS ["format_distributed_reconciled" ]
375
322
current_money_format = FORMATS ["current_money_format_reconciled" ]
376
- # elif line.get("blocked") and line.get("reconciled_line"):
377
- # format_tcell_left = FORMATS["format_tcell_left_blocked_reconciled"]
378
- # format_tcell_date_left = FORMATS[
379
- # "format_tcell_date_left_blocked_reconciled"
380
- # ]
381
- # format_distributed = FORMATS["format_distributed_blocked_reconciled"]
382
- # current_money_format = FORMATS[
383
- # "current_money_format_blocked_reconciled"
384
- # ]
385
323
row_pos += 1
386
324
name_to_show = (
387
325
line .get ("name" , "" ) == "/" or not line .get ("name" , "" )
0 commit comments