...
Info | ||
---|---|---|
| ||
You should store (by enhancement) always all values from source documents, that you want to use in calculation. This especially (only) is relevant, when these values could change after commission creation, e.g. like some values in vehicle. Otherwise you will never get a stable calculation result. |
Note | ||||
---|---|---|---|---|
| ||||
test 1234 |
The commission date (in in DBM|E standard) initial will be the creation date of the commission. But this date is especially important, because it is used also for the complete calculation as basis date, e.g. for determination of price conditions, and also to check validity of relevant employee. So, in case the customer defines here different dates as relevant calculation basis, e.g. invoicing date or selling date of the car / car contract date, this date should be updated with BAdI during commission creation.
Concerning the register / table “conditions” nothing happens during the automatic creation. Register and table are initial empty.
Figure 26:
Create commission - register "conditions"
Also during the creation, the partner verification and determination is done. Based on the determined commission type definition (main partner) there is a check that corresponding partner role is assigned within the invoice. If the partner role is not in the invoice, no commission will be created.
Is the partner role assigned, the creation checks the settings of “relevant employee”.
Is the partner number not assigned here, the commission will also be created, but with the status, that is assigned to the business operation “CRNR” (Create inactive commission) in the status schema settings, e.g. in proaxia example case this is “0008” (not relevant for HR transfer). In that case the commission result automatically is zero.Figure 27:
Create commission - info & register "participants" when partner is not assigned
Is the partner number assigned in the relevant employee settings, the commission will be created normally with the status that is marked as “initial”, e.g. in proaxia example case this is “0001” (new). In that case the creation checks in addition, if the main partner is part of a valid pool definition. If he is, also all additional partners from pool will be added with the defined pool partner role from commission type definition.
Figure 28:
Create commission - info & register "participants" when partner is assigned
When all data of the commission is determined, finally the calculation in formula builder is called and the result is returned to the commission calculation table.
The main idea to show relevant values of the calculation and also the calculation result, is to display them in the HTML view of tab / register “price/commission”.Figure 29: