mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-14 07:36:29 +02:00
parts storno fix
This commit is contained in:
parent
eb09d2d480
commit
876d1e6df2
4 changed files with 8 additions and 2 deletions
|
@ -1036,8 +1036,12 @@ sub insert_contentoid {
|
|||
}
|
||||
}
|
||||
elsif($key =~ /template_id|cc_id|ct_id|ca_id/ && $insert->{table} =~ /contentpos|contentadrpos|contenttranspos/){
|
||||
$columns .= "$key,";
|
||||
$columns .= "$key,";
|
||||
if(!looks_like_number($insert->{$key})){
|
||||
$values .= "null,";
|
||||
}else{
|
||||
$values .= "'$insert->{$key}',";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -456,6 +456,8 @@ sub price2calc {
|
|||
$total = $einzel * $menge;
|
||||
}
|
||||
|
||||
$total = $total * $ctpos->{int01} if($ctpos->{int01});
|
||||
|
||||
if($ctpos->{int07} && $ctpos->{int07} > 0 && $menge > 0){
|
||||
$discount = "-" . $ctpos->{int07};
|
||||
if($ctpos->{int08} && $ctpos->{int08} == 1){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue