Compare commits
2 Commits
9991e8976d
...
ca625c0c2b
| Author | SHA1 | Date | |
|---|---|---|---|
| ca625c0c2b | |||
| 7c11ace88f |
@ -548,7 +548,7 @@ BEGIN
|
||||
AND o.qtyord = q.vol
|
||||
AND o.fs_line = '41010'
|
||||
AND o.calc_status <> 'CANCELLED'
|
||||
AND o.version IN ('Actual', 'Forecast', 'Quotes')
|
||||
AND o.version IN ('Actual', 'Forecast', 'Quotes', 'Budget')
|
||||
AND o.part IS NOT NULL
|
||||
AND SUBSTRING(o.glec, 1, 1) <= '2';
|
||||
-- 14:13 10:09
|
||||
|
||||
@ -4,3 +4,4 @@ EXEC pricing.pricing.rebuild_pricelist;
|
||||
--14 secconds
|
||||
EXEC pricing.pricing.rebuild_targets;
|
||||
--12:49
|
||||
EXEC pricing.pricing.refresh_cost_rollups
|
||||
@ -4,3 +4,5 @@ CALL pricequote.rebuild_pricelist();
|
||||
--32 seconds
|
||||
CALL pricequote.refresh_target_prices_base();
|
||||
--45 seconds
|
||||
REFRESH MATERIALIZED VIEW rlarp.cost_v1ds
|
||||
REFRESH MATERIALIZED VIEW rlarp.cost_v0ds
|
||||
@ -48,6 +48,9 @@ BEGIN
|
||||
-- rebuild target prices
|
||||
EXEC pricing.rebuild_targets;
|
||||
|
||||
-- rebuild costs
|
||||
EXEC pricing.pricing.refresh_cost_rollups
|
||||
|
||||
END TRY
|
||||
|
||||
BEGIN CATCH
|
||||
|
||||
Loading…
Reference in New Issue
Block a user