|
|
|
|
|
|
|
|
<th class="column-point-sale" v-if="idActivePointSale == 0">Point de vente</th> |
|
|
<th class="column-point-sale" v-if="idActivePointSale == 0">Point de vente</th> |
|
|
<th class="column-amount">Montant</th> |
|
|
<th class="column-amount">Montant</th> |
|
|
<th class="column-state-payment">Paiement</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-actions">Actions</th> |
|
|
<th class="column-tiller" v-if="producer && producer.tiller">Tiller</th> |
|
|
<th class="column-tiller" v-if="producer && producer.tiller">Tiller</th> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
<td class="column-state-payment"> |
|
|
<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> |
|
|
<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> |
|
|
<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"> |
|
|
<template v-if="order.isCreditContext"> |
|
|
<a :href="baseUrl+'/user/credit?id='+order.id_user" :class="order.user.credit >= 0 ? 'positive' : 'negative'"> |
|
|
<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,")+' €' }} |
|
|
{{ order.user.credit.toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }} |
|
|
|
|
|
|
|
|
<span class="glyphicon glyphicon-piggy-bank"></span> {{ getLabelPaymentRefund(order, 'Débiter', 'Recréditer', 'le crédit') }} |
|
|
<span class="glyphicon glyphicon-piggy-bank"></span> {{ getLabelPaymentRefund(order, 'Débiter', 'Recréditer', 'le crédit') }} |
|
|
</a> |
|
|
</a> |
|
|
</li> |
|
|
</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> |
|
|
</template> |
|
|
<!--<li> |
|
|
<!--<li> |
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="credit-card"> |
|
|
<a href="javascript:void(0);" @click="orderPaymentClick" :data-id-order="order.id" :data-type="getTypePayment(order)" data-mean-payment="credit-card"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/x-template" id="order-state-payment"> |
|
|
<script type="text/x-template" id="order-state-payment"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span v-html="order.paymentLabelShort"></span> |
|
|
<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>--> |
|
|
<!--<span class="glyphicon glyphicon-signal" title="Paiement partiel ou surplus" v-if="order.amount_paid > order.amount || order.amount_paid < order.amount"></span>--> |