IDEMPIERE-2088 Remove useless code
This commit is contained in:
parent
7e1e7a8036
commit
3200a5b6f2
|
@ -39,7 +39,7 @@ public class MBPGroup extends X_C_BP_Group
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5323639776872742839L;
|
||||
private static final long serialVersionUID = 8897399796117872715L;
|
||||
|
||||
/**
|
||||
* Get MBPGroup from Cache
|
||||
|
@ -244,15 +244,5 @@ public class MBPGroup extends X_C_BP_Group
|
|||
return insert_Accounting("C_BP_Group_Acct", "C_AcctSchema_Default", null);
|
||||
return success;
|
||||
} // afterSave
|
||||
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_BP_Group_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
|
||||
} // MBPGroup
|
||||
|
|
|
@ -47,7 +47,7 @@ public class MBPartner extends X_C_BPartner
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4308267492285903865L;
|
||||
private static final long serialVersionUID = -5503105554864289337L;
|
||||
|
||||
/**
|
||||
* Get Empty Template Business Partner
|
||||
|
@ -945,17 +945,6 @@ public class MBPartner extends X_C_BPartner
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_BP_Customer_Acct")
|
||||
&& delete_Accounting("C_BP_Vendor_Acct")
|
||||
&& delete_Accounting("C_BP_Employee_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
/**
|
||||
* After Delete
|
||||
* @param success
|
||||
|
|
|
@ -34,7 +34,7 @@ public class MBankAccount extends X_C_BankAccount
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -8742307130542608791L;
|
||||
private static final long serialVersionUID = 2392818253347168347L;
|
||||
|
||||
/**
|
||||
* Get BankAccount from Cache
|
||||
|
@ -133,14 +133,5 @@ public class MBankAccount extends X_C_BankAccount
|
|||
return insert_Accounting("C_BankAccount_Acct", "C_AcctSchema_Default", null);
|
||||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_BankAccount_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
} // MBankAccount
|
||||
|
|
|
@ -35,7 +35,7 @@ public class MCashBook extends X_C_CashBook
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 4602423783184037174L;
|
||||
private static final long serialVersionUID = 3991585668643587699L;
|
||||
|
||||
/**
|
||||
* Get MCashBook from Cache
|
||||
|
@ -143,13 +143,4 @@ public class MCashBook extends X_C_CashBook
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_Cashbook_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
} // MCashBook
|
||||
|
|
|
@ -39,7 +39,7 @@ public class MCharge extends X_C_Charge
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 8246481667219415012L;
|
||||
private static final long serialVersionUID = -4628105180010713510L;
|
||||
|
||||
/**
|
||||
* Get Charge Account
|
||||
|
@ -150,13 +150,4 @@ public class MCharge extends X_C_Charge
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_Charge_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
} // MCharge
|
||||
|
|
|
@ -757,7 +757,7 @@ public class MProduct extends X_M_Product
|
|||
}*/
|
||||
|
||||
//
|
||||
return delete_Accounting("M_Product_Acct");
|
||||
return true;
|
||||
} // beforeDelete
|
||||
|
||||
@Override
|
||||
|
|
|
@ -41,8 +41,7 @@ public class MProductCategory extends X_M_Product_Category
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -1290361229726779892L;
|
||||
|
||||
private static final long serialVersionUID = 1239249591584452179L;
|
||||
|
||||
/**
|
||||
* Get from Cache
|
||||
|
@ -178,15 +177,6 @@ public class MProductCategory extends X_M_Product_Category
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("M_Product_Category_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
/**
|
||||
* FiFo Material Movement Policy
|
||||
* @return true if FiFo
|
||||
|
|
|
@ -36,7 +36,7 @@ public class MProject extends X_C_Project
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2151648902207548617L;
|
||||
private static final long serialVersionUID = -6103964836289951325L;
|
||||
|
||||
/**
|
||||
* Create new Project by copying
|
||||
|
@ -442,15 +442,6 @@ public class MProject extends X_C_Project
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_Project_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
/**
|
||||
* After Delete
|
||||
* @param success
|
||||
|
|
|
@ -41,8 +41,8 @@ public class MTax extends X_C_Tax
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 6423328193350641479L;
|
||||
|
||||
private static final long serialVersionUID = 5871827364071851846L;
|
||||
|
||||
/** Cache */
|
||||
private static CCache<Integer,MTax> s_cache = new CCache<Integer,MTax>(Table_Name, 5);
|
||||
/** Cache of Client */
|
||||
|
@ -317,13 +317,4 @@ public class MTax extends X_C_Tax
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_Tax_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
} // MTax
|
||||
|
|
|
@ -41,7 +41,8 @@ public class MWarehouse extends X_M_Warehouse
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 7037547130625087045L;
|
||||
private static final long serialVersionUID = 2696705459515717619L;
|
||||
|
||||
/**
|
||||
* Get from Cache
|
||||
* @param ctx context
|
||||
|
@ -273,13 +274,4 @@ public class MWarehouse extends X_M_Warehouse
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("M_Warehouse_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
} // MWarehouse
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MWithholding extends X_C_Withholding
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 7734620609620104180L;
|
||||
private static final long serialVersionUID = 6368597644089198711L;
|
||||
|
||||
/**
|
||||
* Standard Constructor
|
||||
|
@ -69,13 +69,4 @@ public class MWithholding extends X_C_Withholding
|
|||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* Before Delete
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeDelete ()
|
||||
{
|
||||
return delete_Accounting("C_Withholding_Acct");
|
||||
} // beforeDelete
|
||||
|
||||
} // MWithholding
|
||||
|
|
|
@ -3793,6 +3793,7 @@ public abstract class PO
|
|||
* @param acctTable accounting sub table
|
||||
* @return true
|
||||
*/
|
||||
@Deprecated // see IDEMPIERE-2088
|
||||
protected boolean delete_Accounting(String acctTable)
|
||||
{
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue