Revision 4d1bc299
Von Niclas Zimmermann vor mehr als 11 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
207 | 207 |
# connect to database, turn off AutoCommit |
208 | 208 |
my $dbh = $form->dbconnect_noauto($myconfig); |
209 | 209 |
|
210 |
# sanity check, can't have AR with AR_... |
|
211 |
if ($form->{AR} || $form->{AP} || $form->{IC}) { |
|
212 |
map { delete $form->{$_} } |
|
213 |
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); |
|
214 |
} |
|
215 |
|
|
216 | 210 |
for (qw(AR_include_in_dropdown AP_include_in_dropdown)) { |
217 | 211 |
$form->{$form->{$_}} = $form->{$_} if $form->{$_}; |
218 | 212 |
} |
219 | 213 |
|
214 |
# sanity check, can't have AR with AR_... |
|
215 |
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->{$_}; |
|
218 |
} |
|
219 |
} |
|
220 |
|
|
220 | 221 |
$form->{link} = ""; |
221 | 222 |
foreach my $item ($form->{AR}, $form->{AR_amount}, |
222 | 223 |
$form->{AR_tax}, $form->{AR_paid}, |
Auch abrufbar als: Unified diff
Sammelkonten in Auflappmenüs
Dadurch dass man bisher Sammelkonten in Aufklappmenüs aufnehmen
konnte, wurden Probleme verursacht. Daher wird dies nun mit
verboten.
Implementiert #2277.