Commission File Export

Created by Migration Bot, Modified on Fri, 23 Oct at 2:29 PM by Migration Bot

Originally written by John Hardwick, last updated Oct 24, 2023, on the Swan Retail knowledge base (FRS).


Based on SwanFRS version 1205

Overview

This guide shows how to configure and generate commission valued based on gross margin / profit which is a separate commission process from the one based on booked / written and / or finalized / delivered products.

As an alternative to generating a commission report it is possible to generate a commission export data file.

There are two variants of the output file

  •          Salesperson Commission Export

  •          Branch Sales Export

Both export files generate data files which are saved in the designated tmp\out folder.

Prior to operating these reports, it is important to advise Swan as there is a control file change required before SwanFRS can process the request.  Attempting to export without this change will result in the program producing an error.

Configuration

Application Parameters

Menu Location: System Admin > Set Up Application Parameters

SPIFF_CONTROL

This parameter informs the export routine how to manage ‘spiff’ payments.

Choices are

  • All - Pay the specified spiff value irrespective of what the item was sold for.

  •  Not Discounted - Only pay the specified spiff value if the item was sold for its prevailing promotional selling price or sold for it is preset marked down selling price. i.e., no discounts given.

No spiff value is paid if the item is discounted.

  • Margin Controlled - Only pay the spiff value if the SPIFF_MARGIN is achieved.

  •  None - Do not pay Spiffs

SPIFF_MARGIN

 

This value is only used if the SPIFF_CONTROL is set to margin and holds a value in the range 0 to 100.

The entire sales order must have a margin equaling or exceeding this value (at time of generating the commission output file for the spiff to become payable.

The margin calculation used is defined in the existing MARGIN_CALCULATION application parameter.

The salesperson commission system also uses the COMMISSION_SPLIT application control parameter, where set and the sale have both a primary and a secondary salesperson set, the value set in this parameter is recorded against the secondary salesperson with the primarily being allocated 100 – COMMISSION_SPLIT value.

This process does not use the Salesperson_Split application parameter controls.

Role Privileges

Menu Location: System Admin > Set Up Roles

EXPORT_SALESPERSON_COMMISSION

This privilege enables the operator to run the ‘Export Salesperson Commission’ routine from the Accounts menu.

EXPORT_BRANCH_STATISTICS

This privilege enables the operator to run the ‘Export Branch Statistics’ routine from the Accounts menu.

Commission Groups

Menu Location: System Admin > Set Up Commission Groups

Commission groups are used to link SKUs to incentive schemes. I.e., paying different values dependent upon the type of product sold.

If the sale of an item would result in the salesperson getting a commission payment, the SKU should be linked to a commission group.

It is possible to set a commission group for ‘marked down’ stock. Any product sold with a predetermined discounted selling price can have commission paid at a different rate to the same product being stock without a marked down selling price.

To use this feature, ensure the ‘markdown’ check box is set for the specific commission group.

Incentive Scheme

Menu Location: System Admin > Set Up Incentive Scheme

Having created the commission groups the rates payable require setting within the incentive scheme.

Clicking the Commission Scheme shows the rates payable to the scheme.

Per incentive scheme it is possible to set a percentage of sale or fixed commission value per commission group.

Users

Menu Location: System Admin > Set Up Users

Having set up the incentive scheme the salesperson needs linking to the incentive scheme.

Product Groups

Menu Location: System Admin > Set Up Product Groups

Once the commission group has been, it can be associated with one or more product groups.

Products

Menu Location: Products > Set Up Product Pricing

The product group commission group is superseded by the commission group set on the product (SKU), where set.

There are three commission control fields

Commission Group

This is the default commission group used to calculate incentive payments to the primary (and secondary) salesperson

Where set this commission group supersedes the Product Group commission group. Leaving blank indicates the commission group set at product group level is to be used.

Spiff Margin Controlled

Where ticked this instructs the commission export program to check the system application parameters for any ‘spiff payment.’

Unticking indicates the spiff payment is to be made (where set) irrespective of the application controls

Spiff Payment Value

This is a positive number indicating a value payable to the salesperson (in addition to the commission payment).

These fields are also supported within the Product Creator spreadsheet and imported via the Catalogue Import program.

Spiff values are recorded against the sales order line at the time of adding the SKU to the sale, modifications to spiff payments made after the item has been added to the sale do NOT change items already in the order pipeline. If the spiff payment should change the order line must be cancelled and added back to the sale for the new spiff value to be applied.

Markdown Reasons

Menu Location: System Admin > Set Up Markdown Reasons

Optionally it is possible to set an override commission group for items sold at a special pre-determined selling price (referred to within SwanFRS as a mark down).

Where set, any stock item marked down prior to sale will accrue commission using the markdown commission group which supersedes the product (or product group) commission group set.

Using the markdown link to commission groups it is possible to change the commission payment value of a particular stock item however it is not possible to set specific commission payments for specific stock items.

Operation

The collation of commission payments is automatic and will accrue as the sales are created and processed.

To generate a data file for onwards processing the following two routines are available.

Salesperson Commission

Menu Location: Accounts: Export Salesperson Commission

This routine requires the operator to possess the EXPORT_SALESPERSON_COMMISSION role privilege.

This program generates a data file containing sales data and is designed to provide the information required to feed an external commission system.

Commission payments are not triggered until the sale has reached its fully processed state, i.e., there is no outstanding balance and all the active lines on the sale are marked as delivered to customer. The system marks the ‘first completion’ date when there are no payments pending and no pending deliveries. No matter what happens to the sales order once this first completion data has been set, the first completion date does not change.

In partnership to setting the first completion date, the extract program generates an audit log of the commissions generated, no matter what happens to the order after this date, commission rates change etc. any future re-running of commissions for the analytical period will remain unchanged. I.e., the system freezes the commission paid and uses that when regenerating a commission statement.

If there are movements (deliveries / collections) linked to the sales order after the first completed date, the commission extract will include them in the export again recording the data to present any future commission exports remain consistent in the future.

This is of particular significance in that the commission generating process uses gross margin which will change overtime due to the shifting nature of cost prices. Recording the commission generated at the first issuing of the payment ensures gross margin variation does not influence retrospective commission generation runs.

The generation process allows the operator to choose one or more branches and a date range from which to include sales data.

It is recommended that reports are run consecutively the end data of last month’s commission forming the start date (plus 1 day) of the next commission extract.

Changing the report date range will affect the content of the exported data file.

The output file consists of sales orders which have been completed within the analytical period or have had transactions process where the sale has been the subject of an earlier dated commission export. I.e., the sale must have been fully paid and fully delivered at some point prior to the reports end date to be included in the export.

Commission values presented are calculated from the commission scheme values set within the salesperson’s incentive scheme.

Once generated commission values are locked and will not change should the extract process be re-run for the same processing date range, no matter what happens to settings within the database.

The export routine checks the markdown reason and will use an associated markdown commission group, where set.  If the item delivered (or collected) has a SKU specific commission group that group will be used in preference to the any commission scheme set against the product group.

When using the ‘spiff margin control’ spiff payments (separate payments outside of the commission groups / incentive scheme controls), will be checked to ensure they meet the criterial set down for spiff payments. (As set within the application parameters control).

The output file generated may contain more than one selling location dependent upon the run time selections.

The file generated will be in the specified output folder within the tmp\out subfolder.

For hosted customers this is part of the file share system.

The filename SalespersonCommission_YYYYMMDDHHmmSS.csv will be used (where YYYY is the year, MM the month, DD – day of the month, HH hour, mm Minute and SS seconds.

This naming convention ensures files are not overwritten by the software.

It is the operator’s responsibility to manage and maintain files in these folders. There is no automatic purge option.

File Contents

Column

Comments

Branch Name

The trading name of the store ‘owning’ the sale.

Salesperson Name

The name of the salesperson the commission is payable to.

Sales Order Number

The SwanFRS order number.

Order Line

The sales order line number.

Date of Sale

The date of the sale (includes time however this will be 00:00:00).

Date of Delivery (Finalization)

Date of delivery (including time stamp).

Supplier Name

The name of the supplier of the item / service processed.

Item Range

The collection or range name given to the item or service processed.

Item Code (SKU)

The SKU code of the delivered item.

Item Model

The reference used by the supplier for this item.

Item Description (1+2+3)

The concatenated description (description 1,2 and 3) of the SKU item.

The description does not include any options.

Promotional Selling Price

The promotional selling price. (Tax inclusive)

Item Selling Price

The actual achieved selling price. (Tax Inclusive)

Quantity

The quantity delivered (returned).

Cost

The current cost of the item.

Tax

The tax charged.

GP on Order

The gross profit of the entire order.

GP on Item

The gross profit on the line itself.

Commission Group Description

The commission group description.

As set in Set Up Commissions.

Incentive Description

The salesperson’s incentive schemed

As set in Set Up Users.

Commission Payable Line Level

The commission payable on the line.

This is calculated on the GP of the line and not the selling price.

A negative commission value is set to zero.

Spiff Payable Line Level

The spiff payable on the line.

The data file includes a header row.

Branch Statistics

Menu Location: Accounts: Export Branch Statistics

This routine requires the operator to possess the EXPORT_BRANCH_STATISTICS role privilege.

This routine provides an output file for the generation of Store, Performance and Manager bonus values.  (Raw data onwards processing will be required).

To ensure accurate information SwanFRS uses the transaction date of the order creation, amendment, cancellation and not the original order date. This way any amendment processed against the sale will be included in the statistic.

This output includes all orders lines created, amended, and cancelled during the specified reporting period and includes order lines which are currently awaiting delivery. This is a ‘bookings’ or ‘pipeline’ output as opposed to the salesperson output which is includes only deliveries and collections.

The output will contain the order details allowing the store and manager bonus values to be calculated outside of SwanFRS.

The file generated will be in the specified output folder within the tmp\out subfolder.

For hosted customers this is part of the file share system.

The filename BranchStatistics_YYYYMMDDHHmmSS.csv will be used (where YYYY is the year, MM the month, DD – day of the month, HH hour, mm Minute and SS seconds.

This naming convention ensures files are not overwritten by the software.

It is the operator’s responsibility to manage and maintain files in these folders. There is no automatic purge option.

File Contents

Column

Comments

Branch Name

The trading name of the store ‘owning’ the sale.

Salesperson Name 1

The name of salesperson 1 on the order.

Salesperson Name 2

The name of salesperson 2 on the order.

Split Ratio 1

This is set to either 100 for a single salesperson sale or the COMMISSION_SPLIT application parameter if there is a second salesperson assigned to the order.

Split Ratio 2

This field is set to zero unless there is a second salesperson assigned to the sales in which case it will be 100 - COMMISSION_SPLIT application parameter.

Sales Order Number

The SwanFRS sales order number.

Order Line

The order line number.

Date of Sale

The original date of sale.

Date of Amendment – Transaction Date

The date of amendment.

Supplier Name

The name of the supplier of the item / service processed.

Item Range

The collection or range name given to the item or service processed.

Item Code

The product code (SKU) of the item being processed.

Item Description

The concatenation of the description1,2 and 3.

No options are included.

Promotional Selling Price

The promotional selling price.

Item Selling Price

The items final selling price.

Quantity

The number of units of this item processed.

Cost

The line cost.

Tax

The value of taxes charged.

GP on Order

This is the gross profit on the sales order

GP on Item

This is the gross profit on the order line item

Values and quantities may be positive (new order / added line) or negative (lost sale / cancellation)

Cost Adjustments

It is possible to set a Cost Uplift Percentage either in Set Up Product Pricing or via the Product Creator Spreadsheet which will inflate the items standard cost by a percentage thus reducing the gross profit reported by this system.

This feature allows miscellaneous costs to be accounted for in the commission calculation when not using ancillary costs.

Files from the Confluence page

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article