Revision 844a541e
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
97 | 97 |
|
98 | 98 |
$form->{callback} = "$form->{script}?action=add&type=$form->{type}" unless $form->{callback}; |
99 | 99 |
|
100 |
&invoice_links;
|
|
100 |
invoice_links(is_new => 1);
|
|
101 | 101 |
&prepare_invoice; |
102 | 102 |
&display_form; |
103 | 103 |
|
... | ... | |
154 | 154 |
# Delay access check to after the invoice's been loaded so that |
155 | 155 |
# project-specific invoice rights can be evaluated. |
156 | 156 |
|
157 |
my %params = @_; |
|
157 | 158 |
my $form = $main::form; |
158 | 159 |
my %myconfig = %main::myconfig; |
159 | 160 |
|
... | ... | |
172 | 173 |
|
173 | 174 |
IS->get_customer(\%myconfig, \%$form); |
174 | 175 |
|
176 |
$form->{billing_address_id} = $form->{default_billing_address_id} if $params{is_new}; |
|
177 |
|
|
175 | 178 |
$form->restore_vars(qw(id)); |
176 | 179 |
|
177 | 180 |
IS->retrieve_invoice(\%myconfig, \%$form); |
... | ... | |
731 | 734 |
$::form->{salesman_id} = SL::DB::Manager::Employee->current->id if exists $::form->{salesman_id}; |
732 | 735 |
|
733 | 736 |
IS->get_customer(\%myconfig, $form); |
737 |
$::form->{billing_address_id} = $::form->{default_billing_address_id}; |
|
734 | 738 |
} |
735 | 739 |
|
736 | 740 |
$form->{taxincluded} ||= $taxincluded; |
Auch abrufbar als: Unified diff
Zusätzliche Rechnungsadressen: in Verkaufsbelegmasken auswählbar