UC Purchase Order Migrate
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
This module can be used to migrate purchase order data from the UC Purchase Order module into the UC Custom Payment Method module.
UC Custom Payment Method appears to be the future for simple payment methods. It implements a free order payment method by default and there are plans to move the UC Payment Method Pack to UC Custom Payment. It can handle all of the functionality of version 1 of the UC Purchase Order module and is actively maintained.
This code creates the purchase order custom payment entity with a single text field for the purchase order number. To allow for maximum flexibility no constraints are placed on the purchase order number field (depending on the organisation purchase order numbers may contain letters and punctuation). This code then migrates purchase order numbers from existing orders into Custom Payment Data entities and attaches those entities to the corresponding orders. Finally the payment method of all po orders is updated to point to the new custom payment method.
Like CCK Content Migrate, once the purchase order data has been migrated this module can be uninstalled. At present the module does not delete the old uc_payment_po table, that will need to be done either manually or by uninstalling the UC Purchase Order module (although deleting the old data may be a feature in the future).
