IDEMPIERE-197 Stabilize Fixed Assets / Some additional fixes based on tests when regenerating X classes

This commit is contained in:
Carlos Ruiz 2012-10-24 21:29:13 -05:00
parent 8b0d559ae5
commit 2d08fb3f3d
3 changed files with 10 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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})

View File

@ -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;
}
}