Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007117Openbravo ERP07. Sales managementpublic2009-01-23 18:132011-02-04 09:15
RenateNieuwkoop 
rmorley 
urgentmajoralways
acknowledgedopen 
5
2.40 
 
Core
No
0007117: Generate Commission creates commission for invoices that are already commissioned
Just putting this as an RFE in case it gets closed if I log it as a bug.

When setting up a commission for a certain BP and running it with a starting date of the beginning of the month, it creates commission payment. However, when you
Generate Commission again with the starting date of the beginning of the month, invoices that were already picked up in the previous run are picked up again.

Normally in OB the logic is that only documents that are eligible for that action are taking into consideration. For example when you create an Invoice from the Create Invoices from orders program, it will show you everything that still needs invoicing, not the ones that are invoiced already.

Also, the 'last run date' in the Commission screen is not correct (bug 7115), so there is no way that you can see that it was recently run already.
Sales Management || Setup || Commission
- Create a record for a certain BP
- check 'list details' checkbox
- Lines: remove filters and add 'multiplier amount' of 0.20 for example and save
- Header: Click 'Generate Commission' button
- Starting date: 1-1-2009, click ok
See the commission Payment that was created (Sales Management || Transactions || Commission Payment)
- Header: Click 'Generate Commission' button
- Starting date: 1-1-2009, click ok
See the commission Payment that was created (Sales Management || Transactions || Commission Payment) and see that the same invoice(s) was picked up.
The 'Generate Commission' should only pick up invoices that have not been included in a Commission Payment yet.
Clean-up, ReleaseCandidate
jpg 230109Commission1.jpg (154,554) 2009-01-23 18:13
https://issues.openbravo.com/file_download.php?file_id=721&type=bug
jpg

jpg 230109Commission1details.jpg (182,258) 2009-01-23 18:14
https://issues.openbravo.com/file_download.php?file_id=722&type=bug
jpg

jpg 230109Commission2.jpg (158,598) 2009-01-23 18:14
https://issues.openbravo.com/file_download.php?file_id=723&type=bug
jpg

jpg 230109Commission2details.jpg (366,487) 2009-01-23 18:14
https://issues.openbravo.com/file_download.php?file_id=724&type=bug
Issue History
2009-01-23 18:13RenateNieuwkoopNew Issue
2009-01-23 18:13RenateNieuwkoopAssigned To => rafaroda
2009-01-23 18:13RenateNieuwkoopsf_bug_id0 => 2531386
2009-01-23 18:13RenateNieuwkoopFile Added: 230109Commission1.jpg
2009-01-23 18:14RenateNieuwkoopFile Added: 230109Commission1details.jpg
2009-01-23 18:14RenateNieuwkoopFile Added: 230109Commission2.jpg
2009-01-23 18:14RenateNieuwkoopFile Added: 230109Commission2details.jpg
2009-01-26 10:36rafarodaAssigned Torafaroda => pjuvara
2009-01-26 13:47pjuvaraStatusnew => acknowledged
2009-01-26 13:47pjuvaraTag Attached: Clean-up
2009-01-26 13:47pjuvaraTag Attached: ReleaseCandidate
2009-01-26 13:47pjuvaraPrioritynormal => urgent
2009-01-30 00:28pjuvaraSummaryCommission: Generate Commission execution creates commission for invoices that are already commissioned => Generate Commission creates commission for invoices that are already commissioned
2011-02-04 09:15jpabloaeAssigned Topjuvara => rmorley

There are no notes attached to this issue.