Browse Source

[Boutique] Commande : correctif erreur cagnotte obligatoire

feature/rotating_product
Guillaume Bourgeois 6 months ago
parent
commit
b3f51b7116
2 changed files with 9 additions and 2 deletions
  1. +2
    -2
      producer/views/order/order.php
  2. +7
    -0
      producer/web/js/vuejs/order-order.js

+ 2
- 2
producer/views/order/order.php View File

</label> </label>
</div> </div>
<div class="col-md-4" v-if="isPaymentMethodCreditActive()"> <div class="col-md-4" v-if="isPaymentMethodCreditActive()">
<template v-if="user && (pointSaleActive.credit_functioning == 'mandatory' || (pointSaleActive.credit_functioning == 'user' && user.credit_active)) && !checkCreditLimit(order) ">
<template v-if="errorCreditMandatoryAndLimit()">
<div class="alert alert-danger"> <div class="alert alert-danger">
<i class="bi bi-piggy-bank"></i> <i class="bi bi-piggy-bank"></i>
Vous devez Vous devez
</div> </div>
</div> </div>
<div class="block-actions"> <div class="block-actions">
<button class="btn btn-primary" disabled="disabled" v-if="disableConfirmButton || !oneProductOrdered()">
<button class="btn btn-primary" disabled="disabled" v-if="disableConfirmButton || errorCreditMandatoryAndLimit() || !oneProductOrdered()">
<span v-if="disableConfirmButton" class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> <span v-if="disableConfirmButton" class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Je confirme ma commande Je confirme ma commande
</button> </button>

+ 7
- 0
producer/web/js/vuejs/order-order.js View File

&& !this.isPaymentMethodCreditActiveFunctioningUser(true) && !this.isPaymentMethodCreditActiveFunctioningUser(true)
&& !this.isPaymentMethodCreditActiveFunctioningMandatory() && !this.isPaymentMethodCreditActiveFunctioningMandatory()
}, },
errorCreditMandatoryAndLimit: function() {
return this.user && (
this.pointSaleActive.credit_functioning == 'mandatory'
|| (this.pointSaleActive.credit_functioning == 'user' && user.credit_active)
)
&& !this.checkCreditLimit(this.order);
},
confirmClick: function() { confirmClick: function() {


var app = this ; var app = this ;

Loading…
Cancel
Save