Revision 519f43a2
Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
|
||
set_headings("add");
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
$form->{callback} = build_std_url('action=add', 'type', 'vc') unless ($form->{callback});
|
||
|
||
order_links();
|
||
... | ... | |
|
||
my $form = $main::form;
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
|
||
# show history button
|
||
$form->{javascript} = qq|<script type="text/javascript" src="js/show_history.js"></script>|;
|
||
#/show hhistory button
|
bin/mozilla/ir.pl | ||
---|---|---|
|
||
return $main::lxdebug->leave_sub() if (load_draft_maybe());
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
|
||
$form->{title} = $locale->text('Record Vendor Invoice');
|
||
|
||
&invoice_links;
|
||
... | ... | |
|
||
$main::auth->assert('vendor_invoice_edit');
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
|
||
# show history button
|
||
$form->{javascript} = qq|<script type=text/javascript src=js/show_history.js></script>|;
|
||
#/show hhistory button
|
bin/mozilla/is.pl | ||
---|---|---|
|
||
return $main::lxdebug->leave_sub() if (load_draft_maybe());
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
|
||
if ($form->{type} eq "credit_note") {
|
||
$form->{title} = $locale->text('Add Credit Note');
|
||
|
||
... | ... | |
|
||
$main::auth->assert('invoice_edit');
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
$form->{taxincluded_changed_by_user} = 1;
|
||
|
||
# show history button
|
bin/mozilla/oe.pl | ||
---|---|---|
"$form->{script}?action=add&type=$form->{type}&vc=$form->{vc}"
|
||
unless $form->{callback};
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
|
||
&order_links;
|
||
&prepare_order;
|
||
&display_form;
|
||
... | ... | |
|
||
check_oe_access();
|
||
|
||
$form->{show_details} = $::myconfig{show_form_details};
|
||
$form->{taxincluded_changed_by_user} = 1;
|
||
|
||
# show history button
|
Auch abrufbar als: Unified diff
Belege: »Details initial anzeigen« richtig behandeln
Die Einstellungen in der Benutzerkonfiguration, ob die Details per
default angezeigt werden sollen, wurde nur beim initialen Aufbau der
Einkaufs- und Verkaufsbelegmasken berücksichtigt. Da der Wert aber nicht
in der dafür vorgesehenen Hidden mitgeschliffen wurde, war die
Einstellung ab dem zweiten Maskenaufbau dahin.
Grund ist, dass die Hidden in form_header() ausgegeben wird, bevor in
display_row() die dazugehörige Einstellung aus der Benutzerkonfiguration
geladen wird.
Gegenmittel: In den Einstiegspunkten zum Hinzufügen und Bearbeiten von
Belegen (add() respektive edit()) bereits die Einstellung aus der
Benutzerkonfiguration laden und so der Hidden zur Verfügung stellen.