[ FR 2906605 ] - Add weight to base type for tax

https://sourceforge.net/tracker/?func=detail&aid=2906605&group_id=176962&atid=879335
This commit is contained in:
mjudd 2009-12-01 08:57:28 +00:00
parent 7db2a7c315
commit 90d164856f
7 changed files with 29 additions and 8 deletions

View File

@ -67,12 +67,12 @@ public interface I_C_TaxDefinition
public static final String COLUMNNAME_AD_OrgType_ID = "AD_OrgType_ID";
/** Set Organization Type.
* Organization Type
* Organization Type allows you to categorize your organizations
*/
public void setAD_OrgType_ID (int AD_OrgType_ID);
/** Get Organization Type.
* Organization Type
* Organization Type allows you to categorize your organizations
*/
public int getAD_OrgType_ID();

View File

@ -31,7 +31,7 @@ public class X_C_TaxBase extends PO implements I_C_TaxBase, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20090915L;
private static final long serialVersionUID = 20091201L;
/** Standard Constructor */
public X_C_TaxBase (Properties ctx, int C_TaxBase_ID, String trxName)
@ -81,6 +81,8 @@ public class X_C_TaxBase extends PO implements I_C_TaxBase, I_Persistent
public static final String BASE_Price = "P";
/** Quantity = Q */
public static final String BASE_Quantity = "Q";
/** Weight = W */
public static final String BASE_Weight = "W";
/** Set Base.
@param Base
Calculation Base

View File

@ -32,7 +32,7 @@ public class X_C_TaxDefinition extends PO implements I_C_TaxDefinition, I_Persis
/**
*
*/
private static final long serialVersionUID = 20090915L;
private static final long serialVersionUID = 20091201L;
/** Standard Constructor */
public X_C_TaxDefinition (Properties ctx, int C_TaxDefinition_ID, String trxName)
@ -81,7 +81,7 @@ public class X_C_TaxDefinition extends PO implements I_C_TaxDefinition, I_Persis
/** Set Organization Type.
@param AD_OrgType_ID
Organization Type
Organization Type allows you to categorize your organizations
*/
public void setAD_OrgType_ID (int AD_OrgType_ID)
{
@ -92,7 +92,7 @@ public class X_C_TaxDefinition extends PO implements I_C_TaxDefinition, I_Persis
}
/** Get Organization Type.
@return Organization Type
@return Organization Type allows you to categorize your organizations
*/
public int getAD_OrgType_ID ()
{

View File

@ -31,7 +31,7 @@ public class X_C_TaxGroup extends PO implements I_C_TaxGroup, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20090915L;
private static final long serialVersionUID = 20091201L;
/** Standard Constructor */
public X_C_TaxGroup (Properties ctx, int C_TaxGroup_ID, String trxName)

View File

@ -31,7 +31,7 @@ public class X_C_TaxType extends PO implements I_C_TaxType, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20090915L;
private static final long serialVersionUID = 20091201L;
/** Standard Constructor */
public X_C_TaxType (Properties ctx, int C_TaxType_ID, String trxName)

View File

@ -0,0 +1,9 @@
-- 01-Dec-2009 08:20:21 GMT
-- FR 2906605 - Add weight to tax base types
INSERT INTO AD_Ref_List (Value,AD_Ref_List_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Reference_ID,Name,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('W',53559,TO_DATE('2009-12-01 08:20:20','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2009-12-01 08:20:20','YYYY-MM-DD HH24:MI:SS'),100,53240,'Weight',0,'Y',0,'EE04')
;
-- 01-Dec-2009 08:20:21 GMT
-- FR 2906605 - Add weight to tax base types
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53559 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;

View File

@ -0,0 +1,10 @@
-- 01-Dec-2009 08:20:21 GMT
-- FR 2906605 - Add weight to tax base types
INSERT INTO AD_Ref_List (Value,AD_Ref_List_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Reference_ID,Name,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('W',53559,TO_TIMESTAMP('2009-12-01 08:20:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2009-12-01 08:20:20','YYYY-MM-DD HH24:MI:SS'),100,53240,'Weight',0,'Y',0,'EE04')
;
-- 01-Dec-2009 08:20:21 GMT
-- FR 2906605 - Add weight to tax base types
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53559 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;