primer commit

This commit is contained in:
Marvin Vallecillo
2024-04-11 02:24:26 -06:00
commit bd0eef8998
19 changed files with 373 additions and 0 deletions
+20
View File
@@ -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)
+8
View File
@@ -0,0 +1,8 @@
select
1 value
from
bi.daily_inventory
where
date(created_dt) = '{date}'
and code2 = '{code}'
limit 1