Changeset 1078
- Timestamp:
- 09/26/08 10:46:54 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/common/lib/Class.A2Billing.php
r1032 r1078 551 551 } 552 552 553 if(!isset($this->config["agi-conf$idconfig"]['currency_ association_minor'])) $this->config["agi-conf$idconfig"]['currency_association_minor'] = 'all:prepaid-cents';554 $this->config["agi-conf$idconfig"]['currency_ association_minor'] = explode(",",$this->config["agi-conf$idconfig"]['currency_association_minor']);555 556 foreach($this->config["agi-conf$idconfig"]['currency_ association_minor'] as $cur_val) {553 if(!isset($this->config["agi-conf$idconfig"]['currency_cents_association'])) $this->config["agi-conf$idconfig"]['currency_cents_association'] = ''; 554 $this->config["agi-conf$idconfig"]['currency_cents_association'] = explode(",",$this->config["agi-conf$idconfig"]['currency_cents_association']); 555 556 foreach($this->config["agi-conf$idconfig"]['currency_cents_association'] as $cur_val) { 557 557 $cur_val = explode(":",$cur_val); 558 $this->config["agi-conf$idconfig"]['currency_ association_minor_internal'][$cur_val[0]]=$cur_val[1];558 $this->config["agi-conf$idconfig"]['currency_cents_association_internal'][$cur_val[0]]=$cur_val[1]; 559 559 } 560 560 … … 1377 1377 } 1378 1378 1379 if (isset($this->agiconfig['currency_ association_minor_internal'][strtolower($this->currency)])){1380 $cents_audio = $this->agiconfig['currency_ association_minor_internal'][strtolower($this->currency)];1379 if (isset($this->agiconfig['currency_cents_association_internal'][strtolower($this->currency)])){ 1380 $cents_audio = $this->agiconfig['currency_cents_association_internal'][strtolower($this->currency)]; 1381 1381 }else{ 1382 $cents_audio = $this->agiconfig['currency_association_minor_internal']['all']; 1383 } 1384 switch ($cents_audio) { 1385 case 'prepaid-cents': 1386 $cent_audio = 'prepaid-cent'; break; 1382 $cents_audio = "prepaid-cents"; 1383 } 1384 switch ($cents_audio) { 1387 1385 case 'prepaid-pence': 1388 1386 $cent_audio = 'prepaid-penny'; break; 1389 1387 default: 1390 $cent_audio = $cents_audio;1388 $cent_audio = substr($cents_audio,0,-1); 1391 1389 } 1392 1390 trunk/DataBase/mysql-5.x/UPDATE-a2billing-v1.3.0-to-v1.4.0-mysql.sql
r1066 r1078 1143 1143 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; 1144 1144 1145 1145 INSERT INTO cc_config (config_title ,config_key ,config_value ,config_description ,config_valuetype ,config_group_id ,config_listvalues) 1146 VALUES ('Cents Currency Associated', 'currency_cents_association', '', 'Define all the audio (without file extensions) that you want to play according to cents currency (use , to separate, ie "amd:lumas").By default the file used is "prepaid-cents" .Use plural to define the cents currency sound, but import two sounds but cents currency defined : ending by ''s'' and not ending by ''s'' (i.e. for lumas , add 2 files : ''lumas'' and ''luma'') ', '0', '11', NULL); 1147
