author | Juan Pablo Aroztegi <juanpablo.aroztegi@openbravo.com> |
Mon, 28 Apr 2008 09:28:08 +0000 | |
changeset 785 | 8dba91261590 |
parent 781 | d68cf344696f |
permissions | -rw-r--r-- |
adrian@94 | 1 |
<?xml version="1.0"?> |
adrian@94 | 2 |
<database name="TRIGGER AD_PRINTFORMATITEM_BTRG"> |
adrian@94 | 3 |
<trigger name="AD_PRINTFORMATITEM_BTRG" table="AD_PRINTFORMATITEM" fires="before" insert="true" update="true" delete="false" foreach="row"> |
gorkaion@239 | 4 |
<body><![CDATA[ |
adrian@94 | 5 |
BEGIN |
adrian@94 | 6 |
/************************************************************************* |
juanpablo@771 | 7 |
* The contents of this file are subject to the Compiere Public |
juanpablo@771 | 8 |
* License 1.1 ("License"); You may not use this file except in |
juanpablo@771 | 9 |
* compliance with the License. You may obtain a copy of the License in |
juanpablo@771 | 10 |
* the legal folder of your Openbravo installation. |
adrian@94 | 11 |
* Software distributed under the License is distributed on an |
adrian@94 | 12 |
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
adrian@94 | 13 |
* implied. See the License for the specific language governing rights |
adrian@94 | 14 |
* and limitations under the License. |
juanpablo@778 | 15 |
* The Original Code is Compiere ERP & Business Solution |
juanpablo@771 | 16 |
* The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc. |
adrian@94 | 17 |
* Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, |
adrian@94 | 18 |
* parts created by ComPiere are Copyright (C) ComPiere, Inc.; |
adrian@94 | 19 |
* All Rights Reserved. |
adrian@94 | 20 |
* Contributor(s): Openbravo SL |
juanpablo@785 | 21 |
* Contributions are Copyright (C) 2001-2008 Openbravo, S.L. |
juanpablo@771 | 22 |
* |
juanpablo@771 | 23 |
* Specifically, this derivative work is based upon the following Compiere |
juanpablo@771 | 24 |
* file and version. |
adrian@94 | 25 |
************************************************************************* |
adrian@94 | 26 |
* $Id: AD_PrintFormatItem_BTrg.sql,v 1.2 2002/08/26 05:23:32 jjanke Exp $ |
adrian@94 | 27 |
*** |
adrian@94 | 28 |
* Title: AD_PrintFormatItem |
adrian@94 | 29 |
* Description: |
adrian@94 | 30 |
* - DeSelect Group By when not Sort Order |
adrian@94 | 31 |
* - Absolute/Relative Setting |
adrian@94 | 32 |
************************************************************************/ |
adrian@94 | 33 |
-- If Order By is de-selected de-select Group by too |
adrian@94 | 34 |
IF(:new.IsOrderBy='N') THEN |
adrian@94 | 35 |
:new.SortNo:=0; |
adrian@94 | 36 |
:new.IsGroupBy:='N'; |
adrian@94 | 37 |
:new.IsPageBreak:='N'; |
adrian@94 | 38 |
END IF; |
adrian@94 | 39 |
IF(:new.IsRelativePosition='Y') THEN |
adrian@94 | 40 |
:new.XPosition:=0; |
adrian@94 | 41 |
:new.YPosition:=0; |
adrian@94 | 42 |
ELSE |
adrian@94 | 43 |
:new.XSpace:=0; |
adrian@94 | 44 |
:new.YSpace:=0; |
adrian@94 | 45 |
END IF; |
antonio@735 | 46 |
END AD_PRINTFORMATITEM_BTRG |
gorkaion@239 | 47 |
]]></body> |
adrian@94 | 48 |
</trigger> |
adrian@94 | 49 |
</database> |