From 46bbb4ddbb3597a029f33c50a85c6f3c172220ae Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 16 Apr 2010 12:01:50 +0000 Subject: [PATCH] FR [2962094] Finish implementation of weighted average costing / as orders can be reopened - better assign matchpo just with invoice and not with order Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2962094 --- .../695_FR2962094_UpdateMatchInvProcessedOn.sql | 13 ------------- .../695_FR2962094_UpdateMatchInvProcessedOn.sql | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/migration/354a-trunk/oracle/695_FR2962094_UpdateMatchInvProcessedOn.sql b/migration/354a-trunk/oracle/695_FR2962094_UpdateMatchInvProcessedOn.sql index 86588d1c18..9ff8e84492 100644 --- a/migration/354a-trunk/oracle/695_FR2962094_UpdateMatchInvProcessedOn.sql +++ b/migration/354a-trunk/oracle/695_FR2962094_UpdateMatchInvProcessedOn.sql @@ -23,16 +23,3 @@ WHERE ProcessedOn <= (SELECT ProcessedOn WHERE C_InvoiceLine.C_InvoiceLine_ID=M_MatchPO.C_InvoiceLine_ID AND C_Invoice.C_Invoice_ID=C_InvoiceLine.C_Invoice_ID ); - --- set M_MatchPO.ProcessedOn after C_Invoice.ProcessedOn for a better recalculation of Standard -UPDATE M_MatchPO -SET ProcessedOn = (SELECT ProcessedOn+0.000000000001 - FROM C_Order, C_OrderLine - WHERE C_OrderLine.C_OrderLine_ID=M_MatchPO.C_OrderLine_ID AND - C_Order.C_Order_ID=C_OrderLine.C_Order_ID -) -WHERE ProcessedOn <= (SELECT ProcessedOn - FROM C_Order, C_OrderLine - WHERE C_OrderLine.C_OrderLine_ID=M_MatchPO.C_OrderLine_ID AND - C_Order.C_Order_ID=C_OrderLine.C_Order_ID - ); \ No newline at end of file diff --git a/migration/354a-trunk/postgresql/695_FR2962094_UpdateMatchInvProcessedOn.sql b/migration/354a-trunk/postgresql/695_FR2962094_UpdateMatchInvProcessedOn.sql index 86588d1c18..9ff8e84492 100644 --- a/migration/354a-trunk/postgresql/695_FR2962094_UpdateMatchInvProcessedOn.sql +++ b/migration/354a-trunk/postgresql/695_FR2962094_UpdateMatchInvProcessedOn.sql @@ -23,16 +23,3 @@ WHERE ProcessedOn <= (SELECT ProcessedOn WHERE C_InvoiceLine.C_InvoiceLine_ID=M_MatchPO.C_InvoiceLine_ID AND C_Invoice.C_Invoice_ID=C_InvoiceLine.C_Invoice_ID ); - --- set M_MatchPO.ProcessedOn after C_Invoice.ProcessedOn for a better recalculation of Standard -UPDATE M_MatchPO -SET ProcessedOn = (SELECT ProcessedOn+0.000000000001 - FROM C_Order, C_OrderLine - WHERE C_OrderLine.C_OrderLine_ID=M_MatchPO.C_OrderLine_ID AND - C_Order.C_Order_ID=C_OrderLine.C_Order_ID -) -WHERE ProcessedOn <= (SELECT ProcessedOn - FROM C_Order, C_OrderLine - WHERE C_OrderLine.C_OrderLine_ID=M_MatchPO.C_OrderLine_ID AND - C_Order.C_Order_ID=C_OrderLine.C_Order_ID - ); \ No newline at end of file