BF [ 1699033 ] Import BPartner Problem

http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1699033&group_id=176962
This commit is contained in:
teo_sarca 2007-04-16 09:31:14 +00:00
parent 2b7de0899a
commit 18046bb44f
3 changed files with 12 additions and 3 deletions

View File

@ -908,10 +908,10 @@ public static final String COLUMNNAME_Weight = "Weight";
@param X12DE355 UOM EDI X12 Code */
public void setX12DE355 (String X12DE355)
{
if (X12DE355 != null && X12DE355.length() > 2)
if (X12DE355 != null && X12DE355.length() > 4)
{
log.warning("Length > 2 - truncated");
X12DE355 = X12DE355.substring(0,1);
log.warning("Length > 4 - truncated");
X12DE355 = X12DE355.substring(0,3);
}
set_Value ("X12DE355", X12DE355);
}

View File

@ -0,0 +1,5 @@
-- Fix I_Product.X12DE355 FieldLength:
ALTER TABLE I_Product MODIFY X12DE355 NVARCHAR2(4);
UPDATE AD_Column SET FieldLength=4 WHERE AD_Column_ID=7862;
COMMIT;

View File

@ -0,0 +1,4 @@
-- Fix I_Product.X12DE355 FieldLength:
ALTER TABLE i_product ALTER x12de355 TYPE character varying(4);
UPDATE AD_Column SET FieldLength=4 WHERE AD_Column_ID=7862;
COMMIT;