Invoice Payments and Balance Tokens

Project: 
Ubercart
Category: 
feature request
Priority: 
normal
Status: 
active

I would like to see some additional tokens made available to invoices to allow for the inclusion of payments and balance.

Yes

This is a tremendously good idea. I need to get my orders credited, and I now have to click back through and enter negative-priced products in order to show a payment, which do not show up in red or brackets.

Please help. My bookkeeper is having fits.

Re: Invoice Payments and Balance Tokens

I'll take a patch for this if you've got one. Otherwise it's on my feature requests to-do list which gets looked through when I get a moment. Eye-wink

In the meantime you can simply add the data to an invoice template.

Patches ready

Attached are a couple patches for adding more information to the order invoices:

1. uc_payment-balance_token.diff is a patch for uc_payment.module that adds a token for the order balance (the order total less any payments on the order).

2. uc_order-date_token.diff is a patch for uc_order.module that adds tokens for the order creation and modification dates.

3. customer.itpl-payments_dates.diff is a patch for customer.itpl.php that adds these tokens as well as a list of the payments for an order to the invoice template.

The patches are based on Ubercart beta 3.

AttachmentSize
customer.itpl-payments_dates.diff2.35 KB
uc_order-date_token.diff1.25 KB
uc_payment-balance_token.diff824 bytes

Awesome. For now I've

Awesome. Smiling For now I've committed the two that add tokens but am going to hold off on the patch to add them to the default template. I'd really just like to totally redo the customer template, although I can see room for shipping more than one default template options in core.