Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035385 | Openbravo ERP | 09. Financial management | public | 2017-02-28 16:52 | 2017-03-25 01:51 |
|
Reporter | ngarcia | |
Assigned To | luisrs8608 | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | aferraz |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 45712 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035385: Error is shown when posting a goods movement with a transaction cost of 0 |
Description | Error is shown when posting a goods movement with a transaction cost of 0 |
Steps To Reproduce | As group admin role:
Create a new product
Add a purchase price of 0 to it
Create a goods receipt and add it
Create a goods movement and move it from one storage bin to another
Launch the costing background process and check it finishes successfully
Try to Post it and check Posted error is shown
try to Unpost it without selecting 'Delete accounting entry' option and check NoFactAccct error is shown
try to Unpost it selecting 'Delete accounting entry' option and check Delete failed error is shown |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0026503 | 3.0PR14Q3 | closed | AtulOpenbravo | When trying to post a Physical Inventory with total cost = 0, Post status should be "Disabled for Accounting" |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-02-28 16:52 | ngarcia | New Issue | |
2017-02-28 16:52 | ngarcia | Assigned To | => Triage Finance |
2017-02-28 16:52 | ngarcia | OBNetwork customer | => Yes |
2017-02-28 16:52 | ngarcia | Modules | => Core |
2017-02-28 16:52 | ngarcia | Support ticket | => 45712 |
2017-02-28 16:52 | ngarcia | Resolution time | => 1490050800 |
2017-02-28 16:52 | ngarcia | Triggers an Emergency Pack | => No |
2017-02-28 16:53 | ngarcia | Issue Monitored: networkb | |
2017-02-28 16:58 | ngarcia | Relationship added | related to 0026503 |
2017-02-28 17:53 | markmm82 | Assigned To | Triage Finance => AtulOpenbravo |
2017-03-07 20:32 | markmm82 | Assigned To | AtulOpenbravo => mcobas |
2017-03-15 16:52 | luisrs8608 | Assigned To | mcobas => luisrs8608 |
2017-03-15 16:57 | luisrs8608 | Status | new => scheduled |
2017-03-16 17:46 | luisrs8608 | Note Added: 0095341 | |
2017-03-23 15:10 | luisrs8608 | Note Edited: 0095341 | bug_revision_view_page.php?bugnote_id=0095341#r14879 |
2017-03-23 15:25 | luisrs8608 | Note Edited: 0095341 | bug_revision_view_page.php?bugnote_id=0095341#r14880 |
2017-03-23 15:26 | luisrs8608 | Note Added: 0095534 | |
2017-03-23 15:28 | luisrs8608 | Note Added: 0095535 | |
2017-03-23 15:29 | luisrs8608 | Note Added: 0095536 | |
2017-03-24 15:09 | aferraz | Note Deleted: 0095534 | |
2017-03-24 15:09 | aferraz | Note Deleted: 0095535 | |
2017-03-24 15:09 | aferraz | Note Deleted: 0095536 | |
2017-03-24 15:10 | hgbot | Checkin | |
2017-03-24 15:10 | hgbot | Note Added: 0095563 | |
2017-03-24 15:10 | hgbot | Status | scheduled => resolved |
2017-03-24 15:10 | hgbot | Resolution | open => fixed |
2017-03-24 15:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ee5bf188484a37280cb6fac9463e0e1bd12d2869 [^] |
2017-03-24 15:20 | aferraz | Review Assigned To | => aferraz |
2017-03-24 15:20 | aferraz | Note Added: 0095564 | |
2017-03-24 15:20 | aferraz | Status | resolved => closed |
2017-03-24 15:20 | aferraz | Fixed in Version | => 3.0PR17Q2 |
2017-03-25 01:51 | hudsonbot | Checkin | |
2017-03-25 01:51 | hudsonbot | Note Added: 0095580 | |
Notes |
|
(0095341)
|
luisrs8608
|
2017-03-16 17:46
(edited on: 2017-03-23 15:25) |
|
Test Plan to test Goods Movement with zero transaction cost, with uncalculated cost and non-zero cost
As group admin role:
1. Create a new product.
2. Add a purchase price of 0 to it.
3. Create a goods receipt and add it.
4. Create a goods movement and move it from one storage bin to another.
5. Launch the costing background process and check it finishes successfully.
6. Try to Post it and check a Error message is shown: "Document disabled for accounting" and the status of the document was changed to Document Disabled.
7. Create a goods receipt and add a product with purchase price different to 0.
8. Create a goods movement and move it from one storage bin to another.
9. Try to Post it and check a Error message is shown: "The cost of the product has not been calculated".
10. Create a goods receipt and add a product with purchase price different to 0.
11. Create a goods movement and move it from one storage bin to another.
12. Launch the costing background process and check it finishes successfully.
13. Click in Post. The status of the document was changed to Posted.
|
|
|
(0095563)
|
hgbot
|
2017-03-24 15:10
|
|
Repository: erp/devel/pi
Changeset: ee5bf188484a37280cb6fac9463e0e1bd12d2869
Author: Luis <luisrs8608 <at> gmail.com>
Date: Thu Mar 23 09:49:00 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/ee5bf188484a37280cb6fac9463e0e1bd12d2869 [^]
Fixes issue 35385: Error is shown when posting a Goods Movement with a 0 cost
When it was a matter of posting a Goods Movements with zero cost, it showed
'Posted error', and in spite of this it was tried to post the document leaving
it in an inconsistent state, when testing the option Unpost an exception was
fired because it was to eliminate the lines When these were not created.
To solve this when it comes to posting a Goods Movements, it is validated that
all lines of this have a cost other than zero or cost null, in case this
condition is not met, the document is changed to Document Disabled and returned
False interrupting the post process since the cost of its lines has zero value.
---
M src/org/openbravo/erpCommon/ad_forms/DocMovement.java
---
|
|
|
|
|
|
|
|