Search
 
 
Navigation
Directory
Functional Areas
Industries
Computer Hardware
Computer Software
Construction
Education
Financial Services
General Business
Government
Healthcare
Hospitality Services
Insurance
Legal Services
Life Sciences
Enforce Rules Based on Lead Status
Auto Set End Date
Auto-populate Bill to Address Field
Validate payment date and Credit Card Number
Make a Field Mandatory on an External Form
Total Profit on Estimate
Line Item Profit on Estimate
Calculate QTY Sum
Add Markup Price ($) to Item Line Amount
Add Markup Percent (%) to Line Item Amount
Media/Publishing
Nonprofit
Professional Services
Real Estate
Retail
Telecommunications
Wholesaler/Distributors
All Solutions


Calculate Depreciation on equipment
can_food_for_hungry.jpg 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. 

Type of Code Client SuiteScript; Business Logic
Version 1.0
NetSuite Version (Minimum) 10
Script URL http://prdownloads.sourceforge.net/netsuiteroot/NS-CalculateDeprecation.js?download
Date Created 6/9/2006
Last Modified 7/27/2006

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