X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0b9fc4e613db11933371e06ccd2f2ed1ca293e38..a2930f9ee294b1288488e8dec1a3092592dc8e97:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 49b0c1e04..bbbd157a3 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -463,6 +463,10 @@ sub form_footer { } } + my $total = $form->round_amount( $form->{invtotal}, 2, 1 ); + $form->{rounding} = $form->round_amount( $total-$form->{invtotal}, 2 ); + $form->{invtotal} = $total; + # follow ups if ($form->{id}) { $form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}) || []; @@ -682,6 +686,7 @@ sub post_payment { $main::auth->assert('invoice_edit'); + $form->mtime_ischanged('ar') ; my $invdate = $form->datetonum($form->{invdate}, \%myconfig); $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); @@ -737,6 +742,7 @@ sub post { my $locale = $main::locale; $main::auth->assert('invoice_edit'); + $form->mtime_ischanged('ar'); $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); $form->isblank("invdate", $locale->text('Invoice Date missing!'));