refactor: refs #6501 Migrated procs from vn2008 to vn #2016

Merged
guillermo merged 24 commits from 6501-procMigration into dev 2024-02-14 10:31:14 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 212bf58932 - Show all commits

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