-- add new field portion_quantity
-- change field name from table
This commit is contained in:
parent
bd0eef8998
commit
277e3089a9
@ -1,20 +1,21 @@
|
||||
insert into bi.daily_inventory(
|
||||
created_dt,
|
||||
tenant_id,
|
||||
code2,
|
||||
code,
|
||||
inventory_code,
|
||||
inventory_item,
|
||||
type,
|
||||
count_unit,
|
||||
portion_quantity,
|
||||
unit_cost,
|
||||
begining_inventory,
|
||||
delivered_quantity,
|
||||
starting_inv,
|
||||
ending_inventory,
|
||||
actual_usage_unit,
|
||||
actual_usage_pkg,
|
||||
actual_usage,
|
||||
ideal_usage,
|
||||
actual_vs_ideal,
|
||||
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)
|
||||
@ -3,6 +3,6 @@ select
|
||||
from
|
||||
bi.daily_inventory
|
||||
where
|
||||
date(created_dt) = '{date}'
|
||||
and code2 = '{code}'
|
||||
created_dt = STR_TO_DATE('{date}', '%Y-%m-%d')
|
||||
and code = '{code}'
|
||||
limit 1
|
||||
Loading…
Reference in New Issue
Block a user