Revision 101b9705
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
sql/Pg-upgrade2/convert_drafts_to_record_templates.pl | ||
---|---|---|
123 | 123 |
|
124 | 124 |
# $tax_id may be 0 as there's an entry in tax with id = 0. |
125 | 125 |
# $chart_id must not be 0 as there's no entry in chart with id = 0. |
126 |
# No $amount means empty row. |
|
127 |
next unless $amount && $chart_id && (($tax_id // '') ne ''); |
|
126 |
next unless $chart_id && (($tax_id // '') ne ''); |
|
128 | 127 |
|
129 | 128 |
@values = ( |
130 | 129 |
# record_template_id, |
... | ... | |
198 | 197 |
|
199 | 198 |
# $tax_id may be 0 as there's an entry in tax with id = 0. |
200 | 199 |
# $chart_id must not be 0 as there's no entry in chart with id = 0. |
201 |
# No $amount means empty row. |
|
202 |
next unless $amount && $chart_id && (($tax_id // '') ne ''); |
|
200 |
next unless $chart_id && (($tax_id // '') ne ''); |
|
203 | 201 |
|
204 | 202 |
@values = ( |
205 | 203 |
# record_template_id, |
... | ... | |
271 | 269 |
|
272 | 270 |
# $tax_id may be 0 as there's an entry in tax with id = 0. |
273 | 271 |
# $chart_id must not be 0 as there's no entry in chart with id = 0. |
274 |
# No $debit and no $credit means empty row. |
|
275 |
next unless ($debit || $credit) && $chart_id && (($tax_id // '') ne ''); |
|
272 |
next unless $chart_id && (($tax_id // '') ne ''); |
|
276 | 273 |
|
277 | 274 |
@values = ( |
278 | 275 |
# record_template_id, |
... | ... | |
323 | 320 |
$self->clean_drafts; |
324 | 321 |
$self->finish_statements; |
325 | 322 |
|
326 |
# die "boom!"; |
|
327 |
|
|
328 | 323 |
return 1; |
329 | 324 |
} |
330 | 325 |
|
Auch abrufbar als: Unified diff
Belegvorlagen: Zeilen ohne Betrag beibehalten