Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027782Openbravo ERP08. Project and service managementpublic2014-10-07 12:172014-12-30 23:24
jonalegriaesarte 
reinaldoguerra 
normalminorhave not tried
closedfixed 
5
 
3.0PR15Q1 
pramakrishnan
Core
No
0027782: Message when unprocessing an expense sheet and there is a purchase invoice created for this document is not correct
Message when unprocessing an expense sheet and there is a purchase invoice created for this document is not correct. Actual message:
Error:
Sales Order has been already booked for the document

It should refer to the purchase invoice, not to a sales order
- Create an expense sheet with one line. Set the flag reinvoicing in line
- Using Create AP from expenses, create the purchase invoice
- Complete the invoice
- Try to unprocess the expense sheet

See image attached for reference
No tags attached.
png expense.png (95,494) 2014-10-07 12:17
https://issues.openbravo.com/file_download.php?file_id=7315&type=bug
png
Issue History
2014-10-07 12:17jonalegriaesarteNew Issue
2014-10-07 12:17jonalegriaesarteAssigned To => AtulOpenbravo
2014-10-07 12:17jonalegriaesarteFile Added: expense.png
2014-10-07 12:17jonalegriaesarteModules => Core
2014-10-07 12:17jonalegriaesarteResolution time => 1418770800
2014-10-07 12:17jonalegriaesarteTriggers an Emergency Pack => No
2014-10-29 16:50reinaldoguerraAssigned ToAtulOpenbravo => reinaldoguerra
2014-10-29 16:50reinaldoguerraStatusnew => scheduled
2014-10-30 01:32reinaldoguerraNote Added: 0071260
2014-11-10 10:25hgbotCheckin
2014-11-10 10:25hgbotNote Added: 0071519
2014-11-10 10:25hgbotStatusscheduled => resolved
2014-11-10 10:25hgbotResolutionopen => fixed
2014-11-10 10:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ee16efd88b66b0e451903a8210c5f80ae2d9f1ca [^]
2014-11-10 10:27pramakrishnanReview Assigned To => pramakrishnan
2014-11-10 10:27pramakrishnanNote Added: 0071521
2014-11-10 10:27pramakrishnanStatusresolved => closed
2014-12-30 23:24hudsonbotCheckin
2014-12-30 23:24hudsonbotNote Added: 0073033

Notes
(0071260)
reinaldoguerra   
2014-10-30 01:32   
Test plan used:
1- Login into Openbravo ERP
2- Go to Expense Sheet window and create a new record
3- Select organization F&B España - Región Norte and employee named: Javier Martín
4- Go to Business partner window and check "Javier Martín" vendor tab. These fields must be defined: Purchase Price List, PO Payment Method, PO Payment Terms, PO Financial Account.
5- Go to product window and create a new one named: "Expense test"
6- Select "Expense type" in product type field and "IVA Normal Servicios" as Tax category
7- Go to price tab and select a price list version. Enter prices values.
8- Go back to Expense Sheet lines tab and create a new one.
9- Select created product, set as true reinvoincing flag and select a business partner.
10- Process expense sheet.
11- Go to Create AP Expense Invoice window
12- Select employee and fill date range.
13- Process it, check that a purchase invoice will be created
14- Go back to Expense Sheet and try to unprocess it
15- Error message is now related to the purchase invoice.
(0071519)
hgbot   
2014-11-10 10:25   
Repository: erp/devel/pi
Changeset: ee16efd88b66b0e451903a8210c5f80ae2d9f1ca
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Wed Oct 29 14:07:39 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/ee16efd88b66b0e451903a8210c5f80ae2d9f1ca [^]

Fixed bug 27782: Message refering invoice when unprocessing an expense sheet.

Error message when unprocessing an expense sheet and there is a purchase invoice created for this document has been changed to refer purchase invoice flow instead of sales order.
This message is used only in process/unprocess Expense Sheet stored procedure.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0071521)
pramakrishnan   
2014-11-10 10:27   
Code Review +Testing - OK.
(0073033)
hudsonbot   
2014-12-30 23:24   
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/6525fe229e06 [^]
Maturity status: Test