imported => 0, # not imported
taxincluded => 0,
)->add_chart_booking(
- chart => $tmptaxamount < 0 ? $credit : $debit,
- credit => abs($tmptaxamount),
+ chart => $tmptaxamount > 0 ? $debit : $credit,
+ debit => abs($tmptaxamount),
source => "Reverse Charge for " . $form->{invnumber},
)->add_chart_booking(
- chart => $tmptaxamount < 0 ? $debit : $credit,
- debit => abs($tmptaxamount),
+ chart => $tmptaxamount > 0 ? $credit : $debit,
+ credit => abs($tmptaxamount),
source => "Reverse Charge for " . $form->{invnumber},
)->post;
# add a stable link from ap to gl
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
my $sortorder = join(', ', map { "$_ $sortdir" } @a);
- if (grep({ $_ eq $form->{sort} } qw(transdate id invnumber ordnumber name netamount tax amount paid datepaid due duedate notes employee transaction_description direct_debit department))) {
+ if (grep({ $_ eq $form->{sort} } qw(transdate id invnumber ordnumber name netamount tax amount paid datepaid due duedate notes employee transaction_description direct_debit department taxzone))) {
$sortorder = $form->{sort} . " $sortdir";
}