- InOutGenerate.java - minor indentation enhancement

- 002_add_feature_1714090.sql - change it to make new parameter optional
- 003_make_feature_1714090_optional.sql - update for those who already ran the 002
This commit is contained in:
Carlos Ruiz 2007-05-08 03:40:49 +00:00
parent d146950e0b
commit 3b9a37e64b
5 changed files with 82 additions and 44 deletions

View File

@ -106,10 +106,10 @@ public class InOutGenerate extends SvrProcess
// juddm - added ability to specify a shipment date from Generate Shipments
if (p_DateShipped == null) {
m_movementDate = Env.getContextAsDate(getCtx(), "#Date");
if (m_movementDate == null)
m_movementDate = new Timestamp(System.currentTimeMillis());
} else
m_movementDate = p_DateShipped;
if (m_movementDate == null)
m_movementDate = new Timestamp(System.currentTimeMillis());
} else
m_movementDate = p_DateShipped;
// DocAction check
if (!DocAction.ACTION_Complete.equals(p_docAction))
p_docAction = DocAction.ACTION_Prepare;

View File

@ -2,14 +2,25 @@
-- juddm - add the ability to specific a shipment date (instead of current date) to the shipment generation process
-- http://sourceforge.net/tracker/index.php?func=detail&aid=1714090&group_id=176962&atid=879335
INSERT INTO AD_PROCESS_PARA (ad_process_para_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby,
name, description, help, ad_process_id, seqno, ad_reference_id, ad_reference_value_id, ad_val_rule_id, columnname, iscentrallymaintained,
fieldlength, ismandatory, isrange, defaultvalue, defaultvalue2, vformat, valuemin, valuemax, ad_element_id, entitytype )
VALUES (50019, 0, 0, 'Y', TO_DATE('2007-03-03','YYYY-MM-DD'), 100, TO_DATE('2007-03-03','YYYY-MM-DD'), 100,
'Shipment Date', 'Date printed on shipment', 'The Shipment Date indicates the date printed on the shipment.', 118, 15, 15,null,null, 'MovementDate', 'Y',
0, 'Y', 'N', '@#Date@', '','','','', 1037, 'D');
INSERT INTO AD_PROCESS_PARA
(ad_process_para_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, NAME,
description,
HELP,
ad_process_id, seqno, ad_reference_id, ad_reference_value_id,
ad_val_rule_id, columnname, iscentrallymaintained, fieldlength,
ismandatory, isrange, ad_element_id, entitytype
)
VALUES (50019, 0, 0, 'Y', TO_DATE ('2007-03-03', 'YYYY-MM-DD'),
100, TO_DATE ('2007-03-03', 'YYYY-MM-DD'), 100, 'Shipment Date',
'Date printed on shipment',
'The Shipment Date indicates the date printed on the shipment.',
118, 15, 15, NULL,
NULL, 'MovementDate', 'N', 0,
'Y', 'N', 1037, 'D'
);
COMMIT;
COMMIT ;
UPDATE AD_SEQUENCE
SET currentnextsys = (SELECT MAX (ad_process_para_id) + 1
@ -17,4 +28,4 @@ UPDATE AD_SEQUENCE
WHERE ad_process_para_id < 1000000)
WHERE NAME = 'AD_Process_Para';
COMMIT;
COMMIT ;

View File

@ -0,0 +1,8 @@
UPDATE AD_PROCESS_PARA
SET defaultvalue = NULL,
ismandatory = 'N',
updated = TO_DATE ('2007-05-07 20:55:59', 'YYYY-MM-DD HH24:MI:SS'),
updatedby = 100
WHERE ad_process_para_id = 50019;
COMMIT ;

View File

@ -2,14 +2,25 @@
-- juddm - add the ability to specific a shipment date (instead of current date) to the shipment generation process
-- http://sourceforge.net/tracker/index.php?func=detail&aid=1714090&group_id=176962&atid=879335
INSERT INTO AD_PROCESS_PARA (ad_process_para_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby,
name, description, help, ad_process_id, seqno, ad_reference_id, ad_reference_value_id, ad_val_rule_id, columnname, iscentrallymaintained,
fieldlength, ismandatory, isrange, defaultvalue, defaultvalue2, vformat, valuemin, valuemax, ad_element_id, entitytype )
VALUES (50019, 0, 0, 'Y', TO_TIMESTAMP('2007-03-03','YYYY-MM-DD'), 100, TO_TIMESTAMP('2007-03-03','YYYY-MM-DD'), 100,
'Shipment Date', 'Date printed on shipment', 'The Shipment Date indicates the date printed on the shipment.', 118, 15, 15,null,null, 'MovementDate', 'Y',
0, 'Y', 'N', '@#Date@', '','','','', 1037, 'D');
INSERT INTO AD_PROCESS_PARA
(ad_process_para_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, ad_reference_value_id,
ad_val_rule_id, columnname, iscentrallymaintained, fieldlength,
ismandatory, isrange, ad_element_id, entitytype
)
VALUES (50019, 0, 0, 'Y', TO_TIMESTAMP ('2007-03-03', 'YYYY-MM-DD'),
100, TO_TIMESTAMP ('2007-03-03', 'YYYY-MM-DD'), 100,
'Shipment Date', 'Date printed on shipment',
'The Shipment Date indicates the date printed on the shipment.',
118, 15, 15, NULL,
NULL, 'MovementDate', 'N', 0,
'Y', 'N', 1037, 'D'
);
COMMIT;
COMMIT ;
UPDATE AD_SEQUENCE
SET currentnextsys = (SELECT MAX (ad_process_para_id) + 1
@ -17,4 +28,4 @@ UPDATE AD_SEQUENCE
WHERE ad_process_para_id < 1000000)
WHERE NAME = 'AD_Process_Para';
COMMIT;
COMMIT ;

View File

@ -0,0 +1,8 @@
UPDATE AD_PROCESS_PARA
SET defaultvalue = NULL,
ismandatory = 'N',
updated = TO_TIMESTAMP ('2007-05-07 20:55:59', 'YYYY-MM-DD HH24:MI:SS'),
updatedby = 100
WHERE ad_process_para_id = 50019;
COMMIT ;