Create receipts on upgrade

recidive - July 3, 2009 - 13:31
Project:e-Commerce
Version:6.x-4.x-dev
Component:ec_receipt
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

Talked with Gordon about this in IRC, here is the log.

(01:42:05) gordonh: recidive: basically in the update it needs to work though all the transactions and for all the ones that have been completed it will create a receipt of the same value, so the same customer. You can save the receipt with ec_receipt_save()
(01:43:27) recidive: so only for the completed ones?
(01:43:33) gordonh: Then you can use the ec_receipt_alloc() to link the receipt to the transaction
(01:43:49) gordonh: Yes, the others have not really been paid for
(01:44:17) gordonh: ec_receipt_allocate()
(01:44:24) gordonh: that is the function I meant
(01:45:15) gordonh: You will also need to make up the dates the payment are made, and the customer needs to be the same as the transaction

 
 

Drupal is a registered trademark of Dries Buytaert.