IDEMPIERE-197 Stabilize Fixed Assets / Some additional fixes based on tests when regenerating X classes
This commit is contained in:
parent
8b0d559ae5
commit
2d08fb3f3d
|
@ -601,7 +601,7 @@ public class MAsset extends X_A_Asset
|
|||
public int getProductR_MailText_ID() {
|
||||
// IDEMPIERE-197 Stabilize Fixed Assets
|
||||
// AssetDelivery is requiring this missing column
|
||||
// Adding this method to compile correctly and future research,
|
||||
// TODO: Adding this method to compile correctly and future research,
|
||||
// but the process AssetDelivery will fail with error "** Product Mail Text"
|
||||
return 0;
|
||||
}
|
||||
|
@ -609,7 +609,7 @@ public class MAsset extends X_A_Asset
|
|||
public boolean isDownloadable() {
|
||||
// IDEMPIERE-197 Stabilize Fixed Assets
|
||||
// AssetServlet is requiring this missing column
|
||||
// Adding this method to compile correctly and future research
|
||||
// TODO: Adding this method to compile correctly and future research
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ public class MAssetType extends X_A_Asset_Type
|
|||
public static boolean isFixedAsset(int A_Asset_ID)
|
||||
{
|
||||
final String whereClause = MAsset.COLUMNNAME_A_Asset_ID+"=?"
|
||||
+" AND "+MAsset.COLUMNNAME_A_Asset_Type+"=?";
|
||||
+" AND "+MAsset.COLUMNNAME_A_AssetType+"=?";
|
||||
|
||||
return new Query(Env.getCtx(), MAsset.Table_Name, whereClause, null)
|
||||
.setParameters(new Object[]{A_Asset_ID, A_ASSET_TYPE_MFX})
|
||||
|
|
|
@ -459,4 +459,11 @@ public class MDepreciation extends X_A_Depreciation
|
|||
}
|
||||
return assetExp;
|
||||
}
|
||||
|
||||
public int getFixMonthOffset() {
|
||||
// IDEMPIERE-197 Stabilize Fixed Assets
|
||||
// MDepreciationWorkfile is requiring this missing column
|
||||
// TODO: Adding this method to compile correctly and future research
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue