Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008518Openbravo ERP07. Sales managementpublic2009-04-07 12:172012-11-09 08:42
sureshbabu 
psarobe 
urgentmajoralways
closedout of date 
30
2.50beta 
 
Core
No
0008518: Wrong Commission amont taken for commission payment.
while calculating the commission amount, the system considering all the Sales Order amount for the particular period irrespective of the sales representative selected in the Sales order (i.e even though if i choose different sales representative in the sales orders)
1) I have created a Sales order for a Business partner with Sales rep A and complete the order (summed line amount: 58)and again i have created one more Sales Order for the same BP but with different sales representative and complete the order (again summed line amount:58).

2) I Set Up the commission for the Sales representative A with calculative Basis Order and Frequency type as Monthly. and in lines tab i have cleared all the filters in the reference section and set the multiplier amount as 10%(0.10) and then i moved to header to generate the commission order by clicking the Generate Commission button.

3) And then i moved on to Sales Management || Transactions || Commission Payment || Header and edited the above created commission payment document.
Since i have set up the commission for Sales Rep A i am expecting Grand Total amount as 5.8 (i.e 10 % of the Sales order summed line amount - 58*10/100 = 5.8).

But system shows Grand Total Amount as 11.60 ((58+58) * 10/100) which is not the expected amount.
The calculation of commissions should take only Orders or Invoices of the Sales Representative defined in the Commission header.
No tags attached.
blocks feature request 0008482 scheduled rmorley Wrong Commission amont taken for commission payment. 
Issue History
2009-04-08 18:02rafarodaTypedefect => backport
2009-04-08 18:02rafarodafix_in_branch => 2.40
2009-04-09 08:42sathiyanAssigned Tosathiyan => rajagopal
2009-04-20 07:07thirumalaiIssue Monitored: thirumalai
2009-04-22 14:46rajagopalAssigned Torajagopal => psarobe
2009-04-22 14:46rajagopalNote Added: 0015540
2012-11-09 08:42psarobeStatusscheduled => closed
2012-11-09 08:42psarobeResolutionopen => out of date

Notes
(0015540)
rajagopal   
2009-04-22 14:46   
There is the check box is available in Sales Management >> Setup >>Commissions >> Headers >> Lines called "Commission only specified Orders" under the "Reference" Section in the Lines. When we check that option on , the Commission amount has been calculated correctly respective of the Sales Representative selected in the drop down menu while we generating the commission in the sales Management. But if we un-check or not selecting the "Commission only specified Orders" option inside the Sales Management >> Setup >> Commission >> Headers >> Lines under "Reference" section in lines the commission, the calculation is being calculated irrespective of sales rep and it create the commission for all the sales rep, this is the case for Both Sales Order and Sales Invoice. (Kindly Refer the Picture attached with this email)

What I would like to know is that whether we have to check of option "Commission only specified Orders" check box in Sales Management >> Setup >> Commission >> Headers >>Lines in-order to have the commission to be calculated
according the sales rep selected or not ?.