Open filipefurtad0 opened 9 months ago
This is not completely accurate. We do have the data already stored in AdjustmentMetadata
. We need to use it for this report though:
@RachL @sigmundpetersen id like to work on this. I will post followup questions after triaging
Description
Follow-up from #11013.
Currently, our data model makes it impossible to generate a correct Enterprise fees w/ Tax Report by Producer report: if an enterprise fee is not linked to the order cycle, then it will not show up in this report. Enterprise fees linked to orders cannot be traced to their origin, there's no way to know the source of that enterprise fee.
See also this comment.
Expected Behavior
It should be possible to trace the origin of an enterprise fee, at the order level. This should allow querying orders and making the Enterprise fees w/ Tax Report by Producer report accurate - currently, it is not.
Actual Behaviour
It is not possible to trace the origin of an enterprise fee, at the order level. The Enterprise fees w/ Tax Report by Producer report relies on querying order cycles, which may change, thus rendering incorrect reports.
Steps to Reproduce
Animated Gif/Screenshot
-
Workaround
-
Severity
bug-s3: a feature is broken but there is a workaround (there is no workaround, but this report has been marked as deprecated)
Your Environment
Possible Fix
See: https://github.com/openfoodfoundation/openfoodnetwork/pull/11013#issuecomment-1697187001