Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030212
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2015-06-19 12:362015-06-25 18:00
ReporterngarciaView Statuspublic 
Assigned Toaferraz 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiondbdd3e64a7d1
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tovmromanos
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030212: Wrong error message shown when posting an invoice with a deferred revenue in a closed period

DescriptionWrong error message shown when posting an invoice with a deferred revenue in a closed period
Steps To ReproduceAs group admin role:
   Create a new product
   Set it as Deferred Revenue:
      Revenue Plan Type: Monthly
      Period Number: 12
      Default Period: Current Month
   Create a Sales Invoice with a date of the previous month
   Add the previously created product and check the Starting period is filled with the previous month
   Change the invoice date to the current month
   Check the Starting period is not updated
   Complete it
   Go to Open/close period control window and close the period for AR Invoice and the period shown in the Starting period of the sales invoice line
   Try to post the invoice and check you get the following error:
      Process failed during execution
   The log shows:
      java.lang.IllegalStateException: DocInvoice - Error getting next year period
    at org.openbravo.erpCommon.ad_forms.DocInvoice.calculateAccDefPlan(DocInvoice.java:1197)
    at org.openbravo.erpCommon.ad_forms.DocInvoice.createAccDefRevenueFact(DocInvoice.java:1139)
    at org.openbravo.erpCommon.ad_forms.DocInvoice.createFact(DocInvoice.java:509)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0078457)
aferraz (manager)
2015-06-23 18:44
edited on: 2015-06-25 11:19

Test plan:

As group admin role:
   Create a new product
   Set it as Deferred Revenue:
      Revenue Plan Type: Monthly
      Period Number: 12
      Default Period: Current Month
   Create a Sales Invoice with a date of the previous month
   Add the previously created product and check the Starting period is filled with the previous month
   Change the invoice date to the current month
   Check the Starting period is not updated
   Complete it
   Go to Open/close period control window and close only the period shown in the Starting period of the sales invoice line
   Try to post the invoice and check you get the following error:
      The Period does not exist or it is not opened
   The log shows:
      ERROR org.openbravo.base.exception.OBException - @PeriodNotAvailable@
org.openbravo.base.exception.OBException: @PeriodNotAvailable@
    at org.openbravo.erpCommon.ad_forms.DocInvoice.calculateAccDefPlan(DocInvoice.java:1198)

(0078499)
hgbot (developer)
2015-06-25 11:32

Repository: erp/devel/pi
Changeset: dbdd3e64a7d145560ffd33d19e69586e4be399d5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Jun 23 18:35:47 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/dbdd3e64a7d145560ffd33d19e69586e4be399d5 [^]

Fixes issue 30212: Wrong error message when posting an invoice

Wrong error message was shown when posting an invoice with a deferred revenue in a closed period.
Now, PeriodNotAvailable error message will be shown.

---
M src/org/openbravo/erpCommon/ad_forms/AcctServer.java
M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java
---
(0078500)
vmromanos (manager)
2015-06-25 11:32

Code review + testing OK
(0078518)
hudsonbot (developer)
2015-06-25 18:00

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/65f6b2e875a7 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2015-06-19 12:36 ngarcia New Issue
2015-06-19 12:36 ngarcia Assigned To => Triage Finance
2015-06-19 12:36 ngarcia Modules => Core
2015-06-19 12:36 ngarcia Resolution time => 1437256800
2015-06-19 12:36 ngarcia Triggers an Emergency Pack => No
2015-06-19 13:11 ngarcia Issue Monitored: networkb
2015-06-23 18:42 aferraz Assigned To Triage Finance => aferraz
2015-06-23 18:43 aferraz Status new => scheduled
2015-06-23 18:44 aferraz Note Added: 0078457
2015-06-25 11:19 vmromanos Note Edited: 0078457 View Revisions
2015-06-25 11:32 hgbot Checkin
2015-06-25 11:32 hgbot Note Added: 0078499
2015-06-25 11:32 hgbot Status scheduled => resolved
2015-06-25 11:32 hgbot Resolution open => fixed
2015-06-25 11:32 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/dbdd3e64a7d145560ffd33d19e69586e4be399d5 [^]
2015-06-25 11:32 vmromanos Review Assigned To => vmromanos
2015-06-25 11:32 vmromanos Note Added: 0078500
2015-06-25 11:32 vmromanos Status resolved => closed
2015-06-25 18:00 hudsonbot Checkin
2015-06-25 18:00 hudsonbot Note Added: 0078518


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker