From 6f532eaf05a2767d077f75aaf348c80be61f585d Mon Sep 17 00:00:00 2001 From: nat Date: Thu, 24 Feb 2022 19:07:58 -0300 Subject: [PATCH] ver dinero total del pedido en la barra de navegacion (total de chismosa) --- app/Http/Resources/SubpedidoResource.php | 8 ++--- public/assets/chismosa.png | Bin 0 -> 2497 bytes public/js/app.js | 33 ++++++++++++++++---- public/js/subpedidos-create.js | 10 ++++-- resources/views/subpedidos_create.blade.php | 2 +- routes/web.php | 10 ++++++ 6 files changed, 49 insertions(+), 14 deletions(-) create mode 100644 public/assets/chismosa.png diff --git a/app/Http/Resources/SubpedidoResource.php b/app/Http/Resources/SubpedidoResource.php index e6361ba..f659379 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' => $this->getSubtotalProductos(), - 'subtotal_bonos' => $this->getSubtotalBonos(), + 'subtotal_productos' => number_format($this->getSubtotalProductos(),2), + 'subtotal_bonos' => number_format($this->getSubtotalBonos(),2), 'bonos_de_transporte' => $this->cantidadBDT(), - 'subtotal_bonos_de_transporte' => $this->getSubtotalBDT(), - 'total' => $this->getTotal(), + 'subtotal_bonos_de_transporte' => number_format($this->getSubtotalBDT(),2), + 'total' => number_format($this->getTotal(),2), 'grupo_de_compra' => $this->grupoDeCompra ]; } diff --git a/public/assets/chismosa.png b/public/assets/chismosa.png new file mode 100644 index 0000000000000000000000000000000000000000..daf7c26aec74bda8405de57eea7525c9c408fdaf GIT binary patch literal 2497 zcma)83p7;w8s9S}4MWXX<58h$D#k%kh-mVd9V5#0xZw(oVss?$Ojk9;Y1)Hw-RqFN z_P8SH5~0@dNOd~r6lM-ZG?Wx>)_?#1-}n1|-|zeWd(Bn1 z1CFZ7>y-fjP-QwX4gmlLM4m3ZBC@0Ma-9Tu2@Z5{a0~SF0{~h|WQz5E1v_#=-4+NY z5sc&9gYwv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