Native NetSuite: the base Inventory Count takes a snapshot and effectively freezes the location while counting, you can't add items mid-count, and doing better natively typically needs the Smart Count or WMS add-ons. This build uses a Suitelet, a client script and two background jobs on a settings record, with no add-on needed. Each count covers a few bins, so the rest of the location keeps working, and a counter can add a line mid-count.

Cycle Count with Approvals: how it's built

One Suitelet, a client script and two background jobs, driven by a settings record your admin edits. No thresholds, role IDs or locations in the code.

Demo concept, sample data
Settings recordrules, roles, switches Nightly map/reducepicks bins due by class Count screenSuitelet + client script Approval queueTier 1 / Tier 2 Inventory adjustmentstandard NetSuite record Results rollupaccuracy, problem items every screen reads the same settings (cached)

Custom records and lists

  • customrecord_ria_cc_settings Cycle Count Settings. Count frequency by class, tolerances, tier limit, named approvers, role mapping, feature switches. One record per subsidiary.
  • customrecord_ria_cc_setting_log Change log. Setting, old value, new value, who, when. Nobody gets edit or delete on it.
  • customrecord_ria_cc_count Count header. Location, counter, due date, status.
  • customrecord_ria_cc_count_line Count line. Bin, item, expected qty snapshot, count, recount, reason, variance, tier, approver, linked adjustment.
  • customlist_ria_cc_reason Reason codes. Supervisors add values without a developer.
  • custitem_ria_cc_abc_class A, B or C on the item. Can point at a field the client already uses.

Scripts (SuiteScript 2.1)

  • Suitelet customscript_ria_cc_sl_main One entry point. Draws Count, Approvals, Results and Settings based on the user's role. Approve and reject run here, with permission checks in code and a log row per action.
  • Client script customscript_ria_cc_cs_count Checks each count against tolerance as it's typed, unlocks the recount box, requires a reason code. The server runs the same check again on submit.
  • Map/reduce customscript_ria_cc_mr_schedule Nightly. Finds bins due by class frequency, creates counts, snapshots expected quantity.
  • Map/reduce customscript_ria_cc_mr_results Nightly. Rolls up accuracy and problem items so Results opens fast.
  • User event on the settings record. Validates on save and writes the change log.

Roles, checked three ways

  • 1. Who can open it. Suitelet deployment audience, set by role.
  • 2. What they see. Code reads the role mapping in the settings record. No role IDs in the code.
  • 3. What they can do. NetSuite permissions, plus checks in the Suitelet before any adjustment posts.
RoleSees and does
Warehouse CounterOwn counts only. No cost columns. Can't approve.
Inventory SupervisorCounts, approves Tier 1, sees value.
ControllerApproves any tier, sees cost and posted adjustments.
AdministratorEdits settings. Can't approve, so the person who sets the limits isn't the one signing off.
  • Nobody approves a line they counted.
  • Every approval, rejection and settings change has a who and a when.
Queries. Every filter goes into SuiteQL as a bound parameter, never pasted into the query text. Settings are cached so a page load costs a handful of governance units, well under the 1,000 a Suitelet gets.

Sandbox to production with SDF

  • All objects and scripts live in one SuiteCloud (SDF) project in the client's Git repo.
  • suitecloud project:validate before every deploy.
  • Deploy to the client's sandbox. Test with their real items, bins and roles.
  • Client signs off on a short test script: count, recount, approve, reject, settings change.
  • Deploy the same project to production. Load the settings record and walk the admin through one real change.
  • Twice a year, during release preview, run a 30 minute check against the new release.

Who owns the code

The client owns it. Under the SOW, the scripts, custom records, SDF project and documentation built for the client are the client's. The repo sits in their account, or a full copy is handed over at close. RIA's access ends when the project closes unless a retainer says otherwise.
Handoff package. One page per role for users, an admin guide for the settings tab, a developer README, and a recorded walkthrough.

Before we start. A sandbox account, bins turned on, and items tagged A, B or C. If there's no sandbox, we talk about that first.

Ruiz Industrial Advisors. Demo concept with sample data for a fictional company. Record and script IDs are illustrative.