Prepayments in the Bonus- and Commission Calculation
It is possible to define whether prepayments are taken into account for Commission Calculation as well as for Bonus Calculation.
Note
The Bonus and Commission Setup option Inclusive Prepayments is moved to the Yaveon 365 Trade Setup page, if the YAVEON Feature Management feature Update Bonus and Commission Calculation is activated. Additionally, the table Sales Basis Data is split into the Bonus Basis Data and Commission Basis Data tables.
The turnover of Prepayment Invoices is included in the Calculations on the posting date of the invoice and not on the receipt date of the payment. The Sales Quantity for the Bonus Calculation is only included with the final invoice.
Because prepayment invoices are posted via one (or several) G/L Account Lines, but item information is necessary for bonus-/commission calculation, the following logic is implemented:
When posting a prepayment invoice, the item lines, the prepayment is based on, are inserted into the table Sales Basis Data. The prepayment amount is allocated to the item lines according to the information in the sales lines. These lines are marked as Prepayment Lines. Dependent on the flag Inclusive Prepayments the data is used differently.
Example:
Sales Lines:

Posted Prepayment Invoice Line:

Data records in table **Sales Basis Data:

The G/L Account Line of 64,50 € is splitted into two lines. The amounts in the item lines are calculated due to the prepayment-data of the sales-line.
Commission Calculation with **Inclusive Prepayments* = YES:*

The prepayment invoice is included in the commission calculation with the Prepayment Amount at the time of posting!
Commission Calculation with **Inclusive Prepayments* = NO:*

The prepayment invoice is not included in the commission calculation at the time of posting it. The final invoice will be included with the complete amount.
Posted Invoice Line - Final Invoice:

Data records in table **Sales Basis Data:

The G/L Account Line of 64,50 € has been divided between the 2 item lines according to the shares.
According to the flag Inclusive Prepayment the fields Line Amount and/or Prepayment Line Amount are calculated.
Commission Calculation with **Inclusive Prepayment* = YES:*

The prepayment invoice is included in the Commission Calculation at the moment of posting. When posting the final invoice only the difference amount, i.e. Line Amount – Prepayment Line Amount is included in the Commission Calculation.
Commission Calculation with **Inclusive Prepayment* = NO:*

The prepayment invoice is not included in the Commission Calculation! When posting the final invoice the total Line Amount is included in the Commission Calculation.