primer commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
insert into bi.daily_inventory(
|
||||
created_dt,
|
||||
tenant_id,
|
||||
code2,
|
||||
inventory_code,
|
||||
inventory_item,
|
||||
type,
|
||||
count_unit,
|
||||
unit_cost,
|
||||
begining_inventory,
|
||||
delivered_quantity,
|
||||
starting_inv,
|
||||
ending_inventory,
|
||||
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)
|
||||
@@ -0,0 +1,8 @@
|
||||
select
|
||||
1 value
|
||||
from
|
||||
bi.daily_inventory
|
||||
where
|
||||
date(created_dt) = '{date}'
|
||||
and code2 = '{code}'
|
||||
limit 1
|
||||
Reference in New Issue
Block a user