Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024309Openbravo ERP07. Sales managementpublic2013-07-10 15:282013-10-25 17:44
ngarcia 
Sandrahuguet 
normaltrivialalways
closedfixed 
5
 
3.0MP293.0MP29 
ngarcia
Core
No
0024309: Cannot generate an invoice from a commission if a sales representative has a sales representative configured
Cannot generate an invoice from a commission if a sales representative has a sales representative configured
As group admin role:
   Select a business partner configured as employee and sales representative
   Configure it also as vendor and add fill the following fields:
      Purchase Pricelist
      PO Payment Method
      PO Payment Terms
      PO Financial Account
   Configure it also as customer and fill the Sales Representative field
   Create a Sales Invoice and select that BP as Sales Representative
   Create a record for that BP in the Commission window:
      Basis Document: Invoice
      Basis Status: All documents
      Basis Amount: Net Amount
   Add a line to it:
      Based on Sales Rep.: 'Y'
      Multiplier Amount: 2
   Generate Commission
   In Commission Payment window, create an invoice for that commission
   An error message is shown
      
In the C_COMMISSIONRUN_PROCESS function, the value of the salesrep_id column of the c_bpartner table (which refers to c_bpartner_id) is inserted in the salesrep_id column of the c_invoice table (which refers to ad_user_id)
No tags attached.
Issue History
2013-07-10 15:28ngarciaNew Issue
2013-07-10 15:28ngarciaAssigned To => dmiguelez
2013-07-10 15:28ngarciaModules => Core
2013-07-10 15:28ngarciaTriggers an Emergency Pack => No
2013-07-10 15:29ngarciaIssue Monitored: networkb
2013-07-12 10:45dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-08-27 12:31jonalegriaesarteTarget Version => 3.0MP29
2013-10-08 17:33jonalegriaesarteAssigned Tojonalegriaesarte => Sandrahuguet
2013-10-09 08:38SandrahuguetStatusnew => scheduled
2013-10-09 08:38Sandrahuguetfix_in_branch => pi
2013-10-16 11:52hgbotCheckin
2013-10-16 11:52hgbotNote Added: 0061692
2013-10-16 11:52hgbotStatusscheduled => resolved
2013-10-16 11:52hgbotResolutionopen => fixed
2013-10-16 11:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fb0daa4e04b9d15404f1af6c93ee0bef71b18fda [^]
2013-10-16 11:55SandrahuguetReview Assigned To => ngarcia
2013-10-16 19:47hudsonbotCheckin
2013-10-16 19:47hudsonbotNote Added: 0061760
2013-10-24 09:22hgbotCheckin
2013-10-24 09:22hgbotNote Added: 0061878
2013-10-24 15:47hgbotCheckin
2013-10-24 15:47hgbotNote Added: 0061885
2013-10-24 15:55ngarciaStatusresolved => closed
2013-10-24 15:55ngarciaFixed in Version => 3.0MP29
2013-10-24 20:04hudsonbotCheckin
2013-10-24 20:04hudsonbotNote Added: 0061893
2013-10-25 17:44hudsonbotCheckin
2013-10-25 17:44hudsonbotNote Added: 0061910

Notes
(0061692)
hgbot   
2013-10-16 11:52   
Repository: erp/devel/pi
Changeset: fb0daa4e04b9d15404f1af6c93ee0bef71b18fda
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Oct 09 12:27:58 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fb0daa4e04b9d15404f1af6c93ee0bef71b18fda [^]

Fixed bug 24309 Cannot generate an invoice from a commission with sales_rep configured

---
M src-db/database/model/functions/C_COMMISSIONRUN_PROCESS.xml
---
(0061760)
hudsonbot   
2013-10-16 19:47   
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/51315988909a [^]

Maturity status: Test
(0061878)
hgbot   
2013-10-24 09:22   
Repository: erp/devel/pi
Changeset: acb7c4bb1944d77bf246e4db9a2fa7e9d9c63153
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Oct 22 09:11:41 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/acb7c4bb1944d77bf246e4db9a2fa7e9d9c63153 [^]

Related to issue 24309

---
M src-db/database/model/functions/C_COMMISSIONRUN_PROCESS.xml
---
(0061885)
hgbot   
2013-10-24 15:47   
Repository: erp/devel/pi
Changeset: 3478e80b1ffc9544f7e447acf4f80a7124f151a0
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Thu Oct 24 15:49:18 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3478e80b1ffc9544f7e447acf4f80a7124f151a0 [^]

related to issue 24309

---
M src-db/database/model/functions/C_COMMISSIONRUN_PROCESS.xml
---
(0061893)
hudsonbot   
2013-10-24 20:04   
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/d0465c5073ba [^]

Maturity status: Test
(0061910)
hudsonbot   
2013-10-25 17:44   
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/156e0398fda4 [^]

Maturity status: Test