You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_orders.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="panel panel-default">
  2. <div class="panel-heading">
  3. Commandes
  4. </div>
  5. <div class="panel-body">
  6. <table v-if="ordersUpdateArray && ordersUpdateArray.length > 0" class="table table-bordered">
  7. <thead>
  8. <tr>
  9. <th>Date</th>
  10. <th v-if="taxRateProducer != 0">Montant (TTC)</th>
  11. <th v-else>Montant</th>
  12. <th v-if="document.status == 'draft'"></th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <tr v-for="order in ordersUpdateArray">
  17. <td>{{ order.name }}</td>
  18. <td>{{ formatPrice(order.amount_with_tax) }}</td>
  19. <td v-if="document.status == 'draft'">
  20. <a class="btn btn-default" href="javascript:void(0);" @click="deleteOrderFromDocument"
  21. :data-id="order.id">
  22. <span class="glyphicon glyphicon-trash"></span>
  23. </a>
  24. </td>
  25. </tr>
  26. </tbody>
  27. </table>
  28. <div v-else class="alert alert-warning">Aucune commande associée.</div>
  29. <div v-if="document.status == 'draft'" id="order-add">
  30. <div class="col-md-8">
  31. <select class="form-control" v-model="orderAddId">
  32. <option value="0" selected="selected">--</option>
  33. <option v-for="order in ordersCreateArray" :value="order.id">
  34. {{ order.name }}
  35. </option>
  36. </select>
  37. </div>
  38. <div class="col-md-4">
  39. <button class="btn btn-primary" value="Ajouter" @click="submitOrderAddToDocument">Ajouter</button>
  40. <button class="btn btn-danger" value="Ignorer" @click="submitOrderIgnoreWhenInvoicing">Ignorer</button>
  41. </div>
  42. </div>
  43. </div>
  44. </div>