Jump to content

Credit Applied Transactions on Invoice


Recommended Posts

When viewing an invoice in the admin it shows  a "Transactions" section which includes credit applied payments. This doesn't show in the invoice created by viewinvoice.tpl or invoicepdf.tpl. It seems these display only the equivalent "Transaction History" section shown under "Transactions" in the admin.

Is there a way to modify the invoice templates so they list the credit applied transactions, not just total them under the invoice items?

Thanks!

Link to comment
Share on other sites

10 hours ago, ZeroGravity said:

Is there a way to modify the invoice templates so they list the credit applied transactions, not just total them under the invoice items?

you'd have to query the database to get those transactions - the tblcredits table I expect - which would be a hook and probably a template tweak for the html invoice and a template tweak to the PDF template as you can't use hooks with that, so the query would have to be performed within the PDF template itself.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated