X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fap.pl;h=f8822930908a67562cb7bc5b491a32d0fc3cb464;hb=1043d7f814fccf5864e677b1e38577d0a150026c;hp=39db0fe225ea7b54a5c1780aa5216ef987c36935;hpb=7011fd23ae5457ee62f14a3ff37af5a344f4041d;p=kivitendo-erp.git diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 39db0fe22..f88229309 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -893,7 +893,7 @@ sub update { $form->{invdate} = $form->{transdate}; my %saved_variables = map +( $_ => $form->{$_} ), qw(AP AP_amount_1 taxchart_1); - &check_name("vendor"); + my $vendor_changed = &check_name("vendor"); $form->{AP} = $saved_variables{AP}; if ($saved_variables{AP_amount_1} =~ m/.--./) { @@ -928,7 +928,7 @@ sub update { $form->{oldtotalpaid} = $totalpaid; # notes - $form->{notes} = $form->{intnotes}; + $form->{notes} = $form->{intnotes} if $vendor_changed; &display_form; @@ -1326,6 +1326,25 @@ sub search { | . $locale->text('Project Number') . qq| + + | . $locale->text('Vendor') . qq| + + + + | . $locale->text('Vendor Number') . qq| + + | . $locale->text('Country') . qq| + + | . $locale->text('USt-IdNr.') . qq| + + | . $locale->text('Steuersatz') . qq| + + + + | . $locale->text('Payment Terms') . qq| + + | . $locale->text('Buchungskonto') . qq| + @@ -1388,7 +1407,8 @@ sub ap_transactions { my @columns = qw(transdate id type invnumber ordnumber name netamount tax amount paid datepaid - due duedate transaction_description notes employee globalprojectnumber); + due duedate transaction_description notes employee globalprojectnumber + vendornumber country ustid taxzone payment_terms charts); my @hidden_variables = map { "l_${_}" } @columns; push @hidden_variables, "l_subtotal", qw(open closed vendor invnumber ordnumber transaction_description notes project_id transdatefrom transdateto); @@ -1413,6 +1433,12 @@ sub ap_transactions { 'notes' => { 'text' => $locale->text('Notes'), }, 'employee' => { 'text' => $locale->text('Salesperson'), }, 'globalprojectnumber' => { 'text' => $locale->text('Project Number'), }, + 'vendornumber' => { 'text' => $locale->text('Vendor Number'), }, + 'country' => { 'text' => $locale->text('Country'), }, + 'ustid' => { 'text' => $locale->text('USt-IdNr.'), }, + 'taxzone' => { 'text' => $locale->text('Steuersatz'), }, + 'payment_terms' => { 'text' => $locale->text('Payment Terms'), }, + 'charts' => { 'text' => $locale->text('Buchungskonto'), }, ); foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description)) {