From f89cce75436013649305d85beed87451ed5c436f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 23 Nov 2020 13:06:37 +0100 Subject: [PATCH] =?utf8?q?VK-Rechnungsbericht:=20Lieferscheinnummer=20und?= =?utf8?q?=20Lieferdatum=20anzeigen=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/AR.pm | 3 ++- bin/mozilla/ar.pl | 6 ++++-- templates/webpages/ar/search.html | 6 +++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/SL/AR.pm b/SL/AR.pm index b26911af7..3d31a61a4 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -481,6 +481,7 @@ sub ar_transactions { my $query = qq|SELECT DISTINCT a.id, a.invnumber, a.ordnumber, a.cusordnumber, a.transdate, | . + qq| a.donumber, a.deliverydate, | . qq| a.duedate, a.netamount, a.amount, a.paid, | . qq| a.invoice, a.datepaid, a.notes, a.shipvia, | . qq| a.shippingpoint, a.storno, a.storno_id, a.globalproject_id, | . @@ -682,7 +683,7 @@ SQL my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; my $sortorder = join(', ', map { "$_ $sortdir" } @a); - if (grep({ $_ eq $form->{sort} } qw(id transdate duedate invnumber ordnumber cusordnumber name datepaid employee shippingpoint shipvia transaction_description department))) { + if (grep({ $_ eq $form->{sort} } qw(id transdate duedate invnumber ordnumber cusordnumber donumber deliverydate name datepaid employee shippingpoint shipvia transaction_description department))) { $sortorder = $form->{sort} . " $sortdir"; } diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 8d49a5051..51fbb1aa1 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1010,7 +1010,7 @@ sub ar_transactions { my $report = SL::ReportGenerator->new(\%myconfig, $form); @columns = - qw(ids transdate id type invnumber ordnumber cusordnumber name netamount tax amount paid + qw(ids transdate id type invnumber ordnumber cusordnumber donumber deliverydate name netamount tax amount paid datepaid due duedate transaction_description notes salesman employee shippingpoint shipvia marge_total marge_percent globalprojectnumber customernumber country ustid taxzone payment_terms charts customertype direct_debit dunning_description department); @@ -1037,6 +1037,8 @@ sub ar_transactions { 'invnumber' => { 'text' => $locale->text('Invoice'), }, 'ordnumber' => { 'text' => $locale->text('Order'), }, 'cusordnumber' => { 'text' => $locale->text('Customer Order Number'), }, + 'donumber' => { 'text' => $locale->text('Delivery Order'), }, + 'deliverydate' => { 'text' => $locale->text('Delivery Date'), }, 'name' => { 'text' => $locale->text('Customer'), }, 'netamount' => { 'text' => $locale->text('Amount'), }, 'tax' => { 'text' => $locale->text('Tax'), }, @@ -1067,7 +1069,7 @@ sub ar_transactions { %column_defs_cvars, ); - foreach my $name (qw(id transdate duedate invnumber ordnumber cusordnumber name datepaid employee shippingpoint shipvia transaction_description direct_debit department)) { + foreach my $name (qw(id transdate duedate invnumber ordnumber cusordnumber donumber deliverydate name datepaid employee shippingpoint shipvia transaction_description direct_debit department)) { my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; $column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; } diff --git a/templates/webpages/ar/search.html b/templates/webpages/ar/search.html index 2000b8ca4..3109bd525 100644 --- a/templates/webpages/ar/search.html +++ b/templates/webpages/ar/search.html @@ -135,8 +135,12 @@ [% 'Customer Number' | $T8 %] [% 'Department' | $T8 %] - + + + [% 'Delivery Order Number' | $T8 %] + + [% 'Delivery Date' | $T8 %] [% 'Amount' | $T8 %] -- 2.20.1