Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

UsageType price vs Warehouse: Problematic need to select unused warehouse for given usage type #368

Open
damian1976 opened this issue Jan 22, 2015 · 1 comment
Labels

Comments

@damian1976
Copy link
Contributor

The scenario is as follows:
1/ For given usage type (UT) prices (or costs) are defined and matched only with warehouses (WH) using this UT (not all of existing WHs)
2/ Generate Monthly costs and then go to Cost report
3/ Cost for given UT equals 0.

To make it work (to show the real costs of this UT) the unused (fake) WH has to be selected in Usage Prices form for given UT and price/cost has to be set to 0).
Of course this (unused) WH uses other metrics (UTs) so the checkbox "Show warehouse in report" has to be selected.
The problem is how to make it work without selecting WH which does not use this UT

@mkurek
Copy link
Contributor

mkurek commented May 22, 2015

@damian1976 to be honest i don't understand your problem here - do you remember it still? Could you provide some screenshots?

I'll just say that when UsageType cost is distributed by warehouse (each warehouse has it's own cost of this usage type, for example Power consumption or ISP) every DailyUsage of this type should have valid Warehouse provided - it depends on plugin, but default "fallback" action is to assign 'Default' warehouse (added to database in our fixtures) - maybe you'll have to check if you have DailyUsages assigned to this 'Default' warehouse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants