$query = qq|DELETE FROM shipto
WHERE trans_id = $form->{id}|;
$dbh->do($query) || $form->dberror($query);
+ $delete_oe_id = 0;
} else {
WHERE o.ordnumber = '$uid'|;
$sth = $dbh->prepare($query);
$sth->execute || $form->dberror($query);
+ $delete_oe_id = 1;
($form->{id}) = $sth->fetchrow_array;
$sth->finish;
map {
$form->{"${_}_$i"} = $form->parse_amount($myconfig, $form->{"${_}_$i"})
} qw(qty ship);
+ if ($delete_oe_id) {
+ $form->{"orderitems_id_$i"} = "";
+ }
if ($form->{"qty_$i"}) {
# get pricegroup_id and save ist
($null, my $pricegroup_id) = split /--/, $form->{"sellprice_drag_$i"};
+ $pricegroup_id *= 1;
# save detail record in orderitems table
$query = qq|INSERT INTO orderitems (|;
}
}
+ $tax_rate = $taxrate*100;
+ push(@{ $form->{tax_rate} }, qq|$tax_rate|);
+
if ($form->{"assembly_$i"}) {
$sameitem = "";