Active
Project:
Ubercart VAT Number
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
31 Dec 2011 at 12:58 UTC
Updated:
1 Jan 2012 at 09:30 UTC
Jump to comment: Most recent file
This module has had its own table to store VAT numbers, uc_vat_number, but this hasn't been implemented. Instead, VAT numbers are stored in $order->data. This makes it more difficult to properly search for VAT numbers, extend fields used by this module, etc. We should move all VAT numbers from $order->data into the uc_vat_number table.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1390494-0001.patch | 5.98 KB | wimh |
Comments
Comment #1
wimh commentedThis patch contains the code necessary to load and store VAT numbers in the uc_vat_number table, rather than in $order->data. It also contains the update code to move existing VAT numbers.
Can someone test this patch? It works for me but I'd like to get a second opinion. Please make sure you have a backup of your database before trying this.
Once this is applied, other code (such as custom invoices) that expect a VAT number to be in $order->data['vat_number'] will have to be adapted to use $order->vat_number instead. I'll bump the version of this module to 6.x-3.x-dev and make a note in the release notes.
Comment #2
fghaas commentedThe git repo currently does not yet contain a
6.x-3.xbranch, please consider creating one.