-- 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(
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)

View File

@ -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