Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028772Openbravo ERP07. Sales managementpublic2015-01-26 16:222015-03-02 11:22
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q2 
aferraz
OBPS
Core
33699
No
0028772: Commission payment details are duplicated if the invoice is paid in two different months
Commission payment details are duplicated if the invoice is paid in two different months
As group admin role:
   Create a Payment Term header:
      Overdue Payment Days Rule: 30
   Add a line to it:
      Percentage due: 50
      Overdue Payment Days Rule: 0
   Create a Commission with:
      Business Partner / Sales Rep.: define one
      Frequency Type: Monthly
      Basis Document: Invoice
      Basis Status. Fully paid docuemnts
      Basis Amount: Net amount
   Add a line to it:
      Based on Sales Rep. = Y
      Multiplier amount: 0.5
   Create a Sales Invoice and associate the previously created payment terms and the sales representative to it.
   Complete it
   Pay it in two payments: one in each due date
   Generate Commission for the month which contains the first payment
   Generate Commission for the month which contains the second payment
   Go to the Commission Payment window and check the whole invoice amount appears in both of them
No tags attached.
causes defect 0030184 closed aferraz Wrong commission amount if the invoice has fractionated payment terms but it is paid in the same commission period 
Issue History
2015-01-26 16:22ngarciaNew Issue
2015-01-26 16:22ngarciaAssigned To => Sandrahuguet
2015-01-26 16:22ngarciaOBNetwork customer => Yes
2015-01-26 16:22ngarciaModules => Core
2015-01-26 16:22ngarciaSupport ticket => 33699
2015-01-26 16:22ngarciaResolution time => 1424818800
2015-01-26 16:22ngarciaTriggers an Emergency Pack => No
2015-01-26 16:22ngarciaIssue generated from0027280
2015-01-26 16:27ngarciaIssue Monitored: networkb
2015-01-26 16:35heccamIssue Monitored: heccam
2015-02-18 10:20AtulOpenbravoAssigned ToSandrahuguet => AtulOpenbravo
2015-02-18 10:21AtulOpenbravoStatusnew => scheduled
2015-02-18 10:21AtulOpenbravofix_in_branch => pi
2015-02-18 18:01AtulOpenbravoNote Added: 0074619
2015-02-18 18:01AtulOpenbravoReview Assigned To => Sandrahuguet
2015-02-18 18:01AtulOpenbravofix_in_branchpi =>
2015-03-02 11:20aferrazFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/a1c3c8123501 [^]
2015-03-02 11:21aferrazNote Added: 0075069
2015-03-02 11:21aferrazStatusscheduled => resolved
2015-03-02 11:21aferrazResolutionopen => fixed
2015-03-02 11:22aferrazReview Assigned ToSandrahuguet => aferraz
2015-03-02 11:22aferrazNote Added: 0075070
2015-03-02 11:22aferrazStatusresolved => closed
2015-06-16 19:31aferrazRelationship addedcauses 0030184

Notes
(0074619)
AtulOpenbravo   
2015-02-18 18:01   
- Login as International Group Admin.
- Create a Payment Term header:
   Overdue Payment Days Rule: 30
   Add a line to it:
      Percentage due: 50
      Overdue Payment Days Rule: 0
- Create a Commission with:
      Business Partner / Sales Rep.: define one
      Frequency Type: Monthly
      Basis Document: Invoice
      Basis Status. Fully paid docuemnts
      Basis Amount: Net amount
   Add a line to it:
      Based on Sales Rep. = Y
      Multiplier amount: 0.5
- Create a Sales Invoice and associate the previously created payment terms and the sales representative to it. Complete it
- Pay it in two payments: one in each due date
- Generate Commission for the month which contains the first payment
- Generate Commission for the month which contains the second payment
- Go to the Commission Payment window and check amount for each month is not whole invoice amount. It is properly split as per the payment amount done month wise.
(0075069)
aferraz   
2015-03-02 11:21   
Fixed in commit https://code.openbravo.com/erp/devel/pi/rev/a1c3c8123501 [^]
(0075070)
aferraz   
2015-03-02 11:22   
Code review + Testing OK