I agree. The only reason for this AFAIK is to give granular control for what 
CC's are available on a website. 

It would be better to set it on the store payment settings. 

----- Original Message ----- 
From: "Jacopo Cappellato" <[EMAIL PROTECTED]> 
To: [email protected] 
Sent: Monday, December 10, 2007 10:39:26 AM (GMT-0700) America/Denver 
Subject: Weird way to manage the CreditCard.cardType field 

Is there a reason for hardcoding the credit card types in the following 
template: 

http://svn.apache.org/repos/asf/ofbiz/trunk/framework/common/webcommon/includes/cctypes.ftl
 

? 

Why not getting the values from the Enumeration entity (we already have 
value for credit card types, with enumTypeId="CREDIT_CARD_TYPE")? 

Also, I've noticed that in the CreditCard.cardType field, instead of 
storing the Enumeration.enumId field (e.g. CCT_VISA) we store the 
Enumeration.enumCode field (e.g. "Visa") 

Jacopo 

Reply via email to