metasfresh / metasfresh

We do Open Source ERP - Fast, Flexible & Free Software to scale your Business.
http://metasfresh.com/en
GNU General Public License v2.0
1.78k stars 601 forks source link

Commission calculation #5522

Closed metas-ts closed 5 years ago

metas-ts commented 5 years ago

Is this a bug or feature request?

FR

What is the current behavior?

Which are the steps to reproduce?

What is the expected or desired behavior?

metas-ts commented 5 years ago

Dev-Test WIP

New Product:

There is a "system-product" for commission settlement. URL: https://yourhost.metasfresh.com/window/140/540420

![image](https://user-images.githubusercontent.com/1264789/67811906-1a07b400-fa9e-11e9-8672-b25e272a3f84.png)

New fields in bpartner

![image](https://user-images.githubusercontent.com/1264789/67775276-025d0b00-fa5f-11e9-8834-bd9a886cdc37.png)

New fields in sales order

![image](https://user-images.githubusercontent.com/1264789/67420820-9e09f980-f5cf-11e9-8a89-fe216b108bf2.png)

New in contract conditions

![image](https://user-images.githubusercontent.com/1264789/67776264-63391300-fa60-11e9-9dff-b8b6ba4ec604.png)

New window "Hierachy commission settings"

![image](https://user-images.githubusercontent.com/1264789/67776835-31747c00-fa61-11e9-87db-9b03c0687275.png)

New window "commission instance"

A user can zoom to this window from the respective sales order

![image](https://user-images.githubusercontent.com/1264789/67777499-1ce4b380-fa62-11e9-853e-579e325a3399.png)

New window "commission share"

Here we have the window's "list" view

![image](https://user-images.githubusercontent.com/1264789/67778493-8fa25e80-fa63-11e9-90fa-6c75962f1618.png)

we see:

Here we have the window's "detail" view for one of the two shares:

![image](https://user-images.githubusercontent.com/1264789/67779448-eeb4a300-fa64-11e9-8908-97596a6b5bf4.png)

In the detail view, we see the commission log.

It contains

commission settlement invoice candidate

![image](https://user-images.githubusercontent.com/1264789/67779629-31767b00-fa65-11e9-99c7-c8843150643b.png)

This is a normal purchase invoice candidate with the respective sales rep as partner and the commissionpoint product as product.

commission settlement invoice

![image](https://user-images.githubusercontent.com/1264789/67812089-87b3e000-fa9e-11e9-8b3a-dcb4b72b4815.png)

here you see