Revision b632cee8
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/DO.pm | ||
---|---|---|
293 | 293 |
do_statement($form, $h_item_id, $q_item_id); |
294 | 294 |
my ($item_id) = $h_item_id->fetchrow_array(); |
295 | 295 |
|
296 |
# Get pricegroup_id and save it. Unfortunately the interface |
|
297 |
# also uses ID "0" for signalling that none is selected, but "0" |
|
298 |
# must not be stored in the database. Therefore we cannot simply |
|
299 |
# use conv_i(). |
|
300 |
my $pricegroup_id = $form->{"pricegroup_id_$i"} * 1; |
|
301 |
$pricegroup_id = undef if !$pricegroup_id; |
|
302 |
|
|
296 | 303 |
# save detail record in delivery_order_items table |
297 | 304 |
@values = (conv_i($item_id), conv_i($form->{id}), conv_i($form->{"id_$i"}), |
298 | 305 |
$form->{"description_$i"}, $form->{"longdescription_$i"}, |
... | ... | |
305 | 312 |
$form->{"lastcost_$i"}, |
306 | 313 |
conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"price_factor_id_$i"}), |
307 | 314 |
conv_i($form->{"marge_price_factor_$i"}), |
308 |
conv_i($form->{"pricegroup_id_$i"}));
|
|
315 |
$pricegroup_id);
|
|
309 | 316 |
do_statement($form, $h_item, $q_item, @values); |
310 | 317 |
|
311 | 318 |
my $stock_info = DO->unpack_stock_information('packed' => $form->{"stock_${in_out}_$i"}); |
Auch abrufbar als: Unified diff
InvoiceItem, OrderItem, DeliveryOrderItem: diverse Fremdschlüssel eingeführt