X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Far.pl;h=80c87f966567e3150d2a627001db825d3792bcec;hb=59d76a094e83bec189313ca712d945a9594aeb55;hp=834e1b18e405f0f2d7a46b4cc2cc712207f39ef9;hpb=4ac2976f86e7747ecf69a4e7b64f155343e984ae;p=kivitendo-erp.git diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 834e1b18e..80c87f966 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -161,9 +161,6 @@ sub create_links { $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}"; $form->{rowcount} = 1; - # notes - $form->{notes} = $form->{intnotes} unless $form->{notes}; - # currencies $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); @@ -533,7 +530,7 @@ $follow_ups_block } # /button for saving history # mark_as_paid button - if($form->{id} ne "") { + if(($form->{id} ne "") && $::instance_conf->get_ar_show_mark_as_paid) { print qq||; } @@ -617,13 +614,10 @@ sub update { $form->{invdate} = $form->{transdate}; - my %saved_variables = map +( $_ => $form->{$_} ), qw(AR AR_amount_1 taxchart_1 customer_id); + my %saved_variables = map +( $_ => $form->{$_} ), qw(AR AR_amount_1 taxchart_1 customer_id notes); &check_name("customer"); - # check_name loads customer notes into notes, but ar only knows intnotes, so copy them - $form->{notes} = $form->{intnotes} if $saved_variables{customer_id} != $form->{customer_id}; - $form->{AR} = $saved_variables{AR}; if ($saved_variables{AR_amount_1} =~ m/.--./) { map { $form->{$_} = $saved_variables{$_} } qw(AR_amount_1 taxchart_1);