I tried building the Depreciation Workfile for just a single product. The process threw errors. I made a few changes and got it to run (Not really sure if my changes are correct - I will upload the java program).
After the process ran, No A_Depreciation_Entry record was created. I could not find any reference to this table in the code.
How would I post the depreciation entries?
Thanks
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Martin,
Sorry about the slow response. Couple of questions,
1.) Did you run the Depreciation Expense Report? Was there anything on the report? If no, then there are no entries to post and the build process failed. Please forward me the errors created during the build process.
2.) If yes, did you run the Journal Posting Process for the period of the depreciation build? Did the process respond as with # of journal lines created or # in error?
Let me know and Thanks!
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Really sorry for the delay - I had to work on other projects.
The exception I get when I try to build the Depreciation workfile is shown below.
Thanks
Martin
===========> X_A_Depreciation_Forecast.load: NO Data found for A_Depreciation_Forecast_ID=1000003 [20]
java.lang.Exception
at org.compiere.model.PO.load(PO.java:1062)
at org.compiere.model.PO.load(PO.java:1008)
at org.compiere.model.PO.<init>(PO.java:112)
at org.compiere.model.PO.<init>(PO.java:63)
at org.compiere.model.X_A_Depreciation_Forecast.<init>(X_A_Depreciation_Forecast.java:15)
at org.compiere.FA.BuildDepWorkFile.doIt(BuildDepWorkFile.java:84)
at org.compiere.process.SvrProcess.process(SvrProcess.java:104)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:81)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:444)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:228)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Martin,
Sounds like the asset is not setup properly. Is the asset in Service with an In Service Date?(Asset - General Tab) Does the asset have all the necessary account number setup for it?(Asset - Setup)
Thanks
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The line in BuildDepWorkFile.java looks wrong to me :
X_A_Depreciation_Forecast DepBuild = new X_A_Depreciation_Forecast (getCtx(), p_Depreciation_Build_ID, null);
Program seems to work after I change it to :
X_A_Depreciation_Build DepBuild = new X_A_Depreciation_Build (getCtx(), p_Depreciation_Build_ID, null);
Thanks
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried building the Depreciation Workfile for just a single product. The process threw errors. I made a few changes and got it to run (Not really sure if my changes are correct - I will upload the java program).
After the process ran, No A_Depreciation_Entry record was created. I could not find any reference to this table in the code.
How would I post the depreciation entries?
Thanks
Martin
Hi Martin,
Sorry about the slow response. Couple of questions,
1.) Did you run the Depreciation Expense Report? Was there anything on the report? If no, then there are no entries to post and the build process failed. Please forward me the errors created during the build process.
2.) If yes, did you run the Journal Posting Process for the period of the depreciation build? Did the process respond as with # of journal lines created or # in error?
Let me know and Thanks!
Rob
Hi
Really sorry for the delay - I had to work on other projects.
The exception I get when I try to build the Depreciation workfile is shown below.
Thanks
Martin
===========> X_A_Depreciation_Forecast.load: NO Data found for A_Depreciation_Forecast_ID=1000003 [20]
java.lang.Exception
at org.compiere.model.PO.load(PO.java:1062)
at org.compiere.model.PO.load(PO.java:1008)
at org.compiere.model.PO.<init>(PO.java:112)
at org.compiere.model.PO.<init>(PO.java:63)
at org.compiere.model.X_A_Depreciation_Forecast.<init>(X_A_Depreciation_Forecast.java:15)
at org.compiere.FA.BuildDepWorkFile.doIt(BuildDepWorkFile.java:84)
at org.compiere.process.SvrProcess.process(SvrProcess.java:104)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:81)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:444)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:228)
Hi Martin,
Sounds like the asset is not setup properly. Is the asset in Service with an In Service Date?(Asset - General Tab) Does the asset have all the necessary account number setup for it?(Asset - Setup)
Thanks
Rob
Hi Rob
The setup of the asset looks correct.
The line in BuildDepWorkFile.java looks wrong to me :
X_A_Depreciation_Forecast DepBuild = new X_A_Depreciation_Forecast (getCtx(), p_Depreciation_Build_ID, null);
Program seems to work after I change it to :
X_A_Depreciation_Build DepBuild = new X_A_Depreciation_Build (getCtx(), p_Depreciation_Build_ID, null);
Thanks
Martin