Refactory the MRefList_Ext and fix the dependences
This commit is contained in:
parent
5da2722702
commit
086db1b8da
|
@ -18,7 +18,7 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
|
||||
import org.compiere.model.MAssetChange;
|
||||
import org.compiere.model.MRefList_Ext;
|
||||
import org.compiere.model.MRefList;
|
||||
import org.compiere.model.X_A_Asset_Disposed;
|
||||
import org.compiere.model.X_A_Depreciation_Exp;
|
||||
import org.compiere.process.ProcessInfoParameter;
|
||||
|
@ -196,7 +196,7 @@ public class AssetDisposed extends SvrProcess
|
|||
MAssetChange change = new MAssetChange (getCtx(), 0, null);
|
||||
change.setA_Asset_ID(AssetDisposed.getA_Asset_ID());
|
||||
change.setChangeType("DIS");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, null);
|
||||
MRefList RefList = new MRefList (getCtx(), 0, null);
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "DIS"));
|
||||
change.setAssetDisposalDate(AssetDisposed.getA_Disposed_Date());
|
||||
change.setAssetAccumDepreciationAmt(v_Balance);
|
||||
|
|
|
@ -18,7 +18,7 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
|
||||
import org.compiere.model.MAssetChange;
|
||||
import org.compiere.model.MRefList_Ext;
|
||||
import org.compiere.model.MRefList;
|
||||
import org.compiere.model.X_A_Asset;
|
||||
import org.compiere.model.X_A_Asset_Acct;
|
||||
import org.compiere.model.X_A_Asset_Addition;
|
||||
|
@ -286,7 +286,7 @@ public class AssetSplit extends SvrProcess
|
|||
change.setA_Depreciation_Variable_Perc(assetacct.getA_Depreciation_Variable_Perc());
|
||||
change.setA_Parent_Asset_ID(Asset.getA_Parent_Asset_ID());
|
||||
change.setChangeType("SPL");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, null);
|
||||
MRefList RefList = new MRefList (getCtx(), 0, null);
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "SPL"));
|
||||
change.setLot(AssetNew.getLot());
|
||||
change.setSerno(AssetNew.getSerNo());
|
||||
|
@ -410,7 +410,7 @@ public class AssetSplit extends SvrProcess
|
|||
change.setA_Depreciation_Variable_Perc(assetacct.getA_Depreciation_Variable_Perc());
|
||||
change.setA_Parent_Asset_ID(Asset.getA_Parent_Asset_ID());
|
||||
change.setChangeType("SPL");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, null);
|
||||
MRefList RefList = new MRefList (getCtx(), 0, null);
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "SPL"));
|
||||
change.setLot(AssetNew.getLot());
|
||||
change.setSerno(AssetNew.getSerNo());
|
||||
|
@ -464,7 +464,7 @@ public class AssetSplit extends SvrProcess
|
|||
|
||||
MAssetChange change1 = new MAssetChange (getCtx(), 0, null);
|
||||
change1.setChangeType("SPL");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, null);
|
||||
MRefList RefList = new MRefList (getCtx(), 0, null);
|
||||
change1.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "SPL"));
|
||||
change1.setAssetValueAmt(v_CostBalance_New.multiply(new BigDecimal(-1)));
|
||||
change1.setPostingType(assetacct.getPostingType());
|
||||
|
|
|
@ -18,7 +18,7 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
|
||||
import org.compiere.model.MAssetChange;
|
||||
import org.compiere.model.MRefList_Ext;
|
||||
import org.compiere.model.MRefList;
|
||||
import org.compiere.model.X_A_Asset_Transfer;
|
||||
import org.compiere.model.X_A_Depreciation_Exp;
|
||||
import org.compiere.process.ProcessInfoParameter;
|
||||
|
@ -233,7 +233,7 @@ public class AssetTransfer extends SvrProcess
|
|||
|
||||
MAssetChange change = new MAssetChange (getCtx(), 0, null);
|
||||
change.setChangeType("TRN");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, null);
|
||||
MRefList RefList = new MRefList (getCtx(), 0, null);
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "TRN"));
|
||||
change.setPostingType(AssetTransfer.getPostingType());
|
||||
change.setA_Split_Percent(AssetTransfer.getA_Split_Percent());
|
||||
|
|
|
@ -19,7 +19,7 @@ import java.sql.ResultSet;
|
|||
|
||||
import org.compiere.model.MAssetAcct;
|
||||
import org.compiere.model.MAssetChange;
|
||||
import org.compiere.model.MRefList_Ext;
|
||||
import org.compiere.model.MRefList;
|
||||
import org.compiere.model.X_A_Asset;
|
||||
import org.compiere.model.X_A_Asset_Addition;
|
||||
import org.compiere.model.X_A_Asset_Group_Acct;
|
||||
|
@ -219,7 +219,7 @@ public class CreateGLAsset extends SvrProcess
|
|||
change.setA_Depreciation_Variable_Perc(assetacct.getA_Depreciation_Variable_Perc());
|
||||
change.setA_Parent_Asset_ID(asset.getA_Parent_Asset_ID());
|
||||
change.setChangeType("CRT");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, get_TrxName());
|
||||
MRefList RefList = new MRefList (getCtx(), 0, get_TrxName());
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "CRT"));
|
||||
change.setIsInPosession(asset.isOwned());
|
||||
change.setIsDisposed(asset.isDisposed());
|
||||
|
@ -315,7 +315,7 @@ public class CreateGLAsset extends SvrProcess
|
|||
MAssetChange change = new MAssetChange (getCtx(), 0, get_TrxName());
|
||||
change.setA_Asset_ID(asset.getA_Asset_ID());
|
||||
change.setChangeType("ADD");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, get_TrxName());
|
||||
MRefList RefList = new MRefList (getCtx(), 0, get_TrxName());
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "ADD"));
|
||||
change.setPostingType(assetwk.getPostingType());
|
||||
change.setAssetValueAmt(assetadd.getAssetValueAmt());
|
||||
|
@ -357,7 +357,7 @@ public class CreateGLAsset extends SvrProcess
|
|||
change.setA_Asset_ID(asset.getA_Asset_ID());
|
||||
change.setA_QTY_Current(assetadd.getA_QTY_Current());
|
||||
change.setChangeType("EXP");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, get_TrxName());
|
||||
MRefList RefList = new MRefList (getCtx(), 0, get_TrxName());
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "EXP"));
|
||||
assetadd.setPostingType("A");
|
||||
change.setAssetValueAmt(assetadd.getAssetValueAmt());
|
||||
|
|
|
@ -233,7 +233,7 @@ public class CreateInvoicedAsset extends SvrProcess
|
|||
change.setA_Depreciation_Variable_Perc(assetacct.getA_Depreciation_Variable_Perc());
|
||||
change.setA_Parent_Asset_ID(asset.getA_Parent_Asset_ID());
|
||||
change.setChangeType("CRT");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, get_TrxName());
|
||||
MRefList RefList = new MRefList (getCtx(), 0, get_TrxName());
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "CRT"));
|
||||
change.setIsInPosession(asset.isOwned());
|
||||
change.setIsDisposed(asset.isDisposed());
|
||||
|
@ -452,7 +452,7 @@ public class CreateInvoicedAsset extends SvrProcess
|
|||
change.setA_Asset_ID(asset.getA_Asset_ID());
|
||||
change.setA_QTY_Current(assetadd.getA_QTY_Current());
|
||||
change.setChangeType("ADD");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, get_TrxName());
|
||||
MRefList RefList = new MRefList (getCtx(), 0, get_TrxName());
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "ADD"));
|
||||
change.setPostingType(assetwk.getPostingType());
|
||||
change.setAssetValueAmt(assetadd.getAssetValueAmt());
|
||||
|
@ -549,7 +549,7 @@ public class CreateInvoicedAsset extends SvrProcess
|
|||
change.setA_Asset_ID(asset.getA_Asset_ID());
|
||||
change.setA_QTY_Current(assetadd.getA_QTY_Current());
|
||||
change.setChangeType("EXP");
|
||||
MRefList_Ext RefList = new MRefList_Ext (getCtx(), 0, get_TrxName());
|
||||
MRefList RefList = new MRefList (getCtx(), 0, get_TrxName());
|
||||
change.setTextDetails(RefList.getListDescription (getCtx(),"A_Update_Type" , "EXP"));
|
||||
assetadd.setPostingType("A");
|
||||
change.setAssetValueAmt(assetadd.getAssetValueAmt());
|
||||
|
|
Loading…
Reference in New Issue