Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029729Openbravo ERP04. Warehouse managementpublic2015-04-29 12:002015-08-20 23:16
psanjuan 
aferraz 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
 
vmromanos
Core
No
0029729: Differences between actual cost and standard cost (variances) should not trigger Cost Adjustments.
Differences between actual cost and standard cost (variances) should not trigger Cost Adjustments as the "Total Cost" and the "Unit Cost" of a transaction should not change.


n/a

Differences between actual cost and standard cost (variances) caused by
- purchase price differences
- backdated transactions
- negative stock correction
- and manual cost correction if any,
should not trigger a cost adjustment transaction.

Above implies that:
- the "Total Cost" and the "Unit Cost" of a transaction valued at standard cost must not change.

- no cost adjustment transaction is created for products valued at "Standard Cost".

- there are some scenarios for which variances can happen even in the case of products valued at "Standard Cost", that is "purchase price differences".
Those variances will no trigger a cost adjustment but would need to be posted to a "PPV" account. For additional information see issues below:

- purchase price differences - issue 29728

Finally,

Inventory amount update - this one is working ok for standard as it creates two physical inventories (closing & opening) which posting is correct. In fact this process is the one to use to change the standard cost of a product.
No tags attached.
related to defect 0029723 closed aferraz Landed Cost differences must not trigger a cost adjustment and need to be post to a "LCV" for products valued at Standard Cost. 
depends on defect 0029728 closed aferraz Purchase price differences need to be post to a PPV account for products valued at "Standard" cost 
depends on defect 0029730 closed aferraz [Cost Adjustments] It should not be possible to manually correct the cost of a transaction valued at Standard Cost. 
depends on defect 0029731 closed AtulOpenbravo "Value Stock Report" needs to be enhanced. 
caused by feature request 0022855 closed dmiguelez It would be fine to have the cost adjustment functionality implemented 
blocks defect 0029702 closed aferraz Java.lang.NullPointerException after launching the Costing Background process in a product under "Standard" algorithm 
Issue History
2015-04-29 12:00psanjuanNew Issue
2015-04-29 12:00psanjuanAssigned To => Triage Finance
2015-04-29 12:00psanjuanModules => Core
2015-04-29 12:00psanjuanTriggers an Emergency Pack => No
2015-04-29 12:01psanjuanRelationship addedcauses 0029723
2015-04-29 12:02psanjuanRelationship addedcauses 0029728
2015-04-29 12:05psanjuanDescription Updatedbug_revision_view_page.php?rev_id=8376#r8376
2015-04-29 12:05psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8378#r8378
2015-04-29 12:10psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8379#r8379
2015-04-29 12:10psanjuanRelationship addedcauses 0029730
2015-04-29 12:20psanjuanRelationship addedcauses 0029731
2015-04-30 09:49psanjuanDescription Updatedbug_revision_view_page.php?rev_id=8387#r8387
2015-04-30 09:49psanjuanProposed Solution updated
2015-04-30 13:45psanjuanDescription Updatedbug_revision_view_page.php?rev_id=8402#r8402
2015-04-30 13:45psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8403#r8403
2015-04-30 13:45psanjuanProposed Solution updated
2015-04-30 13:56psanjuanDescription Updatedbug_revision_view_page.php?rev_id=8405#r8405
2015-04-30 13:56psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8406#r8406
2015-04-30 13:56psanjuanProposed Solution updated
2015-04-30 13:57psanjuanRelationship addedcauses 0029702
2015-04-30 13:58psanjuanRelationship deletedcauses 0029702
2015-04-30 13:58psanjuanRelationship addedblocks 0029702
2015-04-30 14:40psanjuanProposed Solution updated
2015-05-04 12:30dmitry_mezentsevRelationship replaceddepends on 0029723
2015-05-04 12:30dmitry_mezentsevRelationship replaceddepends on 0029728
2015-05-04 12:31dmitry_mezentsevRelationship replaceddepends on 0029730
2015-05-04 12:31dmitry_mezentsevRelationship replaceddepends on 0029731
2015-05-04 12:40dmitry_mezentsevRelationship addedcaused by 0022855
2015-05-05 16:22psanjuanNote Added: 0077018
2015-05-29 14:47psanjuanSummaryDifferences between actual cost and standard cost (variances) should not be managed as Cost Adjustments. => Differences between actual cost and standard cost (variances) should not trigger Cost Adjustments.
2015-05-29 14:47psanjuanDescription Updatedbug_revision_view_page.php?rev_id=8713#r8713
2015-05-29 14:47psanjuanProposed Solution updated
2015-06-11 16:29aferrazAssigned ToTriage Finance => aferraz
2015-07-06 14:43psanjuanNote Added: 0078677
2015-07-06 15:46vmromanosStatusnew => scheduled
2015-07-06 15:56hgbotCheckin
2015-07-06 15:56hgbotNote Added: 0078678
2015-07-06 15:56hgbotStatusscheduled => resolved
2015-07-06 15:56hgbotResolutionopen => fixed
2015-07-06 15:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b45cf0559789653c61099068e3954a76a3bec0b5 [^]
2015-07-07 11:32vmromanosRelationship deleteddepends on 0029723
2015-07-07 11:32vmromanosRelationship addedrelated to 0029723
2015-07-07 11:32vmromanosReview Assigned To => vmromanos
2015-07-07 11:32vmromanosStatusresolved => closed
2015-07-23 09:39aferrazStatusclosed => new
2015-07-23 09:39aferrazResolutionfixed => open
2015-07-23 09:40aferrazStatusnew => scheduled
2015-07-23 09:40aferrazNote Added: 0079037
2015-08-04 13:39hgbotCheckin
2015-08-04 13:39hgbotNote Added: 0079184
2015-08-04 13:40vmromanosStatusscheduled => resolved
2015-08-04 13:40vmromanosResolutionopen => fixed
2015-08-04 13:41vmromanosNote Added: 0079185
2015-08-04 13:41vmromanosStatusresolved => closed
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079474
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079522

Notes
(0077018)
psanjuan   
2015-05-05 16:22   
When programming the software we should be aware that there are more types of variances than only PPV.

In general, variances occur when there is a difference between the standard and actual costs and this relates to purchased and manufactured goods.
(Implicitly -> variances do not occur when using average costing).
So instead of coding directly towards a PPV, it would structurally be better if the software would be prepared to handle different causes of variances:

·Differences with actual costs coming from purchase invoices - PPV

·Differences with actual costs coming from landed cost invoices - Landed costs variance

· Differences with actual costs coming from manufacturing (work order postings) can have several causes and should be recognized individually:

o Usage variance –> when a different/substitute material was consumed

o Material variance –> when a different qty of the same material was consumed

o Method variance -> when a different routing/machine was used, could have caused 0 cost-difference

o Labor variance –> when a different qty of hours was consumed.

Additionally, if would be good if we could show the cost-element / sub-element that is affected by the variance (can be multiple).

COST ELEMENTS

1 Material = the costs of acquiring (manufactured or purchased) 1 unit of the material.

· SUB ELEMENTS – Only applicable in case of “Landed costs”, and if a) purchased b) specific IncoTerms.

· Duties

· Freight

· Insurance

2 Labor – only manufactured goods. Costs of salaries of direct labor

3 Overhead – Costs of all indirect services: renting of building, salaries of indirect personnel, etc.

4 Burden – only manufacturing - Costs of electricity, water, etc. directly related to the processing of the material.

5 Subcontracting - only manufacturing - Costs of outsourced sub-processes
(0078677)
psanjuan   
2015-07-06 14:43   
Differences with actual cost coming from manufacturing - Not implemented yet.

Differences with actual costs coming from purchase invoices (price differences) - Implemented. See issue 29728 - verified it is working properly.

Differences with actual cost coming from landed cost invoices - Implemented. See issue 29723 - Verified it is working properly.

Backdated transactions scenarios does not imply the creation of any cost adjustment when working with products under Standard costing algorithm.

Negative stock correction does not imply the creation of any cost adjustment when working with products under Standard costing algorithm. See issue 29702.

Not possible to manually adjust transactions valued at standard cost. Verified. See issue 29730
(0078678)
hgbot   
2015-07-06 15:56   
Repository: erp/devel/pi
Changeset: b45cf0559789653c61099068e3954a76a3bec0b5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Jul 02 15:12:55 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b45cf0559789653c61099068e3954a76a3bec0b5 [^]

Fixes issue 29729 & Fixes issue 29702 & Fixes issue 29728

Cost Adjustments will not be created in transactions calculated with Standard Algorithm.

---
M src/org/openbravo/costing/CostingServer.java
M src/org/openbravo/costing/PriceDifferenceProcess.java
---
(0079037)
aferraz   
2015-07-23 09:40   
Reopened as the fix is not correct
(0079184)
hgbot   
2015-08-04 13:39   
Repository: erp/devel/pi
Changeset: db0267697acd7b33bfdb98eae4e88d3dfa2402f3
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Jul 14 14:31:22 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/db0267697acd7b33bfdb98eae4e88d3dfa2402f3 [^]

Related to issue 29729: Change the check in CostingServer

The check of Standard Algorithm in CostingServer should be done after check if landed cost need to be processed

---
M src/org/openbravo/costing/CostingServer.java
---
(0079185)
vmromanos   
2015-08-04 13:41   
Code review OK.
Functional test review by psanjuan.
(0079474)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079522)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test