Revision 7fb467cc
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
159 | 159 |
DO->retrieve('vc' => $form->{vc}, |
160 | 160 |
'ids' => $form->{id}); |
161 | 161 |
|
162 |
$payment_id = $form->{payment_id} if ($form->{payment_id}); |
|
163 |
$language_id = $form->{language_id} if ($form->{language_id}); |
|
164 |
$taxzone_id = $form->{taxzone_id} if ($form->{taxzone_id}); |
|
165 |
$salesman_id = $form->{salesman_id} if ($editing); |
|
162 |
$form->backup_vars(qw(payment_id language_id taxzone_id salesman_id taxincluded cp_id intnotes)); |
|
163 |
$form->{shipto} = 1 if $form->{id}; |
|
166 | 164 |
|
165 |
# get customer / vendor |
|
166 |
if ($form->{vc} eq 'vendor') { |
|
167 |
IR->get_vendor(\%myconfig, \%$form); |
|
168 |
} else { |
|
169 |
IS->get_customer(\%myconfig, \%$form); |
|
170 |
} |
|
167 | 171 |
|
168 |
$taxincluded = $form->{taxincluded}; |
|
169 |
$form->{shipto} = 1 if $form->{id}; |
|
172 |
$form->restore_vars(qw(payment_id language_id taxzone_id intnotes cp_id)); |
|
173 |
$form->restore_vars(qw(taxincluded)) if $form->{id}; |
|
174 |
$form->restore_vars(qw(salesman_id)) if $editing; |
|
170 | 175 |
|
171 | 176 |
if ($form->{"all_$form->{vc}"}) { |
172 | 177 |
unless ($form->{"$form->{vc}_id"}) { |
... | ... | |
174 | 179 |
} |
175 | 180 |
} |
176 | 181 |
|
177 |
$cp_id = $form->{cp_id}; |
|
178 |
$intnotes = $form->{intnotes}; |
|
179 |
|
|
180 |
$form->{cp_id} = $cp_id; |
|
181 |
|
|
182 |
$form->{payment_id} = $payment_id if ($payment_id); |
|
183 |
$form->{language_id} = $language_id if ($language_id); |
|
184 |
$form->{taxzone_id} = $taxzone_id if ($taxzone_id); |
|
185 |
$form->{intnotes} = $intnotes if ($intnotes); |
|
186 |
|
|
187 | 182 |
($form->{ $form->{vc} }) = split /--/, $form->{ $form->{vc} }; |
188 | 183 |
$form->{"old$form->{vc}"} = qq|$form->{$form->{vc}}--$form->{"$form->{vc}_id"}|; |
189 | 184 |
|
Auch abrufbar als: Unified diff
Beim Anlegen eines Lieferscheins die Kunden-/Lieferantendetails auslesen (z.B. Sprache).