Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043554Openbravo ERP09. Financial managementpublic2020-03-24 13:232020-04-08 09:55
Production - Confirmed Stable
3.0PR15Q1.2 [^]
0043554: Costing Background Process is not creating necessary standard costs when costing rule has changed to be standard
Having average cost calculation for an organization, when changing the Costing Rule to be for standard and validating this rule, standard costs are not created with the next Costing Background Process. Neither if we do an Inventory Amount Update.
* Go to Openbravo livebuilds latest version without modules, access with role F&B International Group [^]
* Go to Costing Rules tab, check that there are only two entries, one for each Organization and both for Costing Algorithm of type Average Algorithm
* Create a new one: Organization = F&B España, S.A., Costing Algorithm = Standard Algorithm. Leave the resting fields with their default values
* Click on button Validate Costing Rule
* Go to window Process Request, select the Costing Background Process. Go to its Process Monitor tab, every 5 minutes a new entry should appear here, wait for the new one to appear (refresh tab if necessary). There is a message on the log “No standard cost defined for given product and date. Org:F&B España, S.A, Product: Zumo de Naranja Bio 0,33L” when it should be creating this cost
* Go back to Costing Rules, select the created one. Go to Initialization tab, select line for España Región Sur, click on link Init Inventory. Get one Product name that appears here on lines (ie: Limonada)
* Go to Product window, search for that product (Limonada), go to tab Costing, add filter to search for Standard on Cost Type column. Notice that there is no standard cost here created.
* Go to Inventory Amount Update window. Create a new one for Organization F&B España, S.A. On Lines create a new one for that previous product (Limonada), set a new Unit Cost, for example 1.5. Click on button Process. Wait for the Costing Background Process to be executed. Check again for that product if there exist Standard Cost (nothing created here neither)
No tags attached.
png 001.png (111,288) 2020-03-24 13:24

png 002.png (129,086) 2020-03-24 13:24

png 003.png (76,496) 2020-03-24 13:24

png 004.png (88,384) 2020-03-24 13:24
Issue History
2020-03-24 13:23santi_lozanoNew Issue
2020-03-24 13:23santi_lozanoAssigned To => Triage Finance
2020-03-24 13:23santi_lozanoModules => Core
2020-03-24 13:23santi_lozanoTriggers an Emergency Pack => No
2020-03-24 13:24santi_lozanoFile Added: 001.png
2020-03-24 13:24santi_lozanoFile Added: 002.png
2020-03-24 13:24santi_lozanoFile Added: 003.png
2020-03-24 13:24santi_lozanoFile Added: 004.png
2020-03-24 15:51inigo_lergaAssigned ToTriage Finance => inigo_lerga
2020-03-24 15:51inigo_lergaStatusnew => scheduled
2020-03-31 11:32dmiguelezRegression level => Production - Confirmed Stable
2020-03-31 11:32dmiguelezRegression date => 2016-04-23
2020-03-31 11:32dmiguelezRegression introduced in release => 3.0PR15Q1.2
2020-03-31 11:32dmiguelezRegression introduced by commit => [^]
2020-04-02 11:45inigo_lergaNote Added: 0118918
2020-04-08 09:54hgbotCheckin
2020-04-08 09:54hgbotNote Added: 0119088
2020-04-08 09:54hgbotStatusscheduled => resolved
2020-04-08 09:54hgbotResolutionopen => fixed
2020-04-08 09:54hgbotFixed in SCM revision => [^]
2020-04-08 09:55dmiguelezReview Assigned To => dmiguelez
2020-04-08 09:55dmiguelezNote Added: 0119089
2020-04-08 09:55dmiguelezStatusresolved => closed
2020-04-08 09:55dmiguelezFixed in Version => 3.0PR20Q3

2020-04-02 11:45   
--Test Plan Mantis--
As the F&B International Group Admin role:
  - Go to the Process request window and open the Costing Background Process record.
    Press the Unschedule Process button.
  - Create a new record with every field as default. Put "Costing Background Process"
    in the Process field.
  - Go to the Costing Rules window and create a new record for Organization "F&B España, S.A"
    and "Standard Algorithm" as Costing Algorith.
    Press the Validate Costing Rule and Done in the popup window.
  - Go back to the Process request window and press the Schedule Process in the previously
    created record.

    #In this moment the necessary standard costs are generated#
2020-04-08 09:54   
Repository: erp/devel/pi
Changeset: 0fcd14a364f0b6e52d5a79926ca63ddeb4b2f047
Author: Iñigo Lerga <inigo.lerga <at>>
Date: Thu Apr 02 11:37:33 2020 +0200
URL: [^]

fixes BUG-43554:Std costs are now created when enabling std costing rule

M src/org/openbravo/costing/
M src/org/openbravo/costing/
M src/org/openbravo/costing/
2020-04-08 09:55   
Code Review + Testing Ok