|
|
@@ -382,7 +382,7 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</template> |
|
|
|
</td> |
|
|
|
<td class="column-amount"> |
|
|
|
{{ order.amount.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }} |
|
|
|
{{ order.amount.toFixed(2)+' €' }} |
|
|
|
<div class="state-payment-mobile"> |
|
|
|
<order-state-payment :order="order" :producer="producer"></order-state-payment> |
|
|
|
</div> |
|
|
@@ -392,6 +392,15 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<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.amount != 0 && order.auto_payment && (order.amount_paid == 0 || order.amount_paid < order.amount)"></span> |
|
|
|
|
|
|
|
<div v-if="order.amount_paid > 0 && order.amount_paid < order.amount"> |
|
|
|
<span class="glyphicon glyphicon-alert"></span> Reste à payer |
|
|
|
</div> |
|
|
|
<div v-if="order.amount_paid > order.amount"> |
|
|
|
<span class="glyphicon glyphicon-alert"></span> Surplus à rembourser |
|
|
|
{{ order.amount_paid }} / |
|
|
|
{{ order.amount }} |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td class="column-credit" v-if="!idActivePointSale || (pointSaleActive && pointSaleActive.credit == 1)"> |
|
|
|
<template v-if="order.isCreditContext"> |
|
|
@@ -400,31 +409,6 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</a> |
|
|
|
</template> |
|
|
|
</td> |
|
|
|
<td class="column-payment" v-if="false && producer && producer.credit"> |
|
|
|
<!--<div class="btn-group" v-if="order.user && !order.date_delete"> |
|
|
|
<button class="btn btn-xs btn-default" v-if="order.amount_paid == order.amount" @click="orderPaymentClick" :data-id-order="order.id" data-type="refund" :data-amount="order.amount"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> Recréditer |
|
|
|
</button> |
|
|
|
<button class="btn btn-xs btn-default" v-else-if="order.amount_paid == 0" @click="orderPaymentClick" :data-id-order="order.id" data-type="payment" :data-amount="order.amount"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> Débiter |
|
|
|
</button> |
|
|
|
<button class="btn btn-xs btn-default" v-else-if="order.amount_paid < order.amount" @click="orderPaymentClick" :data-id-order="order.id" data-type="payment" :data-amount="order.amount_remaining"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> Débiter |
|
|
|
</button> |
|
|
|
<button class="btn btn-xs btn-default" v-else-if="order.amount_paid > order.amount" @click="orderPaymentClick" :data-id-order="order.id" data-type="refund" :data-amount="order.amount_surplus"> |
|
|
|
<span class="glyphicon glyphicon-euro"></span> Recréditer |
|
|
|
</button> |
|
|
|
|
|
|
|
<button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
|
|
<span class="caret"></span> |
|
|
|
<span class="sr-only">Toggle Dropdown</span> |
|
|
|
</button> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<li><a href="javascript:void(0);" @click="orderPaymentModalClick" :data-id-order="order.id">Historique</a></li> |
|
|
|
</ul> |
|
|
|
</div>--> |
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="column-actions"> |
|
|
|
<span v-if="false && order.oneProductUnactivated" class="glyphicon glyphicon-warning-sign" title="Contient un produit non activé"></span> |
|
|
|
|
|
|
@@ -460,11 +444,6 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</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"> |
|
|
|
{{ getLabelPaymentRefund(order, 'Payer', 'Rembourser', 'par carte bancaire') }} |
|
|
|
</a> |
|
|
|
</li>--> |
|
|
|
<li> |
|
|
|
<a href="javascript:void(0);" @click="orderPaymentModalClick" :data-id-order="order.id"> |
|
|
|
<span class="glyphicon glyphicon-th-list"></span> Historique |
|
|
@@ -506,8 +485,6 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<span class="caret"></span> |
|
|
|
</button> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<!--<li><a href="javascript:void(0);" class="" :data-id-order="order.id" @click="orderViewClick"><span :class="'glyphicon ' + ((showViewProduct && idOrderView == order.id) ? 'glyphicon-eye-close' : 'glyphicon-eye-open')"></span> Voir</a></li> |
|
|
|
<li><a href="javascript:void(0);" class="" :data-id-order="order.id" @click="updateOrderClick"><span class="glyphicon glyphicon-pencil"></span> Modifier</a></li>--> |
|
|
|
<li><a href="javascript:void(0);" class="" :data-id-order="order.id" @click="deleteOrderClick"><span class="glyphicon glyphicon-trash"></span> Supprimer</a></li> |
|
|
|
<li v-if="order.id_subscription > 0"><a class="" :href="baseUrl+'/subscription/update?id='+order.id_subscription"><span class="glyphicon glyphicon-repeat"></span> Modifier l'abonnement lié</a></li> |
|
|
|
<li v-else><a class="add-subscription" :href="baseUrl+'/subscription/create?idOrder='+order.id"><span class="glyphicon glyphicon-plus"></span><span class="glyphicon glyphicon-repeat"></span>Créer un abonnement</a></li> |
|
|
@@ -549,7 +526,7 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<div class="info-box-content"> |
|
|
|
<span class="info-box-text">Montant</span> |
|
|
|
<span class="info-box-number"> |
|
|
|
{{ order.amount.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }} |
|
|
|
{{ order.amount.toFixed(2)+' €' }} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -639,19 +616,7 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</div> |
|
|
|
|
|
|
|
<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>--> |
|
|
|
|
|
|
|
<!--<span class="label label-success" v-if="order.amount_paid == order.amount"> </span> |
|
|
|
<span class="label label-default" v-else-if="order.amount_paid == 0"> </span>--> |
|
|
|
|
|
|
|
<!--<span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">débité</span> |
|
|
|
<span class="label label-default input-group-addon" v-else-if="order.amount_paid == 0">non débité</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 à débiter</span>--> |
|
|
|
</script> |
|
|
|
|
|
|
|
<!-- template for the order-form component --> |
|
|
@@ -694,13 +659,6 @@ $this->setPageTitle('Distributions') ; |
|
|
|
<option v-for="pointSale in pointsSale" v-if="pointSale.pointSaleDistribution[0].delivery == 1" :value="pointSale.id"">{{ pointSale.name }}</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<!--<label class="control-label" for="select-mean-payment">Moyen de paiement</label> |
|
|
|
<select class="form-control" id="select-mean-payment" v-model="order.mean_payment"> |
|
|
|
<option value="0">--</option> |
|
|
|
<option v-for="(wordingMeanPayment, keyMeanPayment) in meansPayment" :value="keyMeanPayment">{{ wordingMeanPayment }}</option> |
|
|
|
</select>--> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="control-label" for="textarea-comment">Commentaire</label> |
|
|
|
<textarea class="form-control" id="textarea-comment" v-model="order.comment"></textarea> |
|
|
@@ -789,15 +747,6 @@ $this->setPageTitle('Distributions') ; |
|
|
|
</modal> |
|
|
|
</script> |
|
|
|
|
|
|
|
<script type="text/x-template" id="order-state-payment"> |
|
|
|
<div class="input-group"> |
|
|
|
<span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">payé</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-warning input-group-addon" v-else-if="order.amount_paid < order.amount">reste à débiter</span> |
|
|
|
</div> |
|
|
|
</script> |
|
|
|
|
|
|
|
<!-- template for the modal component --> |
|
|
|
<script type="text/x-template" id="modal-template"> |
|
|
|
<transition name="modal"> |