diff --git a/build/convert_pool.sql b/build/convert_pool.sql index 6f38fec..f3cd8f7 100644 --- a/build/convert_pool.sql +++ b/build/convert_pool.sql @@ -141,7 +141,7 @@ plist AS ( UPDATE - rlarp.osmfS_dev o + rlarp.osmfs_dev o SET fb_cst_loc_cur = c.stdcost * o.fb_qty FROM @@ -364,7 +364,7 @@ WHERE UPDATE rlarp.osmfS_dev SET - r_rate = .7597 + r_rate = .7518 WHERE r_currency = 'CA'; @@ -378,7 +378,7 @@ WHERE UPDATE rlarp.osmfS_dev SET - c_rate = .7597 + c_rate = .7518 WHERE c_currency = 'CA'; diff --git a/build/swap_fake_parts.sql b/build/swap_fake_parts.sql index 32b0073..0e21b96 100644 --- a/build/swap_fake_parts.sql +++ b/build/swap_fake_parts.sql @@ -15,12 +15,15 @@ fp as ( ) SELECT fp.part, + fp.sales, min(item) item FROM fp LEFT OUTER JOIN rlarp.itemmv m ON substring(m.item,1,11) = fp.part GROUP BY - fp.part + fp.part, + fp.sales ORDER BY + fp.sales desc,` fp.part \ No newline at end of file