From 6bdcc007fcb8f46c1b6b63d6281c2c576f956b26 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 22 Sep 2022 13:32:44 +0800 Subject: [PATCH] debug invoice --- .../ControllersLogic/CreateShippingInvoiceTransactionLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php index 54428ead..a21b56cf 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php @@ -128,7 +128,7 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic $state_select = ''; $segment_price = $connection->segments()->whereHas('constants')->get()->map(function($segment){ - dd($segment->constants()->first()->value); + dd($segment->constants()->first()->value[0]); return (float) $segment->constants()->first()->value[0]; })->sort()->first(); $segment_price = $segment_price ? $segment_price : 0;