$str .= '<li>'.Producer::$billingFrequencyArray[$model->option_billing_frequency].'</li>'; | $str .= '<li>'.Producer::$billingFrequencyArray[$model->option_billing_frequency].'</li>'; | ||||
if($model->option_billing_permanent_transfer) { | if($model->option_billing_permanent_transfer) { | ||||
$str .= '<li>Virement permanent : <strong>'.Price::format($model->option_billing_permanent_transfer_amount, 0).'</strong></li>'; | |||||
$str .= '<li>Virement permanent : <strong>'.Price::format($model->option_billing_permanent_transfer_amount).'</strong></li>'; | |||||
} | } | ||||
$str .= '</ul>'; | $str .= '</ul>'; |
'option_online_payment_minimum_amount', | 'option_online_payment_minimum_amount', | ||||
'option_document_price_decimals', | 'option_document_price_decimals', | ||||
'option_billing_reduction_percentage', | 'option_billing_reduction_percentage', | ||||
'option_billing_permanent_transfer_amount', | |||||
], | ], | ||||
'integer' | 'integer' | ||||
], | ], | ||||
'string', | 'string', | ||||
'max' => 255 | 'max' => 255 | ||||
], | ], | ||||
[['free_price', 'credit_limit_reminder', 'credit_limit'], 'double'], | |||||
[[ | |||||
'free_price', | |||||
'credit_limit_reminder', | |||||
'credit_limit', | |||||
'option_billing_permanent_transfer_amount' | |||||
], 'double'], | |||||
[ | [ | ||||
'free_price', | 'free_price', | ||||
'compare', | 'compare', |
<?php | |||||
use yii\db\Migration; | |||||
use yii\db\Schema; | |||||
/** | |||||
* Class m230524_091204_update_field_producer_option_billing_permanent_transfer_amount | |||||
*/ | |||||
class m230524_091204_update_field_producer_option_billing_permanent_transfer_amount extends Migration | |||||
{ | |||||
/** | |||||
* {@inheritdoc} | |||||
*/ | |||||
public function safeUp() | |||||
{ | |||||
$this->alterColumn('producer', 'option_billing_permanent_transfer_amount', Schema::TYPE_DOUBLE); | |||||
} | |||||
/** | |||||
* {@inheritdoc} | |||||
*/ | |||||
public function safeDown() | |||||
{ | |||||
$this->alterColumn('producer', 'option_billing_permanent_transfer_amount', Schema::TYPE_INTEGER); | |||||
} | |||||
} |