FR [2864078] - Type of BPartner in Import action

https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
This commit is contained in:
trifonnt 2009-09-23 08:34:56 +00:00
parent 26cd792c58
commit 5727bbef2e
5 changed files with 339 additions and 0 deletions

View File

@ -426,6 +426,45 @@ public interface I_I_BPartner
*/ */
public boolean isActive(); public boolean isActive();
/** Column name IsCustomer */
public static final String COLUMNNAME_IsCustomer = "IsCustomer";
/** Set Customer.
* Indicates if this Business Partner is a Customer
*/
public void setIsCustomer (boolean IsCustomer);
/** Get Customer.
* Indicates if this Business Partner is a Customer
*/
public boolean isCustomer();
/** Column name IsEmployee */
public static final String COLUMNNAME_IsEmployee = "IsEmployee";
/** Set Employee.
* Indicates if this Business Partner is an employee
*/
public void setIsEmployee (boolean IsEmployee);
/** Get Employee.
* Indicates if this Business Partner is an employee
*/
public boolean isEmployee();
/** Column name IsVendor */
public static final String COLUMNNAME_IsVendor = "IsVendor";
/** Set Vendor.
* Indicates if this Business Partner is a Vendor
*/
public void setIsVendor (boolean IsVendor);
/** Get Vendor.
* Indicates if this Business Partner is a Vendor
*/
public boolean isVendor();
/** Column name NAICS */ /** Column name NAICS */
public static final String COLUMNNAME_NAICS = "NAICS"; public static final String COLUMNNAME_NAICS = "NAICS";

View File

@ -584,6 +584,78 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent
{ {
return (String)get_Value(COLUMNNAME_InterestAreaName); return (String)get_Value(COLUMNNAME_InterestAreaName);
} }
/** Set Customer.
@param IsCustomer
Indicates if this Business Partner is a Customer
*/
public void setIsCustomer (boolean IsCustomer)
{
set_Value (COLUMNNAME_IsCustomer, Boolean.valueOf(IsCustomer));
}
/** Get Customer.
@return Indicates if this Business Partner is a Customer
*/
public boolean isCustomer ()
{
Object oo = get_Value(COLUMNNAME_IsCustomer);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Employee.
@param IsEmployee
Indicates if this Business Partner is an employee
*/
public void setIsEmployee (boolean IsEmployee)
{
set_Value (COLUMNNAME_IsEmployee, Boolean.valueOf(IsEmployee));
}
/** Get Employee.
@return Indicates if this Business Partner is an employee
*/
public boolean isEmployee ()
{
Object oo = get_Value(COLUMNNAME_IsEmployee);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Vendor.
@param IsVendor
Indicates if this Business Partner is a Vendor
*/
public void setIsVendor (boolean IsVendor)
{
set_Value (COLUMNNAME_IsVendor, Boolean.valueOf(IsVendor));
}
/** Get Vendor.
@return Indicates if this Business Partner is a Vendor
*/
public boolean isVendor ()
{
Object oo = get_Value(COLUMNNAME_IsVendor);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set NAICS/SIC. /** Set NAICS/SIC.
@param NAICS @param NAICS

View File

@ -324,6 +324,9 @@ implements ImportProcess
{ {
bp = new MBPartner(impBP); bp = new MBPartner(impBP);
ModelValidationEngine.get().fireImportValidate(this, impBP, bp, ImportValidator.TIMING_AFTER_IMPORT); ModelValidationEngine.get().fireImportValidate(this, impBP, bp, ImportValidator.TIMING_AFTER_IMPORT);
setTypeOfBPartner(impBP,bp);
if (bp.save()) if (bp.save())
{ {
impBP.setC_BPartner_ID(bp.getC_BPartner_ID()); impBP.setC_BPartner_ID(bp.getC_BPartner_ID());
@ -361,6 +364,9 @@ implements ImportProcess
if (impBP.getC_BP_Group_ID() != 0) if (impBP.getC_BP_Group_ID() != 0)
bp.setC_BP_Group_ID(impBP.getC_BP_Group_ID()); bp.setC_BP_Group_ID(impBP.getC_BP_Group_ID());
ModelValidationEngine.get().fireImportValidate(this, impBP, bp, ImportValidator.TIMING_AFTER_IMPORT); ModelValidationEngine.get().fireImportValidate(this, impBP, bp, ImportValidator.TIMING_AFTER_IMPORT);
setTypeOfBPartner(impBP,bp);
// //
if (bp.save()) if (bp.save())
{ {
@ -606,4 +612,26 @@ implements ImportProcess
{ {
return X_I_BPartner.Table_Name; return X_I_BPartner.Table_Name;
} }
/**
* Set type of Business Partner
*
* @param X_I_BPartner impBP
* @param MBPartner bp
*/
private void setTypeOfBPartner(X_I_BPartner impBP, MBPartner bp){
if (impBP.isVendor()){
bp.setIsVendor(true);
bp.setIsCustomer(false); // It is put to false since by default in C_BPartner is true
}
if (impBP.isEmployee()){
bp.setIsEmployee(true);
bp.setIsCustomer(false); // It is put to false since by default in C_BPartner is true
}
// it has to be the last if, to subscribe the bp.setIsCustomer (false) of the other two
if (impBP.isCustomer()){
bp.setIsCustomer(true);
}
} // setTypeOfBPartner
} // ImportBPartner } // ImportBPartner

View File

@ -0,0 +1,100 @@
-- Sep 23, 2009 10:00:58 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58549,364,0,20,533,'IsCustomer',TO_DATE('2009-09-23 10:00:56','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Customer','D',1,'The Customer checkbox indicates if this Business Partner is a customer. If it is select additional fields will display which further define this customer.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Customer',0,TO_DATE('2009-09-23 10:00:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Sep 23, 2009 10:00:58 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=58549 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Sep 23, 2009 10:02:03 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58550,373,0,20,533,'IsEmployee',TO_DATE('2009-09-23 10:01:57','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is an employee','D',1,'The Employee checkbox indicates if this Business Partner is an Employee. If it is selected, additional fields will display which further identify this employee.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Employee',0,TO_DATE('2009-09-23 10:01:57','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Sep 23, 2009 10:02:03 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=58550 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Sep 23, 2009 10:06:41 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58551,426,0,20,533,'IsVendor',TO_DATE('2009-09-23 10:06:41','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Vendor','D',1,'The Vendor checkbox indicates if this Business Partner is a Vendor. If it is selected, additional fields will display which further identify this vendor.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Vendor',0,TO_DATE('2009-09-23 10:06:41','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Sep 23, 2009 10:06:41 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=58551 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Sep 23, 2009 10:07:01 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
ALTER TABLE I_BPartner ADD IsCustomer CHAR(1) DEFAULT NULL CHECK (IsCustomer IN ('Y','N'))
;
-- Sep 23, 2009 10:08:50 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
ALTER TABLE I_BPartner ADD IsEmployee CHAR(1) DEFAULT NULL CHECK (IsEmployee IN ('Y','N'))
;
-- Sep 23, 2009 10:08:59 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
ALTER TABLE I_BPartner ADD IsVendor CHAR(1) DEFAULT NULL CHECK (IsVendor IN ('Y','N'))
;
-- Sep 23, 2009 10:09:54 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58549,58038,0,441,TO_DATE('2009-09-23 10:09:54','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Customer',1,'D','The Customer checkbox indicates if this Business Partner is a customer. If it is select additional fields will display which further define this customer.','Y','Y','Y','N','N','N','N','N','Customer',TO_DATE('2009-09-23 10:09:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Sep 23, 2009 10:09:54 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58038 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58550,58039,0,441,TO_DATE('2009-09-23 10:09:55','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is an employee',1,'D','The Employee checkbox indicates if this Business Partner is an Employee. If it is selected, additional fields will display which further identify this employee.','Y','Y','Y','N','N','N','N','N','Employee',TO_DATE('2009-09-23 10:09:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58039 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58551,58040,0,441,TO_DATE('2009-09-23 10:09:56','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Vendor',1,'D','The Vendor checkbox indicates if this Business Partner is a Vendor. If it is selected, additional fields will display which further identify this vendor.','Y','Y','Y','N','N','N','N','N','Vendor',TO_DATE('2009-09-23 10:09:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58040 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=58038
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=58039
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=58040
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=5941
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=5924
;

View File

@ -0,0 +1,100 @@
-- Sep 23, 2009 10:00:58 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58549,364,0,20,533,'IsCustomer',TO_TIMESTAMP('2009-09-23 10:00:56','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Customer','D',1,'The Customer checkbox indicates if this Business Partner is a customer. If it is select additional fields will display which further define this customer.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Customer',0,TO_TIMESTAMP('2009-09-23 10:00:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Sep 23, 2009 10:00:58 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=58549 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Sep 23, 2009 10:02:03 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58550,373,0,20,533,'IsEmployee',TO_TIMESTAMP('2009-09-23 10:01:57','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is an employee','D',1,'The Employee checkbox indicates if this Business Partner is an Employee. If it is selected, additional fields will display which further identify this employee.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Employee',0,TO_TIMESTAMP('2009-09-23 10:01:57','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Sep 23, 2009 10:02:03 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=58550 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Sep 23, 2009 10:06:41 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58551,426,0,20,533,'IsVendor',TO_TIMESTAMP('2009-09-23 10:06:41','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Vendor','D',1,'The Vendor checkbox indicates if this Business Partner is a Vendor. If it is selected, additional fields will display which further identify this vendor.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Vendor',0,TO_TIMESTAMP('2009-09-23 10:06:41','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Sep 23, 2009 10:06:41 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=58551 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Sep 23, 2009 10:07:01 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
ALTER TABLE I_BPartner ADD COLUMN IsCustomer CHAR(1) DEFAULT NULL CHECK (IsCustomer IN ('Y','N'))
;
-- Sep 23, 2009 10:08:50 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
ALTER TABLE I_BPartner ADD COLUMN IsEmployee CHAR(1) DEFAULT NULL CHECK (IsEmployee IN ('Y','N'))
;
-- Sep 23, 2009 10:08:59 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
ALTER TABLE I_BPartner ADD COLUMN IsVendor CHAR(1) DEFAULT NULL CHECK (IsVendor IN ('Y','N'))
;
-- Sep 23, 2009 10:09:54 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58549,58038,0,441,TO_TIMESTAMP('2009-09-23 10:09:54','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Customer',1,'D','The Customer checkbox indicates if this Business Partner is a customer. If it is select additional fields will display which further define this customer.','Y','Y','Y','N','N','N','N','N','Customer',TO_TIMESTAMP('2009-09-23 10:09:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Sep 23, 2009 10:09:54 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58038 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58550,58039,0,441,TO_TIMESTAMP('2009-09-23 10:09:55','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is an employee',1,'D','The Employee checkbox indicates if this Business Partner is an Employee. If it is selected, additional fields will display which further identify this employee.','Y','Y','Y','N','N','N','N','N','Employee',TO_TIMESTAMP('2009-09-23 10:09:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58039 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58551,58040,0,441,TO_TIMESTAMP('2009-09-23 10:09:56','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this Business Partner is a Vendor',1,'D','The Vendor checkbox indicates if this Business Partner is a Vendor. If it is selected, additional fields will display which further identify this vendor.','Y','Y','Y','N','N','N','N','N','Vendor',TO_TIMESTAMP('2009-09-23 10:09:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Sep 23, 2009 10:09:56 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58040 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=58038
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=58039
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=58040
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=5941
;
-- Sep 23, 2009 10:10:24 AM CEST
-- FR[2864078] TypeOfImportBPartner - https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2864078&group_id=176962
UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=5924
;