I’ve created a ninja form so that it creates an invoice using the Ninja Form addon.
It creates the invoice fine, however the invoice does not include GB VAT even though I’ve setup (or think that I’ve setup correctly) to always charge 20% VAT.
(Note: I’m using GeoDirectory, and VAT always gets applied to a listing package item invoice.)
Have I missed something, I am passing the invoice item id through as a hidden field and mapping it to the item field in the “Create Invoice” Action. Do I need to pass more than this?
Currently, after submitting a form only invoice is created with the items as admin will want to review or change the items before sending an invoice so you can click on recalculate total button and it will apply the tax in the invoice and then you can send the invoice to your customer.
We will consider this and implement it in the next update. Thanks for noticing.
Thanks for the information.
I’ve tried to create a shortcode to do what I’m after using your function wpinv_insert_invoice().
Bizarrely it seems to get stuck in a loop and create 1000s of invoices before the webbrowser comes back with an error.
Here’s my code, I’ve literally just grabbed it from your examples and modified it to be a shortcode. Probably done something basic wrong.
We don’t provide support for the customizations. Your code is not correct at all. You should use the hooks provided in our ninja form add on “wpinv_nf_after_create_invoice” and recalculate the total and save the invoice using the functions
. You can take the help of a developer who can do this easily.
To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on Core Plugin support and click on the "New Post" Button.