Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008482Openbravo ERP07. Sales managementpublic2009-04-07 12:172011-02-04 09:14
sureshbabu 
rmorley 
urgentmajoralways
scheduledopen 
30
2.50beta 
 
Core
No
0008482: 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.
250 final review
depends on backport 0008518 closed psarobe Wrong Commission amont taken for commission payment. 
Issue History
2009-04-07 12:17sureshbabuNew Issue
2009-04-07 12:17sureshbabuAssigned To => rafaroda
2009-04-07 12:17sureshbabuRegression testing => No
2009-04-07 12:18sureshbabuTag Attached: 250 final review
2009-04-07 18:17psarobePrioritynormal => urgent
2009-04-07 18:17psarobeStatusnew => scheduled
2009-04-07 18:17psarobefix_in_branch => pi
2009-04-08 17:59rafarodaAssigned Torafaroda => sathiyan
2009-04-08 17:59rafarodaStatusscheduled => feedback
2009-04-08 17:59rafarodafix_in_branchpi =>
2009-04-08 17:59rafarodaDescription Updated
2009-04-08 17:59rafarodaProposed Solution updated
2009-04-08 18:01rafarodaStatusfeedback => new
2009-04-08 18:01rafarodaSteps to Reproduce Updated
2009-04-08 18:02rafarodaStatusnew => scheduled
2009-04-08 18:02rafarodafix_in_branch => pi
2009-04-09 08:42sathiyanAssigned Tosathiyan => rajagopal
2009-04-22 14:04psarobeAssigned Torajagopal => psarobe
2009-04-22 14:04psarobeStatusscheduled => acknowledged
2009-04-22 14:46rajagopalNote Added: 0015539
2009-04-23 16:04psarobeTag Attached: 250MP1
2009-04-24 07:53sureshbabuNote Added: 0015649
2009-04-29 19:06psarobeTypedefect => feature request
2009-04-29 19:06psarobefix_in_branchpi =>
2009-04-29 19:06psarobeTag Detached: 250MP1
2009-04-29 19:07psarobeNote Added: 0015946
2009-04-29 19:07psarobeStatusacknowledged => scheduled
2009-04-29 19:07psarobeAssigned Topsarobe => pjuvara
2009-04-29 19:07psarobefix_in_branch => pi
2011-02-04 09:14jpabloaeAssigned Topjuvara => rmorley

Notes
(0015539)
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 ?.
(0015649)
sureshbabu   
2009-04-24 07:53   
To add my thoughts regarding the functionality,

I have checked the help document regarding the field "Commission only specified Orders" it says...
"Sales Reps are entered in Orders and Invoices. If selected, only Orders and Invoices for this Sales Reps are included in the calculation of the commission." my first concern is they haven't explained what in case if this field is not checked.


and if the field is not checked, the system ignoring the sales rep criteria for commission calculation and my second concern is how come a sales representative get a commission amount of other sales persons selling.


Need to be re looked by the BA.
(0015946)
psarobe   
2009-04-29 19:07   
Need to rethink that window