Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Financial/SalesCommission → SalesCommissionOpCalculateRevert

AI-generated

Summary

Zen ERP Financial/SalesCommission SalesCommissionOpCalculateRevert operation

Inputs

  • financial_salesCommission_salesCommissionOpCalculateRevert_bodyJson (required) — Collection parameter containing the JSON body for the operation. The JSON must include the following fields: companyId (integer), personId (integer), dateStart (date), dateEnd (date), and publish (boolean).

Output shape

main

Returns an array of items, each containing a json field with the handler result. If the handler returns undefined or null, no item is produced for that input. When continueOnFail is enabled, error details are returned as json with an error key.

Examples

Example 1: Calculate and revert a sales commission for a specific company and person within a date range, optionally publishing the result.

Resource: Financial/SalesCommission; Operation: SalesCommissionOpCalculateRevert; Body JSON example: { companyId: 123, personId: 456, dateStart: '2024-01-01', dateEnd: '2024-12-31', publish: true }

Links

Discussion