From 2a5c215f40dc2388c2d875091669443fd2df7566 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 17 Mar 2025 17:01:59 -0300 Subject: [PATCH] Restando devoluciones al total --- app/Subpedido.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Subpedido.php b/app/Subpedido.php index f1c9bbc..832c2e1 100644 --- a/app/Subpedido.php +++ b/app/Subpedido.php @@ -43,7 +43,7 @@ class Subpedido extends Model public function total() { - return ceil($this->totalBarrial() + $this->totalCentral()); + return $this->totalBarrial() + $this->totalCentral() - $this->devoluciones_total; } public function totalBarrial()