Clarify the @Semantics.amount.currencyCode and @Semantics.currencyCode capabilities
Hi,
The https://cap.cloud.sap/docs/advanced/odata#currencies-and-units-of-measure section documents how to use the @Semantics.amount.currencyCode and @Semantics.currencyCode capabilities to get analytical list reports working with currencies and units of measure.
I suggest to clarify the statement "The CAP Java SDK exposes all properties annotated with ..." so it explicitly states that this is not supported in the Node.js runtime.
Is it on the roadmap to add the same capability to the Node.js runtime? For our project purposes we are now constructing a patch amending @sap/cds/libx/odata/parse/afterburner.js so it will fetch the min and max of the currencyCode and then add handlers in the service to tweak the responses so they follow the same pattern as the Java runtime does. That will solve the problem for us, but it would be great to see this supported in the official Node.js runtime?
Thanks in advance! //Carl
Hi @carlonnheim ,
thanks for opening this issue. We're looking into your feedback and get back to you.
All the best, René
HI @carlonnheim,
this is now also supported by the node runtime since cds version 9.3.0. Docs to be updated soon.
Best, Johannes