details:   https://code.openbravo.com/erp/devel/pi/rev/288baadd3b3c
changeset: 17846:288baadd3b3c
user:      Ioritz Cia <ioritz.cia <at> openbravo.com>
date:      Mon Sep 03 12:44:29 2012 +0200
summary:   Fixes issue 21531: Backout of the chageset c265310457cd.
Changeset c265310457cd does not allow to reactivate orders in environments with 
shipments with more quantity than the order.

diffstat:

 src-db/database/model/triggers/M_INOUTLINE_TRG2.xml |  49 ---------------------
 1 files changed, 0 insertions(+), 49 deletions(-)

diffs (53 lines):

diff -r 2bbfc245d4ff -r 288baadd3b3c 
src-db/database/model/triggers/M_INOUTLINE_TRG2.xml
--- a/src-db/database/model/triggers/M_INOUTLINE_TRG2.xml       Sat Sep 01 
00:57:37 2012 +0200
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-  <database name="TRIGGER M_INOUTLINE_TRG2">
-    <trigger name="M_INOUTLINE_TRG2" table="M_INOUTLINE" fires="after" 
insert="true" update="true" delete="false" foreach="statement">
-      <body><![CDATA[
-
-
-
-
-/*************************************************************************
-* The contents of this file are subject to the Openbravo  Public  License
-* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
-* Version 1.1  with a permitted attribution clause; you may not  use this
-* file except in compliance with the License. You  may  obtain  a copy of
-* the License at http://www.openbravo.com/legal/license.html
-* Software distributed under the License  is  distributed  on  an "AS IS"
-* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-* License for the specific  language  governing  rights  and  limitations
-* under the License.
-* The Original Code is Openbravo ERP.
-* The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2012 Openbravo SLU
-* All Rights Reserved.
-* Contributor(s):  ______________________________________.
-************************************************************************/
-
-v_Count NUMBER;
-
-BEGIN
-    
-    IF AD_isTriggerEnabled()='N' THEN RETURN;
-    END IF;
-
-    SELECT MAX(A.NUM)
-    INTO v_Count
-    FROM (
-    SELECT COUNT(*) AS NUM
-    FROM c_orderline ol
-         LEFT JOIN m_inoutline iol ON ol.c_orderline_id = iol.c_orderline_id
-    GROUP BY ol.qtyordered, iol.c_orderline_id
-    HAVING SUM(iol.movementqty) > ol.qtyordered) A;
-
-    IF(v_Count <> 0) THEN
-         RAISE_APPLICATION_ERROR(-20000, '@MovementQtyCheck@');
-    END IF;
-    
-END M_INOUTLINE_TRG2
-]]></body>
-    </trigger>
-  </database>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to