Revision ef141198
Von Jan Büren vor etwa 10 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
1816 | 1816 |
|
1817 | 1817 |
# reset |
1818 | 1818 |
map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued customer vendor creditlimit creditremaining discount tradediscount oldinvtotal delivered ordnumber); |
1819 |
delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; # always reset orderitems_id |
|
1819 | 1820 |
|
1820 | 1821 |
# if purchase_order was generated from sales_order, use lastcost_$i as sellprice_$i |
1821 | 1822 |
# also reset discounts |
... | ... | |
1823 | 1824 |
for my $i (1 .. $form->{rowcount}) { |
1824 | 1825 |
$form->{"sellprice_${i}"} = $form->{"lastcost_${i}"}; |
1825 | 1826 |
$form->{"discount_${i}"} = 0; |
1826 |
delete $form->{"orderitems_id_$_"}; |
|
1827 | 1827 |
}; |
1828 | 1828 |
}; |
1829 | 1829 |
|
Auch abrufbar als: Unified diff
orderitems persistent teil III
IMMER die orderitems_id in sub poso löschen, nicht nur in
der if-bedingung
Angebot -> Auftrag i.O.
Auftrag - > Angebot i.O.
Kundenauftrag -> Lieferantenauftrag i.O.