X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/09fe7f33a735ecc3f4a3112ad716f674983b00cc..545d8542873ac7cb75ed71771a1bd384fe57bfe2:/bin/mozilla/cp.pl?ds=inline diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index c19cc5312..1fa5d34c6 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -32,10 +32,8 @@ #====================================================================== use SL::CP; -use SL::OP; use SL::IS; use SL::IR; - use strict ("vars", "subs"); #use warnings; @@ -50,7 +48,6 @@ our ($form, %myconfig, $lxdebug, $locale, $auth); sub payment { $lxdebug->enter_sub(); - $auth->assert('cash'); my (@curr); @@ -85,7 +82,6 @@ sub payment { } CP->paymentaccounts(\%myconfig, \%$form); - $form->{selectaccount} = ""; $form->{"select$form->{ARAP}"} = ""; @@ -145,17 +141,17 @@ sub form_header { $form->format_amount(\%myconfig, $form->{exchangerate}); if ($form->{forex}) { $exchangerate = qq| - - | . $locale->text('Exchangerate') . qq| - {exchangerate}>$form->{exchangerate} - + + | . $locale->text('Exchangerate') . qq| + {exchangerate}>$form->{exchangerate} + |; } else { $exchangerate = qq| - - | . $locale->text('Exchangerate') . qq| - {exchangerate}> - + + | . $locale->text('Exchangerate') . qq| + {exchangerate}> + |; } } @@ -237,12 +233,6 @@ sub form_header { - - - - @@ -296,7 +286,6 @@ sub form_header { - {oldcurrency}> $exchangerate @@ -305,8 +294,7 @@ sub form_header { - +
- - | . $locale->text('All') . qq|
$vclabel $vc| . $locale->text('Currency') . qq|
| . $locale->text('Amount') . qq|| . $form->format_amount(\%myconfig, $form->{amount}, 2) . qq|
@@ -318,6 +306,19 @@ sub form_header { $jsscript |; + if ($form->{openinvoices_other_currencies}) { + my $warning = $form->{vc} eq 'customer' ? $::locale->text('There are #1 more open invoices for this customer with other currencies.', $form->{openinvoices_other_currencies}) + : $::locale->text('There are #1 more open invoices from this vendor with other currencies.', $form->{openinvoices_other_currencies}); + + print qq| + + + + | . $::locale->text('Note') . qq|: $warning + +|; + } + $lxdebug->leave_sub(); } @@ -340,9 +341,9 @@ sub list_invoices { - - - + + + |; $column_data{invnumber} = @@ -405,7 +406,7 @@ sub list_invoices { $j++; $j %= 2; print qq| - + |; map { print "$column_data{$_}\n" } @column_index; print qq| @@ -466,7 +467,7 @@ sub form_footer { $format .= qq|
$invoice
$invoice