Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033339Openbravo ERPZ. Otherspublic2016-06-23 12:092016-06-28 16:06
maite 
markmm82 
immediateminoralways
closedfixed 
5
 
3.0PR16Q3 
aferraz
Advanced Payables and Receivables Mngmt
No
0033339: Error when trying to Void a NOT PAID invoice, logged with * organization
Following error is raised: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
1. Log into the system and set * as default organization in login
2. Create new Sales Invoice for Alimentos y Supermercados business partner. Add any line and Complete
3. Void invoice and following error will be raised:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

NOTE: if you change default organization to another one then invoice is properly voided
No tags attached.
depends on backport 00333493.0PR16Q2.1 closed markmm82 Error when trying to Void a NOT PAID invoice, logged with * organization 
depends on backport 00333503.0PR16Q1.4 closed markmm82 Error when trying to Void a NOT PAID invoice, logged with * organization 
caused by defect 00309713.0PR16Q1 closed aferraz When voiding an unpaid invoice, payment schedule details should be canceled instead of deleted 
Issue History
2016-06-23 12:09maiteNew Issue
2016-06-23 12:09maiteAssigned To => Triage Finance
2016-06-23 12:09maiteModules => Advanced Payables and Receivables Mngmt
2016-06-23 12:09maiteTriggers an Emergency Pack => No
2016-06-23 12:09maiteRelationship addedcaused by 0030971
2016-06-23 12:09maiteIssue Monitored: networkb
2016-06-23 12:10maiteResolution time => 1468360800
2016-06-23 12:27aferrazAssigned ToTriage Finance => markmm82
2016-06-23 17:47markmm82Statusnew => acknowledged
2016-06-24 10:32aferrazStatusacknowledged => scheduled
2016-06-24 16:57markmm82Note Added: 0087911
2016-06-27 10:21hgbotCheckin
2016-06-27 10:21hgbotNote Added: 0087948
2016-06-27 10:21hgbotStatusscheduled => resolved
2016-06-27 10:21hgbotResolutionopen => fixed
2016-06-27 10:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/180c0d96c61f9daf2c2ee01205c218368f8e20fe [^]
2016-06-27 10:22aferrazReview Assigned To => aferraz
2016-06-27 10:22aferrazNote Added: 0087949
2016-06-27 10:22aferrazStatusresolved => closed
2016-06-27 10:22aferrazFixed in Version => 3.0PR16Q3
2016-06-28 16:06hudsonbotCheckin
2016-06-28 16:06hudsonbotNote Added: 0088052

Notes
(0087911)
markmm82   
2016-06-24 16:57   
Test Plan
1. Log into the system and set * as default organization in login
2. Create new Sales Invoice for Alimentos y Supermercados business partner. Add any line and Complete
3. Void invoice and any error is shown. Process is completed successfully.
(0087948)
hgbot   
2016-06-27 10:21   
Repository: erp/devel/pi
Changeset: 180c0d96c61f9daf2c2ee01205c218368f8e20fe
Author: Mark <markmm82 <at> gmail.com>
Date: Fri Jun 24 09:39:53 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/180c0d96c61f9daf2c2ee01205c218368f8e20fe [^]

Fixes issue 33339: Allow to Void a NOT PAID invoice, logged as * organization

Was avoid the Error when trying to Void a NOT PAID invoice, logged with * organization. The payment detail takes the organization from the payment schedule details organization.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/ProcessInvoice.java
---
(0087949)
aferraz   
2016-06-27 10:22   
Code review + Testing OK
(0088052)
hudsonbot   
2016-06-28 16:06   
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/865878a5d292 [^]
Maturity status: Test