Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033820Openbravo ERPZ. Otherspublic2016-08-26 08:532016-09-01 17:58
ngarcia 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
 
3.0PR16Q2.33.0PR16Q2.3 
aferraz
Core
No
0033820: No error message shown when voiding an invoice and the period is closed for AP Payment and AR Receipt
No error message shown when voiding an invoice and the period is closed for AP Payment and AR Receipt
As group admin role:
   Close the current period for AP Payment and AR Receipt documents
   Check it is opened for AR Invoice and AP Invoice
   Create a sales invoice with today's date
   Complete it
   Try to void it and check the status is still Completed and no error message is shown
   The log shows:
      ERROR org.openbravo.base.exception.OBException - The Period does not exist or it is not opened
org.openbravo.base.exception.OBException: The Period does not exist or it is not opened
    at org.openbravo.advpaymentmngt.process.FIN_PaymentProcess.processPayment(FIN_PaymentProcess.java:1141)
    at org.openbravo.advpaymentmngt.process.FIN_PaymentProcess.execute(FIN_PaymentProcess.java:99)
    at org.openbravo.advpaymentmngt.process.FIN_AddPayment.processPayment(FIN_AddPayment.java:1584)
    at org.openbravo.advpaymentmngt.process.FIN_AddPayment.processPayment(FIN_AddPayment.java:1529)
    at org.openbravo.advpaymentmngt.ad_actionbutton.ProcessInvoice.doPost(ProcessInvoice.java:343)
   The problem is also reproduced with Purchase Invoices
No tags attached.
blocks defect 0033817 closed AtulOpenbravo No error message shown when voiding an invoice and the period is closed for AP Payment and AR Receipt 
Issue History
2016-08-26 10:37aferrazTypedefect => backport
2016-08-26 10:37aferrazTarget Version => 3.0PR16Q2.3
2016-08-30 20:12AtulOpenbravoNote Added: 0089560
2016-09-01 17:57hgbotCheckin
2016-09-01 17:57hgbotNote Added: 0089675
2016-09-01 17:57hgbotStatusscheduled => resolved
2016-09-01 17:57hgbotResolutionopen => fixed
2016-09-01 17:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/aacd8ffa3d6701292d57a13d476db3543659f4e8 [^]
2016-09-01 17:58aferrazReview Assigned To => aferraz
2016-09-01 17:58aferrazNote Added: 0089677
2016-09-01 17:58aferrazStatusresolved => closed
2016-09-01 17:58aferrazFixed in Version => 3.0PR16Q2.3

Notes
(0089560)
AtulOpenbravo   
2016-08-30 20:12   
Test Plan
- Login as group admin role:
- Close the current period for AP Payment and AR Receipt documents
- Check it is opened for AR Invoice and AP Invoice
- Create a sales invoice with today's date, Payment Term = Immediate.
- Complete it.
- Try to void it and check that error message is shown."An error occurred when processing the payment:
The Period does not exist or it is not opened".

- Go to Open and Close Period Control. For current period, open AR Receipt document.
- Try to void previous Sales Invoice.
- Check that void action is successfully performed.
(0089675)
hgbot   
2016-09-01 17:57   
Repository: erp/backports/3.0PR16Q2.3
Changeset: aacd8ffa3d6701292d57a13d476db3543659f4e8
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Aug 30 23:25:40 2016 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/aacd8ffa3d6701292d57a13d476db3543659f4e8 [^]

Fixes issue 33820: No error shown when voiding an invoice and period is closed

Error message shown in this case "An error occurred when processing the payment: The Period does not exist or it is not opened"

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/ProcessInvoice.java
---
(0089677)
aferraz   
2016-09-01 17:58   
Code review OK