Fix wrong migration scripts
This commit is contained in:
parent
732b21a43f
commit
04e7862a1b
|
@ -31,13 +31,13 @@ ALTER TABLE pp_wf_node_asset
|
||||||
ALTER TABLE pp_wf_node_asset
|
ALTER TABLE pp_wf_node_asset
|
||||||
ADD CONSTRAINT adwfnode_ppwfnodeasset
|
ADD CONSTRAINT adwfnode_ppwfnodeasset
|
||||||
FOREIGN KEY(ad_wf_node_id)
|
FOREIGN KEY(ad_wf_node_id)
|
||||||
REFERENCES adempiere.ad_wf_node(ad_wf_node_id)
|
REFERENCES ad_wf_node(ad_wf_node_id)
|
||||||
;
|
;
|
||||||
|
|
||||||
ALTER TABLE adempiere.pp_wf_node_asset
|
ALTER TABLE pp_wf_node_asset
|
||||||
ADD CONSTRAINT aasset_ppwfnodeasset
|
ADD CONSTRAINT aasset_ppwfnodeasset
|
||||||
FOREIGN KEY(a_asset_id)
|
FOREIGN KEY(a_asset_id)
|
||||||
REFERENCES adempiere.a_asset(a_asset_id)
|
REFERENCES a_asset(a_asset_id)
|
||||||
;
|
;
|
||||||
|
|
||||||
-- 29.08.2008 18:32:06 EEST
|
-- 29.08.2008 18:32:06 EEST
|
||||||
|
|
|
@ -140,12 +140,6 @@ updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52468 , 0, 0, 'Y', TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52468 , 0, 0, 'Y', TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.delete.price.on.pricelist', 'Delete Price On Price List', ' ', 'I', 'D');
|
'smenu.delete.price.on.pricelist', 'Delete Price On Price List', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO AD_MESSAGE
|
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
|
||||||
VALUES(52469 , 0, 0, 'Y', TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
|
||||||
'smenu.organisation', 'Organisation', ' ', 'I', 'D');
|
|
||||||
|
|
||||||
|
|
||||||
-- 1.6/postgresql/003_C_Currency.sql
|
-- 1.6/postgresql/003_C_Currency.sql
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
@ -1072,91 +1066,91 @@ updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52472 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52472 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'csv', 'CSV', ' ', 'I', 'D');
|
'csv', 'CSV', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52473 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52473 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.sales.report', 'Sales Report', ' ', 'I', 'D');
|
'smenu.sales.report', 'Sales Report', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52474 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52474 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.best.selling.items', 'Best Selling Items', ' ', 'I', 'D');
|
'smenu.best.selling.items', 'Best Selling Items', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52475 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52475 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.stock.sales.report', 'Stock Sales Report', ' ', 'I', 'D');
|
'smenu.stock.sales.report', 'Stock Sales Report', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52476 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52476 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.transfer.stock', 'Stock Transfer', ' ', 'I', 'D');
|
'smenu.transfer.stock', 'Stock Transfer', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52477 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52477 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.inventory.move', 'Inventory Move', ' ', 'I', 'D');
|
'smenu.inventory.move', 'Inventory Move', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52478 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52478 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.move.confirmation', 'Move Confirmation', ' ', 'I', 'D');
|
'smenu.move.confirmation', 'Move Confirmation', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52479 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52479 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'smenu.barcode.printing', 'Barcode Printing', ' ', 'I', 'D');
|
'smenu.barcode.printing', 'Barcode Printing', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52480 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52480 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'basePriceList', 'Base Price List', ' ', 'I', 'D');
|
'basePriceList', 'Base Price List', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52481, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52481, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'isDeleteOldRecords', 'Delete Old Records', ' ', 'I', 'D');
|
'isDeleteOldRecords', 'Delete Old Records', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52482, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52482, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'sales.price.list', 'Sales Price List', ' ', 'I', 'D');
|
'sales.price.list', 'Sales Price List', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52483, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52483, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'purchase.price.list', 'Purchase Price List', ' ', 'I', 'D');
|
'purchase.price.list', 'Purchase Price List', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52484, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52484, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'pos.terminal', 'Terminal', ' ', 'I', 'D');
|
'pos.terminal', 'Terminal', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52485, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52485, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'pos.version', 'Version', ' ', 'I', 'D');
|
'pos.version', 'Version', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52486, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52486, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
'pmenu.new.reports', 'Reports', ' ', 'I', 'D');
|
'pmenu.new.reports', 'Reports', ' ', 'I', 'D');
|
||||||
|
|
||||||
INSERT INTO adempiere.AD_MESSAGE
|
INSERT INTO AD_MESSAGE
|
||||||
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
|
||||||
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
|
||||||
VALUES(52487, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
VALUES(52487, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
|
||||||
|
@ -1348,4 +1342,4 @@ UPDATE AD_Tab SET WhereClause=NULL,Updated=now(),UpdatedBy=100 WHERE AD_Tab_ID=3
|
||||||
|
|
||||||
|
|
||||||
-- x.x.x/postgresql/
|
-- x.x.x/postgresql/
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
-- Dez 02, 2008 12:27:12 PM ECT
|
-- Dez 02, 2008 12:27:12 PM ECT
|
||||||
-- fix Region Alaksa
|
-- fix Region Alaska
|
||||||
update c_region set Description='Alaska',Updated=TO_DATE('2008-12-02 12:27:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 where c_region_id=118
|
update c_region set Description='Alaska',Updated=TO_DATE('2008-12-02 12:27:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 where c_region_id=118
|
||||||
;
|
;
|
||||||
|
|
|
@ -19,9 +19,9 @@ $BODY$
|
||||||
*
|
*
|
||||||
*You should have received a copy of the GNU General Public License
|
*You should have received a copy of the GNU General Public License
|
||||||
*along with this program; if not, write to the Free Software
|
*along with this program; if not, write to the Free Software
|
||||||
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
||||||
*
|
*
|
||||||
* Converted to PostgreSQL by Tony Snook,
|
* Converted to PostgreSQL by Tony Snook,
|
||||||
* tspc@dodo.com.au
|
* tspc@dodo.com.au
|
||||||
*/
|
*/
|
||||||
DECLARE
|
DECLARE
|
||||||
|
@ -38,11 +38,10 @@ begin
|
||||||
WHEN v_Saturday THEN 2
|
WHEN v_Saturday THEN 2
|
||||||
WHEN v_Sunday THEN 1
|
WHEN v_Sunday THEN 1
|
||||||
ELSE 0
|
ELSE 0
|
||||||
END INTO v_offset
|
END INTO v_offset;
|
||||||
FROM adempiere.test;
|
|
||||||
v_nextDate := v_nextDate + v_offset::integer;
|
v_nextDate := v_nextDate + v_offset::integer;
|
||||||
v_isHoliday := false;
|
v_isHoliday := false;
|
||||||
FOR nbd IN SELECT *
|
FOR nbd IN SELECT *
|
||||||
FROM C_NonBusinessDay
|
FROM C_NonBusinessDay
|
||||||
WHERE AD_Client_ID=p_AD_Client_ID and IsActive ='Y' and Date1 >= v_nextDate
|
WHERE AD_Client_ID=p_AD_Client_ID and IsActive ='Y' and Date1 >= v_nextDate
|
||||||
ORDER BY Date1
|
ORDER BY Date1
|
||||||
|
@ -58,5 +57,5 @@ begin
|
||||||
end;
|
end;
|
||||||
$BODY$
|
$BODY$
|
||||||
LANGUAGE 'plpgsql' VOLATILE;
|
LANGUAGE 'plpgsql' VOLATILE;
|
||||||
|
|
||||||
ALTER FUNCTION nextbusinessday(timestamp with time zone, numeric) OWNER TO adempiere;
|
ALTER FUNCTION nextbusinessday(timestamp with time zone, numeric) OWNER TO adempiere;
|
||||||
|
|
Loading…
Reference in New Issue