Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be very cool to have a helper / API function to determine if an order is an RC order.
This is for example handy because you have to add a predefined text (German e.g. "Steuerschuldnerschaft des Leistungsempfängers") on invoices. So what you currently have to do is to find out, which vat is applied to the order in a heavy array construct. Then you can add the text, if it applies.
Is there a better way or a possibility for an extension to find this out more easily? I think many developers could benefit from.
Comments
Comment #1
AnybodyI finally found the solution myself, that works great!
The solution is already contained in the commerce_vat module.
Here's how to use:
This simple function returns "ec_ic_rc", if it's a reverse charge order! :)
GREAT!
I'll write a blog entry with more details on http://Julian.Pustkuchen.com about it soon.
Comment #2
AnybodyThere you go: http://julian.pustkuchen.com/drupal-commerce-reverse-charge-hinweis-anze...