Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037132Openbravo ERP07. Sales managementpublic2017-10-20 10:412018-01-03 12:38
maite 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q1 
dmiguelez
Core
No
0037132: Should not be possible tor register invoice document related with an order having different business partner
Problem is reproducible in both sales and purchase flows
1. Create Sales Order for "Alimentos y Supermercados, S.A", Invoice Terms "Immediate". Add any product and process order
2. Create Sales Invoice for "Hoteles Buenas Noches, S.A."
3. Run Create Lines From, click on Business Partner Selector and set "Alimentos y Supermercados, S.A". Expand "Order" combo and realize that you are able to select previous order, which is wrong.

If you add lines and process the invoice you can verify via database that fin_payment_scheduledetail information is wrong because

This is affecting different flows where "fin_payment_scheduledetail.c_bpartner_id" is considered because, in that case, only one details exists related with order and invoice having different bp
implement similar fix that issue https://issues.openbravo.com/view.php?id=26833 [^]
No tags attached.
related to defect 0026833 closed AtulOpenbravo Business partner in goods shipment is editable when generating picking list and the picking can be processed 
Issue History
2017-10-20 10:41maiteNew Issue
2017-10-20 10:41maiteAssigned To => Triage Finance
2017-10-20 10:41maiteModules => Core
2017-10-20 10:41maiteResolution time => 1510268400
2017-10-20 10:41maiteTriggers an Emergency Pack => No
2017-10-20 10:42maiteRelationship addedrelated to 0026833
2017-10-20 10:43maiteProposed Solution updated
2017-10-23 12:51dmiguelezAssigned ToTriage Finance => AtulOpenbravo
2017-10-23 21:20AtulOpenbravoStatusnew => scheduled
2017-10-23 21:20AtulOpenbravoNote Added: 0100007
2017-10-30 13:25hgbotCheckin
2017-10-30 13:25hgbotNote Added: 0100143
2017-10-30 13:25hgbotStatusscheduled => resolved
2017-10-30 13:25hgbotResolutionopen => fixed
2017-10-30 13:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ce36c56e53d7031b5885b1a44b1268701dbef0a0 [^]
2017-11-07 12:22dmiguelezReview Assigned To => dmiguelez
2017-11-07 12:22dmiguelezNote Added: 0100302
2017-11-07 12:22dmiguelezStatusresolved => closed
2017-11-07 12:22dmiguelezFixed in Version => 3.0PR18Q1
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101363

Notes
(0100007)
AtulOpenbravo   
2017-10-23 21:20   
- Login as F&B International Group Admin role.
- Create Sales Order for "Alimentos y Supermercados, S.A", Invoice Terms "Immediate". Add any product and process order
- Create Sales Invoice for "Hoteles Buenas Noches, S.A."
- Run Create Lines From.
- Realize that user cannot select business partner any more. It is set with default value as the business partner in the header.
(0100143)
hgbot   
2017-10-30 13:25   
Repository: erp/devel/pi
Changeset: ce36c56e53d7031b5885b1a44b1268701dbef0a0
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Oct 24 00:53:03 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/ce36c56e53d7031b5885b1a44b1268701dbef0a0 [^]

Fixes Issue 37132:Should not be possible to register invoice document related with an
order having different business partner

In sales / purchase invoice, business partner selector button and input type text
is disabled in Create Lines From popup window.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice.html
---
(0100302)
dmiguelez   
2017-11-07 12:22   
Code Review + Testing Ok
(0101363)
hudsonbot   
2018-01-03 12:38   
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/c81e0d3cbab5 [^]
Maturity status: Test