-- add new field portion_quantity

-- change field name from table
This commit is contained in:
Marvin Vallecillo 2024-09-17 03:15:57 -06:00
parent bd0eef8998
commit 277e3089a9
2 changed files with 6 additions and 5 deletions

View File

@ -1,20 +1,21 @@
insert into bi.daily_inventory( insert into bi.daily_inventory(
created_dt, created_dt,
tenant_id, tenant_id,
code2, code,
inventory_code, inventory_code,
inventory_item, inventory_item,
type, type,
count_unit, count_unit,
portion_quantity,
unit_cost, unit_cost,
begining_inventory, begining_inventory,
delivered_quantity, delivered_quantity,
starting_inv, starting_inv,
ending_inventory, ending_inventory,
actual_usage_unit,
actual_usage_pkg, actual_usage_pkg,
actual_usage,
ideal_usage, ideal_usage,
actual_vs_ideal, actual_vs_ideal,
cost_used cost_used
) )
values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)

View File

@ -3,6 +3,6 @@ select
from from
bi.daily_inventory bi.daily_inventory
where where
date(created_dt) = '{date}' created_dt = STR_TO_DATE('{date}', '%Y-%m-%d')
and code2 = '{code}' and code = '{code}'
limit 1 limit 1