Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030212 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 09. Financial management | major | always | 2015-06-19 12:36 | 2015-06-25 18:00 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | aferraz | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | dbdd3e64a7d1 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | vmromanos | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 36671 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030212: Wrong error message shown when posting an invoice with a deferred revenue in a closed period | |||||||
Description | Wrong error message shown when posting an invoice with a deferred revenue in a closed period | |||||||
Steps To Reproduce | 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 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) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0078457) aferraz (viewer) 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 (viewer) 2015-06-25 11:32 |
Code review + testing OK |
(0078518) hudsonbot (viewer) 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 |
![]() |
|||
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 | OBNetwork customer | => Yes |
2015-06-19 12:36 | ngarcia | Modules | => Core |
2015-06-19 12:36 | ngarcia | Support ticket | => 36671 |
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 |