refactor: refs #6501 Minor change
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-02-12 10:08:56 +01:00
parent fc5daf119c
commit 212bf58932
1 changed files with 2 additions and 2 deletions

View File

@ -179,14 +179,14 @@ BEGIN
quantity - MOD(quantity , `grouping`) subQuantity,
MOD(quantity, `grouping`) soll,
ROUND((IF(volume > 0,volume, width * `depth` * IF(height = 0, `size` + 10, height))) / packing, 0) cm3,
buyingValue + comissionValue + freightValue Cost,
buyingValue + comissionValue + freightValue cost,
@carriage := ROUND((IF(volume > 0, volume, width * `depth` * IF(height = 0, `size` + 10, height))) * m3 / 1000000 / Packing, 3) carriage,
@comission := ROUND((buyingValue + comissionValue + freightValue) * commission / 100, 3) commission,
ROUND(@packaging := (returnCost + IF(isPackageReturnable != 0, 0, value)) / packing, 3) packaging,
@cost := IFNULL((buyingValue + comissionValue + freightValue), 0) +
IFNULL(@packaging, 0) +
IFNULL(@carriage, 0) +
IFNULL(@comission, 0) cost,
IFNULL(@comission, 0) expense,
@rate3 := ROUND(@cost / ( (100 - rate3 - promo) / 100), 2) rate3,
ROUND(@rate3 * (1 + ((rate2 - rate3)/100)), 2) rate2,
FALSE selected