Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033819Openbravo ERPZ. Otherspublic2016-08-26 08:532016-09-01 17:57
ngarcia 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
 
3.0PR16Q3.23.0PR16Q3.2 
aferraz
Core
No
0033819: 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.0PR16Q3.2
2016-08-31 11:25AtulOpenbravoNote Added: 0089591
2016-09-01 17:56hgbotCheckin
2016-09-01 17:56hgbotNote Added: 0089673
2016-09-01 17:56hgbotStatusscheduled => resolved
2016-09-01 17:56hgbotResolutionopen => fixed
2016-09-01 17:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3.2/rev/57a062ff4bd0a123ac0ac4cdcc19c54c9b8f5c57 [^]
2016-09-01 17:57aferrazReview Assigned To => aferraz
2016-09-01 17:57aferrazNote Added: 0089676
2016-09-01 17:57aferrazStatusresolved => closed
2016-09-01 17:57aferrazFixed in Version => 3.0PR16Q3.2

Notes
(0089591)
AtulOpenbravo   
2016-08-31 11:25   
Test Plan
- Login as F&B International Group Admin
- Navigate to Open and Close Period Control Window.
- Select current period and Close Period for Document = AP Payment.
- Navigate to Purchase Invoice.
- Create a Purchase Invoice for any business partner. Add line and Process it.
- Try to Void it. Select current date as Void Date.
- Check that proper error message is shown."Error occured while processing payment. The Period does not exist or it is not opened".
- Go back to Open Close Period Control and for current period open period for document AP Payment.
- Navigate to Purchase Invoice created previously and void it with current date = void date.
- Check that void action is executed successfully.
(0089673)
hgbot   
2016-09-01 17:56   
Repository: erp/backports/3.0PR16Q3.2
Changeset: 57a062ff4bd0a123ac0ac4cdcc19c54c9b8f5c57
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.0PR16Q3.2/rev/57a062ff4bd0a123ac0ac4cdcc19c54c9b8f5c57 [^]

Fixes issue 33819: 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
---
(0089676)
aferraz   
2016-09-01 17:57   
Code review OK