Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039505Openbravo ERP04. Warehouse managementpublic2018-10-22 17:312018-12-11 20:22
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR19Q1 
dmiguelez
Core
No
0039505: Records in Matched Amount tab are duplicated if the Landed Cost is reactivated and processed again
Records in Matched Amount tab are duplicated if the Landed Cost is reactivated and processed again. It is causing wrong accounting
As group admin role:
   Create a G/L Item
   Set it as Enable in Financial Invoices and add a Tax Category to it
   Add Accounting for all the general ledgers

   Create a Landed Cost Type:
      Landed Cost Distribution Algorithm: Distribution by Amount
      Account: previously created G/L Item

   Create a goods receipt, add a product and complete it
   Launch Costing Background Process and check it finishes successfully
   Create a purchase invoice for same business partner
   Add a financial line to it and select previously created G/L Item
   Complete it

   Create a Landed Cost
   Add a record in Cost tab and select previously created invoice
   Add a record in Receipt tab and select previously created goods receipt
   Process it
   Check a new line has been included in Cost - Matched Amount subtab
   Reactivate it
   Check the record is still there
   Process it again
   Check a new record has been created in the Cost - Matched Amount subtab

   Go to Cost tab and post it
   Check the sum of all the records in Matched Amount is used
No tags attached.
Issue History
2018-10-22 17:31ngarciaNew Issue
2018-10-22 17:31ngarciaAssigned To => Triage Finance
2018-10-22 17:31ngarciaModules => Core
2018-10-22 17:31ngarciaResolution time => 1541977200
2018-10-22 17:31ngarciaTriggers an Emergency Pack => No
2018-10-22 17:33ngarciaIssue Monitored: networkb
2018-10-23 11:08dmiguelezAssigned ToTriage Finance => AtulOpenbravo
2018-10-23 18:08ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17822#r17822
2018-10-23 18:13ngarciaDescription Updatedbug_revision_view_page.php?rev_id=17824#r17824
2018-10-23 18:13ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17825#r17825
2018-10-24 11:27martinsdanIssue Monitored: martinsdan
2018-10-24 12:23AtulOpenbravoStatusnew => scheduled
2018-10-24 12:23AtulOpenbravoNote Added: 0107551
2018-10-29 17:13hgbotCheckin
2018-10-29 17:13hgbotNote Added: 0107641
2018-10-29 17:13hgbotStatusscheduled => resolved
2018-10-29 17:13hgbotResolutionopen => fixed
2018-10-29 17:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/890acbd59e51d97e29d5955ce2012c56a37f1a40 [^]
2018-10-29 17:17aferrazNote Added: 0107642
2018-10-29 17:17aferrazReview Assigned To => dmiguelez
2018-10-29 17:17aferrazStatusresolved => closed
2018-10-29 17:17aferrazFixed in Version => 3.0PR19Q1
2018-12-11 20:22hudsonbotCheckin
2018-12-11 20:22hudsonbotNote Added: 0108446

Notes
(0107551)
AtulOpenbravo   
2018-10-24 12:23   
- Login as F&B International Group admin role
- Create a G/L Item
- Set it as Enable in Financial Invoices and add a Tax Category to it
- Add Accounting for all the general ledgers

- Create a Landed Cost Type:
  Landed Cost Distribution Algorithm: Distribution by Amount
  Account: previously created G/L Item

- Create a goods receipt, add a product and complete it
- Launch Costing Background Process and check it finishes successfully
- Create a purchase invoice for same business partner
- Add a financial line to it and select previously created G/L Item
- Complete it

- Create a Landed Cost
- Add a record in Cost tab and select previously created invoice
- Add a record in Receipt tab and select previously created goods receipt
- Process it
- Check a new line has been included in Cost - Matched Amount subtab
- Reactivate it
- Check the record is removed from Matched Amount sub tab.
- Process it again
- Check a new record has been created in the Cost - Matched Amount subtab
- Go to Cost tab and post it
- Check the Amount in Matched Amount subtab is used for posting.
(0107641)
hgbot   
2018-10-29 17:13   
Repository: erp/devel/pi
Changeset: 890acbd59e51d97e29d5955ce2012c56a37f1a40
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Oct 26 10:54:45 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/890acbd59e51d97e29d5955ce2012c56a37f1a40 [^]

Fixes Issue 39505:Records in Matched Amount tab are duplicated
if the Landed Cost is reactivated and processed again

Delete records from Matched Amount sub tab when Landed Cost
is reactivated.

---
M src/org/openbravo/costing/ReactivateLandedCost.java
---
(0107642)
aferraz   
2018-10-29 17:17   
Code review + Testing OK
(0108446)
hudsonbot   
2018-12-11 20:22   
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/470e3cd384c5 [^]
Maturity status: Test