Kaynağa Gözat

[backend] Affichage des commandes qui sont en paiement auto

refactoring
Guillaume Bourgeois 5 yıl önce
ebeveyn
işleme
f15cf77996
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +2
    -0
      backend/views/distribution/index.php
  2. +3
    -1
      common/models/PointSale.php

+ 2
- 0
backend/views/distribution/index.php Dosyayı Görüntüle

@@ -261,6 +261,8 @@ $this->setPageTitle('Distributions') ;
<span class="label label-default input-group-addon" v-else-if="order.amount_paid == 0">non réglé</span>
<span class="label label-default input-group-addon" v-else-if="order.amount_paid > order.amount">surplus</span>
<span class="label label-warning input-group-addon" v-else-if="order.amount_paid < order.amount">reste à payer</span>
<span class="glyphicon glyphicon-time" title="Paiement automatique" v-if="order.auto_payment && producer.credit && (order.amount_paid == 0 || order.amount_paid < order.amount)"></span>
</div>
</td>
<td class="column-payment" v-if="producer.credit">

+ 3
- 1
common/models/PointSale.php Dosyayı Görüntüle

@@ -341,7 +341,9 @@ class PointSale extends ActiveRecordCommon
*/
public function getCreditFunctioning()
{
return $this->credit_functioning ? $this->credit_functioning : Producer::getConfig('credit_functioning') ;
return strlen($this->credit_functioning) > 0 ?
$this->credit_functioning :
Producer::getConfig('credit_functioning') ;
}
/**

Yükleniyor…
İptal
Kaydet