diff --git a/build/convert_pool_all.sql b/build/convert_pool_all.sql index 75f1027..f805566 100644 --- a/build/convert_pool_all.sql +++ b/build/convert_pool_all.sql @@ -204,7 +204,7 @@ UPDATE SET fb_cst_loc_fut = c.std * o.fb_qty FROM - rlarp.arcstx c + rlarp.ftcstx c WHERE c.part = o.part AND c.plnt = o.plnt; @@ -216,7 +216,8 @@ SET fb_cst_loc_fut = fb_cst_loc ,fb_cst_loc_cur = fb_cst_loc WHERE - fb_cst_loc_cur is null; + fb_cst_loc_cur is NULL + OR fb_cst_loc_fut IS NULL; ----------------------------SET BILL-TO REP------------------------------------