|
|
@@ -337,7 +337,7 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<th class="column-point-sale" v-if="idActivePointSale == 0">Point de vente</th> |
|
|
|
<th class="column-amount">Montant</th> |
|
|
|
<th class="column-state-payment">Paiement</th> |
|
|
|
<th class="column-credit" v-if="!pointSaleActive || (pointSaleActive && pointSaleActive.credit == 1)">Crédit</th> |
|
|
|
<th class="column-credit" v-if="!idActivePointSale || (pointSaleActive && pointSaleActive.credit == 1)">Crédit</th> |
|
|
|
<th class="column-actions">Actions</th> |
|
|
|
<th class="column-tiller" v-if="producer && producer.tiller">Tiller</th> |
|
|
|
</tr> |
|
|
@@ -388,10 +388,12 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td class="column-state-payment"> |
|
|
|
<order-state-payment :order="order" :producer="producer"></order-state-payment> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentModalClick" :data-id-order="order.id"> |
|
|
|
<order-state-payment :order="order" :producer="producer"></order-state-payment> |
|
|
|
</a> |
|
|
|
<span class="glyphicon glyphicon-time" title="Débit automatique du crédit la veille de la distribution" v-if="order.auto_payment && (order.amount_paid == 0 || order.amount_paid < order.amount)"></span> |
|
|
|
</td> |
|
|
|
<td class="column-credit" v-if="!pointSaleActive || (pointSaleActive && pointSaleActive.credit == 1)"> |
|
|
|
<td class="column-credit" v-if="!idActivePointSale || (pointSaleActive && pointSaleActive.credit == 1)"> |
|
|
|
<template v-if="order.isCreditContext"> |
|
|
|
<a :href="baseUrl+'/user/credit?id='+order.id_user" :class="order.user.credit >= 0 ? 'positive' : 'negative'"> |
|
|
|
{{ order.user.credit.toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }} |
|
|
@@ -440,21 +442,23 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<span class="glyphicon glyphicon-piggy-bank"></span> {{ getLabelPaymentRefund(order, 'Débiter', 'Recréditer', 'le crédit') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="money"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> {{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'en espèce') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="cheque"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> {{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'par chèque') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="transfer"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> {{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'par virement') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<template v-if="(!order.isCreditFunctioningMandatory && !order.isCreditFunctioningUser) || !order.id_user"> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="money"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> {{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'en espèce') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="cheque"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> {{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'par chèque') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="transfer"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> {{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'par virement') }} |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<!--<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="credit-card"> |
|
|
@@ -639,6 +643,7 @@ $this->setPageTitle('Distributions') ; |
|
|
|
|
|
|
|
<script type="text/x-template" id="order-state-payment"> |
|
|
|
|
|
|
|
|
|
|
|
<span v-html="order.paymentLabelShort"></span> |
|
|
|
|
|
|
|
<!--<span class="glyphicon glyphicon-signal" title="Paiement partiel ou surplus" v-if="order.amount_paid > order.amount || order.amount_paid < order.amount"></span>--> |