diff --git a/app/Http/Resources/SubpedidoResource.php b/app/Http/Resources/SubpedidoResource.php index e83492f..bb4564c 100644 --- a/app/Http/Resources/SubpedidoResource.php +++ b/app/Http/Resources/SubpedidoResource.php @@ -17,11 +17,11 @@ class SubpedidoResource extends JsonResource return [ 'id' => $this->id, 'nombre' => $this->nombre, - 'subtotal_productos' => number_format($this->getSubtotalProductos(),2), - 'subtotal_bonos' => number_format($this->getSubtotalBonos(),2), + 'subtotal_productos' => number_format($this->getSubtotalProductos(),0), + 'subtotal_bonos' => number_format($this->getSubtotalBonos(),0), 'bonos_de_transporte' => $this->cantidadBDT(), - 'subtotal_bonos_de_transporte' => number_format($this->getSubtotalBDT(),2), - 'total' => number_format($this->getTotal(),2), + 'subtotal_bonos_de_transporte' => number_format($this->getSubtotalBDT(),0), + 'total' => number_format($this->getTotal(),0), 'grupo_de_compra' => $this->grupoDeCompra, 'productos' => $this->productos ]; diff --git a/public/js/chismosa.js b/public/js/chismosa.js index 7b85c05..581d270 100644 --- a/public/js/chismosa.js +++ b/public/js/chismosa.js @@ -4,7 +4,7 @@ Vue.component('chismosa', { - + @@ -13,7 +13,7 @@ Vue.component('chismosa', { - + @@ -82,7 +82,7 @@ Vue.component('producto-row', { -
ProdProducto C $
BTRB. Transporte {{ this.subpedido.bonos_de_transporte }} {{ this.subpedido.subtotal_bonos_de_transporte }}