| Calculate Depreciation on equipment |
 |
 |
Problem: Need to track and record Depreciation on IT equipment and an expiry date of 4 years. Solution: Implement custom date fields and validation via SuiteScript
Create your fields and change names in the code. Add xCostDep to the Save Record Function The code will Depresiation the value 40% each year and set the expiry date to add 4 years to the purchase date. then save it to the database.
Contributor: Clint McCarty @ Canadian Food for the Hungry Int.
Contributor Overview: I am new to JavaScript (3 months) Having some fun customizing.
If there is a cleaner way of doing this, let me know.
Clint
Website: http://www.cfhi.ca
|
|
|
|
|
|