[OFBiz] Users - name on card for credit cards

Brett Palmer brett.palmer at in2m.com
Thu Aug 19 11:56:34 EDT 2004


Si,

Another solution might be to create a SQL script to migrate the data out 
of the old nameOnCard field and populate the new firstName, lastName, 
etc., fields that are now in the table.  There are really two possible 
solutions one is the change the code to support both conditions for the 
data and the other is to move the data to align correctly with the code. 

There are tradeoffs to either approach.  I personally like to keep the 
data clean and move the data when the code changes but this is one of 
the difficulties of upgrades.  Do you know if moving the data out of the 
nameOnCard field will affect other ofbiz components?


Brett



Si Chen wrote:

> Hi Andy & Dave,
>
> I remember that you re-factored the credit card services a little 
> while ago and replaced nameOnCard with several other fields: company 
> name, first, last name, suffix, title, etc.
>
> I already have some code that just uses the nameOnCard and it is 
> sufficient for our needs.  If I re-factor some of the services and 
> entities so that it will take a nameOnCard if present and the other 
> fields if not, (or in the other sequence) would you consider putting 
> it into the cvs, so as to preserve backward compatibility with our 
> existing code (and probably other people's as well)?
>
> Thanks,
>
> Si
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
> For additional commands, e-mail: users-help at ofbiz.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
For additional commands, e-mail: users-help at ofbiz.dev.java.net






More information about the Users mailing list