Browse Source

[backend] Affichage des commandes qui sont en paiement auto

dev
Guillaume Bourgeois 5 years ago
parent
commit
f15cf77996
2 changed files with 5 additions and 1 deletions
  1. +2
    -0
      backend/views/distribution/index.php
  2. +3
    -1
      common/models/PointSale.php

+ 2
- 0
backend/views/distribution/index.php View File

<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 == 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-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="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> </div>
</td> </td>
<td class="column-payment" v-if="producer.credit"> <td class="column-payment" v-if="producer.credit">

+ 3
- 1
common/models/PointSale.php View File

*/ */
public function getCreditFunctioning() 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') ;
} }
/** /**

Loading…
Cancel
Save