浏览代码

[global] Ajout du moyen de paiement "Virement"

refactoring
父节点
当前提交
b167b2f401
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. +1
    -0
      backend/views/user/credit.php
  2. +2
    -0
      common/models/CreditHistory.php

+ 1
- 0
backend/views/user/credit.php 查看文件

@@ -94,6 +94,7 @@ $this->addBreadcrumb('Créditer') ;
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_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),
]) ?>
<?= $form->field($creditForm, 'comment')->textarea() ?>

+ 2
- 0
common/models/CreditHistory.php 查看文件

@@ -70,6 +70,7 @@ class CreditHistory extends ActiveRecordCommon
const MEAN_PAYMENT_CREDIT_CARD = 'credit-card';
const MEAN_PAYMENT_MONEY = 'money';
const MEAN_PAYMENT_CHEQUE = 'cheque';
const MEAN_PAYMENT_TRANSFER = 'transfer';
const MEAN_PAYMENT_OTHER = 'other';
/**
@@ -367,6 +368,7 @@ class CreditHistory extends ActiveRecordCommon
case CreditHistory::MEAN_PAYMENT_MONEY : return 'Espèces' ;
case CreditHistory::MEAN_PAYMENT_CHEQUE : return 'Chèque' ;
case CreditHistory::MEAN_PAYMENT_CREDIT_CARD : return 'Carte bancaire' ;
case CreditHistory::MEAN_PAYMENT_TRANSFER : return 'Virement' ;
case CreditHistory::MEAN_PAYMENT_OTHER : return 'Autre' ;
default: return 'Crédit' ;
}

正在加载...
取消
保存