Revision da804bf2
Von G. Richardson vor etwa 15 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
my $baseqty = $form->{"qty_$i"} * $basefactor;
|
||
|
||
$form->{"marge_percent_$i"} = $form->parse_amount($myconfig, $form->{"marge_percent_$i"}) * 1;
|
||
$form->{"marge_total_$i"} = $form->parse_amount($myconfig, $form->{"marge_total_$i"}) * 1;
|
||
$form->{"lastcost_$i"} = $form->{"lastcost_$i"} * 1;
|
||
$form->{"marge_absolut_$i"} = $form->parse_amount($myconfig, $form->{"marge_absolut_$i"}) * 1;
|
||
|
||
$form->{"lastcost_$i"} = $form->parse_amount($myconfig, $form->{"lastcost_$i"});
|
||
|
||
# set values to 0 if nothing entered
|
||
$form->{"discount_$i"} = $form->parse_amount($myconfig, $form->{"discount_$i"}) / 100;
|
||
... | ... | |
$form->{"serialnumber_$i"}, $form->{"ship_$i"}, conv_i($pricegroup_id),
|
||
$form->{"ordnumber_$i"}, conv_date($form->{"transdate_$i"}),
|
||
$form->{"cusordnumber_$i"}, $form->{"subtotal_$i"} ? 't' : 'f',
|
||
$form->{"marge_percent_$i"}, $form->{"marge_total_$i"},
|
||
$form->{"marge_percent_$i"}, $form->{"marge_absolut_$i"},
|
||
$form->{"lastcost_$i"},
|
||
conv_i($form->{"price_factor_id_$i"}), conv_i($form->{"price_factor_id_$i"}),
|
||
conv_i($form->{"marge_price_factor_$i"}));
|
Auch abrufbar als: Unified diff
EK-Preis editierbar gemacht und marge_total repariert
Der EK-Preis ist jetzt in Angebot/Auftrag/Rechnung editierbar.
Dies ist praktisch für Händler/Wiederverkäufer, bei denen sich der EK-Preis
häufig ändert, und es sich nicht lohnt, diesen in den Stammdaten zu pflegen.
Der EK-Preis wird (als lastcost) zusammen mit marge_total und marge_percent für
jeden Artikel in orderitems/invoice in der DB gespeichert. (Bei marge_total gab
es hier einen Bug, der falsche Variablenname wurde benutzt und marge_total war
immer leer.)
Der Stammdaten-EK-Preis wird nicht verändert, wenn man einen abweichenden
EK-Preis eingibt.