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.
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.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.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.customscript_ria_cc_mr_schedule Nightly. Finds bins due by class frequency, creates counts, snapshots expected quantity.customscript_ria_cc_mr_results Nightly. Rolls up accuracy and problem items so Results opens fast.| Role | Sees and does |
|---|---|
| Warehouse Counter | Own counts only. No cost columns. Can't approve. |
| Inventory Supervisor | Counts, approves Tier 1, sees value. |
| Controller | Approves any tier, sees cost and posted adjustments. |
| Administrator | Edits settings. Can't approve, so the person who sets the limits isn't the one signing off. |
suitecloud project:validate before every deploy.Ruiz Industrial Advisors. Demo concept with sample data for a fictional company. Record and script IDs are illustrative.