Revision d851523e
Von Bernd Bleßmann vor mehr als 11 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
40 | 40 |
use Carp; |
41 | 41 |
use Data::Dumper; |
42 | 42 |
use Encode; |
43 |
use List::MoreUtils qw(any); |
|
43 | 44 |
use SL::DBUtils; |
44 | 45 |
|
45 | 46 |
use strict; |
... | ... | |
213 | 214 |
|
214 | 215 |
# sanity check, can't have AR with AR_... |
215 | 216 |
if ($form->{AR} || $form->{AP} || $form->{IC}) { |
216 |
for (qw(AR_amount AR_tax AR_paid AP_amount AP_tax AP_paid IC_sale IC_cogs IC_taxpart IC_income IC_expense IC_taxservice)) {
|
|
217 |
$form->error($::locale->text('It is not allowed that a summary account occurs in a drop-down menu!')) if $form->{$_};
|
|
217 |
if (any { $form->{$_} } qw(AR_amount AR_tax AR_paid AP_amount AP_tax AP_paid IC_sale IC_cogs IC_taxpart IC_income IC_expense IC_taxservice)) {
|
|
218 |
$form->error($::locale->text('It is not allowed that a summary account occurs in a drop-down menu!')); |
|
218 | 219 |
} |
219 | 220 |
} |
220 | 221 |
|
Auch abrufbar als: Unified diff
Nachtrag zum commit 4d1bc29943746f84e2ecc52ced9f3cbee18ba6d3 ...
... $form-error nicht in einer Schleife aufrufen.
Keine Ahnung, warum das ein Problem ist, aber es gibt folgende Fehlermeldung
bei CSS-Menü-Variante oben (nicht bei seitlichem Menü):
Modification of a read-only value attempted at /usr/local/src/lxoffice-git-bernd/SL/Inifile.pm line 56