|
@@ -85,7 +85,7 @@ begin |
|
|
0 as cpm, |
|
|
0 as cpm, |
|
|
ti.currencyName as cpmUnit, |
|
|
ti.currencyName as cpmUnit, |
|
|
ti.uomId as uomId, |
|
|
ti.uomId as uomId, |
|
|
if(coalesce(ti.currentQty, 0) > 0, 'Y', 'N') as status |
|
|
|
|
|
|
|
|
if(coalesce(ti.currentQty, 0) > 0, 'available', 'unavailable') as status |
|
|
from `temp_inventory` ti; |
|
|
from `temp_inventory` ti; |
|
|
else |
|
|
else |
|
|
update `inventory` i |
|
|
update `inventory` i |
|
|