The (printable) invoice of a recurring fee gets the right (newly generated) order number, but the order date is the date of the initial purchase and not the date of the renewal.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | uc_recurring-1319946-1.patch | 463 bytes | Mark B |
Comments
Comment #1
ju.ri commentedI solved this by using the token for "date modified". That puts the right date on each recurring order/invoice.
Comment #2
Kirk commentedju.ri,
I just noticed this too, but I'm uncertain what you mean by you used the token. I can't find anywhere to modify the token date for the order.
Any additional info would be greatly appreciated.
Comment #3
ju.ri commentedyou have to overwrite the invoice template.
copy uc_order.tpl.php and uc_order-customer.tpl.php from the ubercart/oder/template folder to your theme directory.
modify them to include $order_date_modified
you find all tokens in the conditional actions pages, when editing email actions for example. just modify the token name to have underscores and "$" to use them in templates.
Comment #4
Mark B commentedThis is causing us a much bigger deal. We have to report on orders placed in each month, and if a renewal is generated in November but has an order creation date from August (copied from the initial order) then we have a problem.
I've attached a patch to fix this which works well for our requirements, but I don't know if it has other implications elsewhere.
Comment #5
ju.ri commentedthat's true, I haven't even thought about reporting.. thanks for hint, and for the patch!
Without this the reports are all wrong, dating all recurring orders back to the original purchase.
Comment #6
ju.ri commented@Univate, is it safe to do this? Can we use this patch without breaking anything else?
Comment #7
rickmanelius commentedNeeds commit to 7.x branch as well. I'm applying on my site now as it's a one line fix.
Comment #8
rickmanelius commentedConfirmed it works for D7. And since it's the exact same for D6, marking RBTC.
Comment #9
univate commentedthanks, committed