X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcp.pl;h=a62a9ebff84d26bb96cd87f4258eef18da8b42ac;hb=4bbb5dbe9a272bc31d5f059b3ece3e230c2a6642;hp=e0c567934e00a523dd18e8eba58bcb55dcc6637b;hpb=563a5200e1d2f3cdfec65c407a020f6106528579;p=kivitendo-erp.git diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index e0c567934..a62a9ebff 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -144,17 +144,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}> + |; } } @@ -317,6 +317,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(); } @@ -339,9 +352,9 @@ sub list_invoices { - - - + + + |; $column_data{invnumber} = @@ -404,7 +417,7 @@ sub list_invoices { $j++; $j %= 2; print qq| - + |; map { print "$column_data{$_}\n" } @column_index; print qq| @@ -465,7 +478,7 @@ sub form_footer { $format .= qq|
$invoice
$invoice