Revision 6d3c1977
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
382 | 382 |
qq|INSERT INTO invoice (id, trans_id, parts_id, description, longdescription, qty, base_qty, |
383 | 383 |
sellprice, fxsellprice, discount, allocated, unit, deliverydate, |
384 | 384 |
project_id, serialnumber, price_factor_id, price_factor, marge_price_factor) |
385 |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, (SELECT factor FROM price_factors WHERE id = ?), ?)|; |
|
385 |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, (SELECT factor FROM price_factors WHERE id = ?), ?, ?)|;
|
|
386 | 386 |
@values = ($invoice_id, conv_i($form->{id}), conv_i($form->{"id_$i"}), |
387 | 387 |
$form->{"description_$i"}, $restricter->process($form->{"longdescription_$i"}), $form->{"qty_$i"} * -1, |
388 | 388 |
$baseqty * -1, $form->{"sellprice_$i"}, $fxsellprice, $form->{"discount_$i"}, $allocated, |
389 | 389 |
$form->{"unit_$i"}, conv_date($form->{deliverydate}), |
390 | 390 |
conv_i($form->{"project_id_$i"}), $form->{"serialnumber_$i"}, |
391 |
conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"marge_price_factor_$i"})); |
|
391 |
conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"marge_price_factor_$i"}), |
|
392 |
conv_i($form->{"active_price_source_$i"}), |
|
393 |
); |
|
392 | 394 |
do_query($form, $dbh, $query, @values); |
393 | 395 |
|
394 | 396 |
CVar->save_custom_variables(module => 'IC', |
... | ... | |
976 | 978 |
|
977 | 979 |
i.id AS invoice_id, |
978 | 980 |
i.description, i.longdescription, i.qty, i.fxsellprice AS sellprice, i.parts_id AS id, i.unit, i.deliverydate, i.project_id, i.serialnumber, |
979 |
i.price_factor_id, i.price_factor, i.marge_price_factor, i.discount, |
|
981 |
i.price_factor_id, i.price_factor, i.marge_price_factor, i.discount, i.active_price_source,
|
|
980 | 982 |
p.partnumber, p.inventory_accno_id AS part_inventory_accno_id, pr.projectnumber, pg.partsgroup |
981 | 983 |
|
982 | 984 |
FROM invoice i |
Auch abrufbar als: Unified diff
PriceSource: bei Rechnungen mitspeichern