# $tax_id may be 0 as there's an entry in tax with id = 0.
# $chart_id must not be 0 as there's no entry in chart with id = 0.
- # No $amount means empty row.
- next unless $amount && $chart_id && (($tax_id // '') ne '');
+ next unless $chart_id && (($tax_id // '') ne '');
@values = (
# record_template_id,
# $tax_id may be 0 as there's an entry in tax with id = 0.
# $chart_id must not be 0 as there's no entry in chart with id = 0.
- # No $amount means empty row.
- next unless $amount && $chart_id && (($tax_id // '') ne '');
+ next unless $chart_id && (($tax_id // '') ne '');
@values = (
# record_template_id,
# $tax_id may be 0 as there's an entry in tax with id = 0.
# $chart_id must not be 0 as there's no entry in chart with id = 0.
- # No $debit and no $credit means empty row.
- next unless ($debit || $credit) && $chart_id && (($tax_id // '') ne '');
+ next unless $chart_id && (($tax_id // '') ne '');
@values = (
# record_template_id,
$self->clean_drafts;
$self->finish_statements;
- # die "boom!";
-
return 1;
}