CreditHistory::MEAN_PAYMENT_MONEY => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_MONEY), | CreditHistory::MEAN_PAYMENT_MONEY => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_MONEY), | ||||
CreditHistory::MEAN_PAYMENT_CREDIT_CARD => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_CREDIT_CARD), | CreditHistory::MEAN_PAYMENT_CREDIT_CARD => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_CREDIT_CARD), | ||||
CreditHistory::MEAN_PAYMENT_CHEQUE => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_CHEQUE), | CreditHistory::MEAN_PAYMENT_CHEQUE => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_CHEQUE), | ||||
CreditHistory::MEAN_PAYMENT_TRANSFER => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_TRANSFER), | |||||
CreditHistory::MEAN_PAYMENT_OTHER => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_OTHER), | CreditHistory::MEAN_PAYMENT_OTHER => CreditHistory::getStrMeanPaymentBy(CreditHistory::MEAN_PAYMENT_OTHER), | ||||
]) ?> | ]) ?> | ||||
<?= $form->field($creditForm, 'comment')->textarea() ?> | <?= $form->field($creditForm, 'comment')->textarea() ?> |
const MEAN_PAYMENT_CREDIT_CARD = 'credit-card'; | const MEAN_PAYMENT_CREDIT_CARD = 'credit-card'; | ||||
const MEAN_PAYMENT_MONEY = 'money'; | const MEAN_PAYMENT_MONEY = 'money'; | ||||
const MEAN_PAYMENT_CHEQUE = 'cheque'; | const MEAN_PAYMENT_CHEQUE = 'cheque'; | ||||
const MEAN_PAYMENT_TRANSFER = 'transfer'; | |||||
const MEAN_PAYMENT_OTHER = 'other'; | const MEAN_PAYMENT_OTHER = 'other'; | ||||
/** | /** | ||||
case CreditHistory::MEAN_PAYMENT_MONEY : return 'Espèces' ; | case CreditHistory::MEAN_PAYMENT_MONEY : return 'Espèces' ; | ||||
case CreditHistory::MEAN_PAYMENT_CHEQUE : return 'Chèque' ; | case CreditHistory::MEAN_PAYMENT_CHEQUE : return 'Chèque' ; | ||||
case CreditHistory::MEAN_PAYMENT_CREDIT_CARD : return 'Carte bancaire' ; | case CreditHistory::MEAN_PAYMENT_CREDIT_CARD : return 'Carte bancaire' ; | ||||
case CreditHistory::MEAN_PAYMENT_TRANSFER : return 'Virement' ; | |||||
case CreditHistory::MEAN_PAYMENT_OTHER : return 'Autre' ; | case CreditHistory::MEAN_PAYMENT_OTHER : return 'Autre' ; | ||||
default: return 'Crédit' ; | default: return 'Crédit' ; | ||||
} | } |