Revision 2521c1bb
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
1766 | 1766 |
map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued customer vendor creditlimit creditremaining discount tradediscount oldinvtotal delivered ordnumber); |
1767 | 1767 |
|
1768 | 1768 |
# if purchase_order was generated from sales_order, use lastcost_$i as sellprice_$i |
1769 |
# also reset discounts |
|
1769 | 1770 |
if ( $form->{sales_order_to_purchase_order} ) { |
1770 | 1771 |
for my $i (1 .. $form->{rowcount}) { |
1771 | 1772 |
$form->{"sellprice_${i}"} = $form->format_amount(\%myconfig,$form->{"lastcost_${i}"}); |
1773 |
$form->{"discount_${i}"} = 0; |
|
1772 | 1774 |
}; |
1773 | 1775 |
}; |
1774 | 1776 |
|
Auch abrufbar als: Unified diff
Beim Umwandeln von verkaufsauftrag zu Lieferantenauftrag Rabatte resetten.