Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035369Openbravo ERP07. Sales managementpublic2017-02-27 13:062017-03-22 01:01
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR17Q2 
aferraz
Core
No
0035369: Positive commission is generated from fully paid Credit Memos
Positive commission is generated from fully paid Credit Memos
As group admin role:
   Create a new Commission
      Frequency Type: Monthly
      Basis Document: Invoice
      Basis Status: Fully paid documents
      Basis Amount: Net amount
   Add a line to it
      Based on Sales Rep.: Y
      Multiplier Amount: 0.5
   Create a sales invoice using the sales representative of the commision and pay it
   Create a credit memo using the sales representative of the commision and pay it
   Go to Commission window and launch the Generate Commission process
   Check in Commission Payment - Amounts - Details tab that actual amount and converted amount are positive for the record related with the credit memo
      
No tags attached.
Issue History
2017-02-27 13:06ngarciaNew Issue
2017-02-27 13:06ngarciaAssigned To => Triage Finance
2017-02-27 13:06ngarciaModules => Core
2017-02-27 13:06ngarciaResolution time => 1489964400
2017-02-27 13:06ngarciaTriggers an Emergency Pack => No
2017-02-27 13:06ngarciaIssue Monitored: networkb
2017-02-27 15:02markmm82Assigned ToTriage Finance => AtulOpenbravo
2017-03-20 06:10AtulOpenbravoStatusnew => scheduled
2017-03-20 06:10AtulOpenbravoNote Added: 0095408
2017-03-21 10:37aferrazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14848#r14848
2017-03-21 10:37aferrazNote Edited: 0095408bug_revision_view_page.php?bugnote_id=0095408#r14850
2017-03-21 11:18hgbotCheckin
2017-03-21 11:18hgbotNote Added: 0095456
2017-03-21 11:18hgbotStatusscheduled => resolved
2017-03-21 11:18hgbotResolutionopen => fixed
2017-03-21 11:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/67204ba1503ef80962651dfe063f2b8637888b29 [^]
2017-03-21 11:19aferrazReview Assigned To => aferraz
2017-03-21 11:19aferrazNote Added: 0095457
2017-03-21 11:19aferrazStatusresolved => closed
2017-03-21 11:19aferrazFixed in Version => 3.0PR17Q2
2017-03-22 01:01hudsonbotCheckin
2017-03-22 01:01hudsonbotNote Added: 0095492

Notes
(0095408)
AtulOpenbravo   
2017-03-20 06:10   
(edited on: 2017-03-21 10:37)
- Login As group admin role:
- Create a new Commission
      Frequency Type: Monthly
      Basis Document: Invoice
      Basis Status: Fully paid documents
      Basis Amount: Net amount
- Add a line to it
      Based on Sales Rep.: Y
      Multiplier Amount: 0.5
- Create a sales invoice using the sales representative of the commision and pay it
- Create a credit memo using the sales representative of the commision and pay it
- Go to Commission window and launch the Generate Commission process
- Check in Commission Payment - Amounts - Details tab that actual amount and converted amount are negative for the record related with the credit memo.

(0095456)
hgbot   
2017-03-21 11:18   
Repository: erp/devel/pi
Changeset: 67204ba1503ef80962651dfe063f2b8637888b29
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Mar 20 10:43:41 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/67204ba1503ef80962651dfe063f2b8637888b29 [^]

Fixes issue 35369: Positive commission generated from fully paid Credit Memos

When calculating commission for invoices with multiline payment terms commission is
calculated based on expected payment amount in the particular month. Expected amount
sign is as per the type of document type so -1 multiplier in case of credit memo
is no required in case of fully paid document basis.

---
M src-db/database/model/functions/C_COMMISSION_PROCESS.xml
---
(0095457)
aferraz   
2017-03-21 11:19   
Code review + Testing OK
(0095492)
hudsonbot   
2017-03-22 01:01   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f76f24f98700 [^]
Maturity status: Test