Hi Joe
We installed your fixes..
Attachment icon items_trans_db.inc 3.21 kb, 1 downloads since 2014-09-04
Attachment icon rep301.php1 6.53 kb, 1 downloads since 2014-09-04
Attachment icon rep308.php1 8.26 kb, 1 downloads since 2014-09-04
I tested them using the following test data:
1. I created a new inventory item on 5.9.14
2. I purchased 1 unit for 100 + VAT on 5.9.14
3. I purchased 1 unit for 50 + vat on 31.8.14
The results showed errors as documented below.
......................................................................................................................
A)The results I expect to see in the Inventory Valuation Report (IVR) are:
a) As at 31.8.14 I should see 1 unit x 50 unit cost = 50 total value
b) As at 5.9.14 I should see 2 unit x 75 unit cost = 150 total value
The results I actually see in the Inventory Valuation Report (IVR) are:
a) As at 31.8.14 I should see 1 unit x 75 unit cost = 75 total value
b) As at 5.9.14 I should see 2 unit x 87.50 unit cost = 175 total value
Conclusion: The IVR qty is correct at both test dates, the IRV unit cost is wrong at both test dates
..............................................................................................................................................
B)The results I expect to see in the Costed Inventory Movement Report (CIMR) are:
a) As at 31.8.14 I should see
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
0 0 0 1 50 50 0 0 0 1 50 50
b) As at 5.9.14 I should see
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
1 50 50 1 100 100 0 0 0 2 75 150
The results I actually see in the Costed Inventory Movement Account are:
a) As at 31.8.14
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
0 0 0 1 75 75 0 0 0 1 75 75
b) As at 5.9.14
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
1 75 75 1 100 100 0 0 0 2 87.5 175
Conclusion: The CIMR qty is correct at both test dates, the IRV unit cost is wrong at both test dates.
Issue to Resolve:
The IVR + CIMR do not respect the user's reporting date when costing opening stock. They takes latest average cost
The calculation of average cost by FA for the data used is wrong.
------------------------------------------------------------------------------------------------------------------------------------
I then tested them using the following test data:
1. I created a new inventory item on 5.9.14
2. I purchased 1 unit for 50 + vat on 31.8.14
3. I purchased 1 unit for 100 + VAT on 5.9.14 (the date order is different to the first set of test data)
....................................................................................................................................................................
A)The results I expect to see in the Inventory Valuation Report (IVR) are:
a) As at 31.8.14 I should see 1 unit x 50 unit cost = 50 total value
b) As at 5.9.14 I should see 2 unit x 75 unit cost = 150 total value
The results I actually see in the Inventory Valuation Report (IVR) are:
a) As at 31.8.14 I should see 1 unit x 50 unit cost = 50 total value
b) As at 5.9.14 I should see 2 unit x 62.50 unit cost = 125 total value
Conclusion: The IVR qty is correct at both test dates, the IRV unit cost is correct at 31.8.14, but wrong at 5.9.14
....................................................................................................................................................................
B)The results I expect to see in the Costed Inventory Movement Report (CIMR) are:
a) As at 31.8.14 I should see
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
0 0 0 1 50 50 0 0 0 1 50 50
b) As at 5.9.14 I should see
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
1 50 50 1 100 100 0 0 0 2 75 150
The results I actually see in the Costed Inventory Movement Account are:
a) As at 31.8.14
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
0 0 0 1 50 50 0 0 0 1 50 50
b) As at 5.9.14
Open Stock Stock In Delivery Closing Stock
Qty Rate Value Qty Rate Value Qty Rate Value Qty Rate Value
1 75 75 1 75 75 0 0 0 2 62.50 125
Conclusion: The CIMR qty is correct at both test dates, the IRV unit cost is correct and 31.8.14 but wrong at 9.5.14.
...............................................................................................................................................................