fix casts
This commit is contained in:
parent
e7904d5040
commit
ae9bba67bd
@ -1,5 +1,5 @@
|
|||||||
--\timing
|
--\timing
|
||||||
truncate table rlarp.osmfs;
|
truncate table rlarp.osmf_dev;
|
||||||
|
|
||||||
WITH
|
WITH
|
||||||
gld AS (
|
gld AS (
|
||||||
@ -106,14 +106,14 @@ gld AS (
|
|||||||
,null::text assc
|
,null::text assc
|
||||||
,null::text ddunit
|
,null::text ddunit
|
||||||
,null::text unti
|
,null::text unti
|
||||||
,null::text lbs
|
,null::numeric lbs
|
||||||
,null::text plt
|
,null::numeric plt
|
||||||
,null::text plcd
|
,null::text plcd
|
||||||
,o.fs_line
|
,o.fs_line
|
||||||
,o.r_currency
|
,o.r_currency
|
||||||
,null::text r_rate
|
,null::numeric r_rate
|
||||||
,o.c_currency
|
,o.c_currency
|
||||||
,null::text c_rate
|
,null::numeric c_rate
|
||||||
,sum(o.fb_qty) fb_qty
|
,sum(o.fb_qty) fb_qty
|
||||||
,sum(o.fb_val_loc) fb_val_loc
|
,sum(o.fb_val_loc) fb_val_loc
|
||||||
,sum(o.fb_val_loc_dis) fb_val_loc_dis
|
,sum(o.fb_val_loc_dis) fb_val_loc_dis
|
||||||
@ -250,14 +250,14 @@ gld AS (
|
|||||||
,null::text assc
|
,null::text assc
|
||||||
,null::text ddunit
|
,null::text ddunit
|
||||||
,null::text unti
|
,null::text unti
|
||||||
,null::text lbs
|
,null::numeric lbs
|
||||||
,null::text plt
|
,null::numeric plt
|
||||||
,null::text plcd
|
,null::text plcd
|
||||||
,o.fs_line
|
,o.fs_line
|
||||||
,o.r_currency
|
,o.r_currency
|
||||||
,null::text r_rate
|
,null::numeric r_rate
|
||||||
,o.c_currency
|
,o.c_currency
|
||||||
,null::text c_rate
|
,null::numeric c_rate
|
||||||
,sum(o.fb_qty) fb_qty
|
,sum(o.fb_qty) fb_qty
|
||||||
,sum(o.fb_val_loc) fb_val_loc
|
,sum(o.fb_val_loc) fb_val_loc
|
||||||
,sum(o.fb_val_loc_dis) fb_val_loc_dis
|
,sum(o.fb_val_loc_dis) fb_val_loc_dis
|
||||||
@ -390,14 +390,14 @@ gld AS (
|
|||||||
,null::text assc
|
,null::text assc
|
||||||
,null::text ddunit
|
,null::text ddunit
|
||||||
,null::text unti
|
,null::text unti
|
||||||
,null::text lbs
|
,null::numeric lbs
|
||||||
,null::text plt
|
,null::numeric plt
|
||||||
,null::text plcd
|
,null::text plcd
|
||||||
,o.fs_line
|
,o.fs_line
|
||||||
,o.r_currency
|
,o.r_currency
|
||||||
,null::text r_rate
|
,null::numeric r_rate
|
||||||
,o.c_currency
|
,o.c_currency
|
||||||
,null::text c_rate
|
,null::numeric c_rate
|
||||||
,sum(o.fb_qty) fb_qty
|
,sum(o.fb_qty) fb_qty
|
||||||
,sum(o.fb_val_loc) fb_val_loc
|
,sum(o.fb_val_loc) fb_val_loc
|
||||||
,sum(o.fb_val_loc_dis) fb_val_loc_dis
|
,sum(o.fb_val_loc_dis) fb_val_loc_dis
|
||||||
@ -564,7 +564,7 @@ UNION ALL
|
|||||||
SELECT * FROM baseline;
|
SELECT * FROM baseline;
|
||||||
|
|
||||||
---identify short ships: causes disconnect with actual sales-------------------------------------------------------------------
|
---identify short ships: causes disconnect with actual sales-------------------------------------------------------------------
|
||||||
UPDATE rlarp.osmfs SET iter = 'short ship' WHERE calc_status = 'CLOSED' AND flag = 'REMAINDER';
|
--UPDATE rlarp.osmfs SET iter = 'short ship' WHERE calc_status = 'CLOSED' AND flag = 'REMAINDER';
|
||||||
|
|
||||||
---identify goofy ship dates: causes disconnect with sales when splicing in a forecast that has this problem-------------------
|
---identify goofy ship dates: causes disconnect with sales when splicing in a forecast that has this problem-------------------
|
||||||
UPDATE rlarp.osmfs SET iter = 'bad date' WHERE adj_shipdate < adj_orderdate;
|
--UPDATE rlarp.osmfs SET iter = 'bad date' WHERE adj_shipdate < adj_orderdate;
|
Loading…
Reference in New Issue
Block a user