Implement [2690930] Importer for Price List

Found strange problem in importer - adempiere generates check constraint Y/N for boolean fields, but importers assign 'E' to I_IsImported on error
This commit is contained in:
Carlos Ruiz 2009-03-19 03:42:57 +00:00
parent 9dccb966fe
commit 857209220a
2 changed files with 2 additions and 2 deletions

View File

@ -732,7 +732,7 @@ UPDATE AD_Field SET Name='Enforce price limit', Description='Do not allow prices
; ;
-- Mar 17, 2009 11:31:33 PM COT -- Mar 17, 2009 11:31:33 PM COT
CREATE TABLE I_PriceList (AD_Client_ID NUMBER(10) DEFAULT NULL , AD_Org_ID NUMBER(10) DEFAULT NULL , BPartner_Value NVARCHAR2(40), BreakValue NUMBER, C_BPartner_ID NUMBER(10), C_Currency_ID NUMBER(10), Created DATE, CreatedBy NUMBER(10), C_UOM_ID NUMBER(10), Description NVARCHAR2(255), EnforcePriceLimit CHAR(1) CHECK (EnforcePriceLimit IN ('Y','N')), I_ErrorMsg NVARCHAR2(2000), I_IsImported CHAR(1) CHECK (I_IsImported IN ('Y','N')) NOT NULL, I_PriceList_ID NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')), ISO_Code NVARCHAR2(3), IsSOPriceList CHAR(1) CHECK (IsSOPriceList IN ('Y','N')), IsTaxIncluded CHAR(1) CHECK (IsTaxIncluded IN ('Y','N')), M_Product_ID NUMBER(10), Name NVARCHAR2(60), PriceLimit NUMBER, PriceList NUMBER, PricePrecision NUMBER, PriceStd NUMBER, Processed CHAR(1) CHECK (Processed IN ('Y','N')), Processing CHAR(1), ProductValue NVARCHAR2(40), Updated DATE, UpdatedBy NUMBER(10), ValidFrom DATE, X12DE355 NVARCHAR2(4), CONSTRAINT I_PriceList_Key PRIMARY KEY (I_PriceList_ID)) CREATE TABLE I_PriceList (AD_Client_ID NUMBER(10) DEFAULT NULL , AD_Org_ID NUMBER(10) DEFAULT NULL , BPartner_Value NVARCHAR2(40), BreakValue NUMBER, C_BPartner_ID NUMBER(10), C_Currency_ID NUMBER(10), Created DATE, CreatedBy NUMBER(10), C_UOM_ID NUMBER(10), Description NVARCHAR2(255), EnforcePriceLimit CHAR(1) CHECK (EnforcePriceLimit IN ('Y','N')), I_ErrorMsg NVARCHAR2(2000), I_IsImported CHAR(1) NOT NULL, I_PriceList_ID NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')), ISO_Code NVARCHAR2(3), IsSOPriceList CHAR(1) CHECK (IsSOPriceList IN ('Y','N')), IsTaxIncluded CHAR(1) CHECK (IsTaxIncluded IN ('Y','N')), M_Product_ID NUMBER(10), Name NVARCHAR2(60), PriceLimit NUMBER, PriceList NUMBER, PricePrecision NUMBER, PriceStd NUMBER, Processed CHAR(1) CHECK (Processed IN ('Y','N')), Processing CHAR(1), ProductValue NVARCHAR2(40), Updated DATE, UpdatedBy NUMBER(10), ValidFrom DATE, X12DE355 NVARCHAR2(4), CONSTRAINT I_PriceList_Key PRIMARY KEY (I_PriceList_ID))
; ;
-- Mar 17, 2009 11:33:33 PM COT -- Mar 17, 2009 11:33:33 PM COT

View File

@ -732,7 +732,7 @@ UPDATE AD_Field SET Name='Enforce price limit', Description='Do not allow prices
; ;
-- Mar 17, 2009 11:31:33 PM COT -- Mar 17, 2009 11:31:33 PM COT
CREATE TABLE I_PriceList (AD_Client_ID NUMERIC(10) DEFAULT NULL , AD_Org_ID NUMERIC(10) DEFAULT NULL , BPartner_Value VARCHAR(40), BreakValue NUMERIC, C_BPartner_ID NUMERIC(10), C_Currency_ID NUMERIC(10), Created TIMESTAMP, CreatedBy NUMERIC(10), C_UOM_ID NUMERIC(10), Description VARCHAR(255), EnforcePriceLimit CHAR(1) CHECK (EnforcePriceLimit IN ('Y','N')), I_ErrorMsg VARCHAR(2000), I_IsImported CHAR(1) CHECK (I_IsImported IN ('Y','N')) NOT NULL, I_PriceList_ID NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')), ISO_Code VARCHAR(3), IsSOPriceList CHAR(1) CHECK (IsSOPriceList IN ('Y','N')), IsTaxIncluded CHAR(1) CHECK (IsTaxIncluded IN ('Y','N')), M_Product_ID NUMERIC(10), Name VARCHAR(60), PriceLimit NUMERIC, PriceList NUMERIC, PricePrecision NUMERIC, PriceStd NUMERIC, Processed CHAR(1) CHECK (Processed IN ('Y','N')), Processing CHAR(1), ProductValue VARCHAR(40), Updated TIMESTAMP, UpdatedBy NUMERIC(10), ValidFrom TIMESTAMP, X12DE355 VARCHAR(4), CONSTRAINT I_PriceList_Key PRIMARY KEY (I_PriceList_ID)) CREATE TABLE I_PriceList (AD_Client_ID NUMERIC(10) DEFAULT NULL , AD_Org_ID NUMERIC(10) DEFAULT NULL , BPartner_Value VARCHAR(40), BreakValue NUMERIC, C_BPartner_ID NUMERIC(10), C_Currency_ID NUMERIC(10), Created TIMESTAMP, CreatedBy NUMERIC(10), C_UOM_ID NUMERIC(10), Description VARCHAR(255), EnforcePriceLimit CHAR(1) CHECK (EnforcePriceLimit IN ('Y','N')), I_ErrorMsg VARCHAR(2000), I_IsImported CHAR(1) NOT NULL, I_PriceList_ID NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')), ISO_Code VARCHAR(3), IsSOPriceList CHAR(1) CHECK (IsSOPriceList IN ('Y','N')), IsTaxIncluded CHAR(1) CHECK (IsTaxIncluded IN ('Y','N')), M_Product_ID NUMERIC(10), Name VARCHAR(60), PriceLimit NUMERIC, PriceList NUMERIC, PricePrecision NUMERIC, PriceStd NUMERIC, Processed CHAR(1) CHECK (Processed IN ('Y','N')), Processing CHAR(1), ProductValue VARCHAR(40), Updated TIMESTAMP, UpdatedBy NUMERIC(10), ValidFrom TIMESTAMP, X12DE355 VARCHAR(4), CONSTRAINT I_PriceList_Key PRIMARY KEY (I_PriceList_ID))
; ;
-- Mar 17, 2009 11:33:33 PM COT -- Mar 17, 2009 11:33:33 PM COT