Browse Source

[producer] Prise de commande : affichage des produits dont le prix est à 0 €

dev
Guillaume 3 years ago
parent
commit
04709f45df
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      producer/views/order/order.php

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

<div class="recipe" v-if="product.recipe.length">{{ product.recipe }}</div> <div class="recipe" v-if="product.recipe.length">{{ product.recipe }}</div>
</td> </td>
<td class="price-unit"> <td class="price-unit">
<template v-if="product.price_with_tax > 0">{{ formatPrice(product.price_with_tax) }}<br /><span class="unit">{{ product.wording_unit }}</span></template>
<template v-if="product.price_with_tax >= 0">{{ formatPrice(product.price_with_tax) }}<br /><span class="unit">{{ product.wording_unit }}</span></template>
</td> </td>
<td class="td-quantity"> <td class="td-quantity">
<template v-if="product.price_with_tax > 0">
<template v-if="product.price_with_tax >= 0">
<div class="input-group"> <div class="input-group">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default btn-moins" type="button" @click="productQuantityClick(product, product.unit == 'piece' ? -1 : -parseFloat(product.step))" :disabled="product.quantity_form == 0"><span class="glyphicon glyphicon-minus"></span></button> <button class="btn btn-default btn-moins" type="button" @click="productQuantityClick(product, product.unit == 'piece' ? -1 : -parseFloat(product.step))" :disabled="product.quantity_form == 0"><span class="glyphicon glyphicon-minus"></span></button>
</template> </template>
</td> </td>
<td class="price-total"> <td class="price-total">
<template v-if="product.price_with_tax > 0 && product.quantity_form > 0">
<template v-if="product.price_with_tax >= 0 && product.quantity_form > 0">
{{ formatPrice(product.price_with_tax * (product.quantity_form / product.coefficient_unit )) }} {{ formatPrice(product.price_with_tax * (product.quantity_form / product.coefficient_unit )) }}
</template> </template>
</td> </td>

Loading…
Cancel
Save