Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021980Openbravo ERP07. Sales managementpublic2012-10-17 18:152012-12-17 13:33
maite 
ioritzCia 
urgentmajoralways
closedfixed 
5
 
3.0MP19 
Core
No
0021980: Commission defined as Basis Status "Fully Paid Documents" should consider payment date (instead of document date)
Commission defined as Basis Status "Fully Paid Documents" should consider payment date (instead of document date)
1. Create Sales Invoice with date 26/09/2012. Add any line and process
2. Define Commission for same BP, Frequency=Semi-monthly, Basis Document=Invoice. Basis Status=Fully paid. Add Commission line setting same BP and any "multiplier quantity
3. Run Generate Commission process with date 28/09/2012 (period considered will be 16/09 to 30/09). Realize that invoice is not considered (which is correct as is not paid yet)
4. Pay invoice with date 05/10/2012
5. Run Generate Commission process for with date 08/10/2012 (period considered will be 01/10 to 15/10). Realize that Invoice is not considered (because currently we are looking at invoice's date 26/09/2012 which is not in period 01/10 to 15/10). Instead of look at invoice's date process should look at payment's date
No tags attached.
Issue History
2012-10-17 18:15maiteNew Issue
2012-10-17 18:15maiteAssigned To => dmiguelez
2012-10-17 18:15maiteModules => Core
2012-10-17 18:15maiteIssue Monitored: networkb
2012-10-17 18:23dmiguelezAssigned Todmiguelez => jonalegriaesarte
2012-10-20 08:46jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-11-02 14:52ioritzCiaTarget Version3.0MP17 => 3.0MP18
2012-12-04 11:47jonalegriaesarteTarget Version3.0MP18 => 3.0MP19
2012-12-12 13:33hgbotCheckin
2012-12-12 13:33hgbotNote Added: 0054889
2012-12-12 13:33hgbotStatusnew => resolved
2012-12-12 13:33hgbotResolutionopen => fixed
2012-12-12 13:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b8adf9e3f452aa1afa2841b173eed351b67b7e87 [^]
2012-12-13 17:08maiteNote Added: 0054920
2012-12-13 17:08maiteStatusresolved => closed
2012-12-17 13:33hudsonbotCheckin
2012-12-17 13:33hudsonbotNote Added: 0054992

Notes
(0054889)
hgbot   
2012-12-12 13:33   
Repository: erp/devel/pi
Changeset: b8adf9e3f452aa1afa2841b173eed351b67b7e87
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Tue Dec 11 12:22:35 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b8adf9e3f452aa1afa2841b173eed351b67b7e87 [^]

Fixes issue 21980: 'Fully paid documents' Commissions.
Commission defined as Basis Status 'Fully Paid Documents' should consider payment date (instead of document date).

---
M src-db/database/model/functions/C_COMMISSION_PROCESS.xml
---
(0054920)
maite   
2012-12-13 17:08   
verified
(0054992)
hudsonbot   
2012-12-17 13:33   
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/c79ef1b1f830 [^]

Maturity status: Test