- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 05:29 AM
Hi Expert,
Can we calculate asset depreciation on monthly basis, if yes then how?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 05:34 AM
Hi @Prakash_S ,
Yes you can calculate depreciation on monthly basis, follow below step.
- Create one scheduled job and set run as monthly.
- Set the run time and date.
- Use below script.
var alm = new GlideRecord('alm_hardware');
alm.query();
while (alm.next()) {
(new DepreciationUtils()).calcDepreciation(alm)
}
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 05:34 AM
Hi @Prakash_S ,
Yes you can calculate depreciation on monthly basis, follow below step.
- Create one scheduled job and set run as monthly.
- Set the run time and date.
- Use below script.
var alm = new GlideRecord('alm_hardware');
alm.query();
while (alm.next()) {
(new DepreciationUtils()).calcDepreciation(alm)
}
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 06:55 AM
Thanks @Runjay Patel for quick help, will try this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 10:05 AM
We have done this in our instance. The depreciation amount is calculating according to our formula. Our formula is Cost/number of months (useful life 5yrs-60mos). example cost = 10,682.00, useful life is 5 yrs(60mos) the monthly depreciation would be $10,682.00/60 =$178.03 per month. The system does not seem to be calculating in this manner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 10:10 AM
We have done this in our instance. The depreciation amount is NOT calculating according to our formula. Our formula is Cost/number of months (useful life 5yrs-60mos). example cost = 10,682.00, useful life is 5 yrs(60mos) the monthly depreciation would be $10,682.00/60 =$178.03 per month. The system does not seem to be calculating in this manner.