Usage should use 365/12 not 30 #3131
Labels
Docs: not needed
Effort: small
Small effort story/task, estimated 0-2 days
Priority: high
Type: Feature
From a new button to whole new systems
Is your feature request related to a problem? Please describe.
To be consistent, usage calculations should use 365/12 rather than 30
Describe the solution you'd like
Used in the following places:
dailyUsage
Item.js
Requisition.js
RequisitionItem.js
createRecord.js
Implementation
Create a constant:
NUMBER_OF_DAYS_IN_A_MONTH = 365/12
and use it!Describe alternatives you've considered
N/A
Additional context
We need better folder structure - have no idea where this constant should actually go!
The text was updated successfully, but these errors were encountered: