From 47fdac08aaf46d4e429293af93dfecfc29fad269 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 22 Sep 2022 13:40:22 +0800 Subject: [PATCH] debug invoice --- .../ControllersLogic/CreateShippingInvoiceTransactionLogic.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php index d4f40bf6..0906275a 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php @@ -130,7 +130,6 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic $segment_price = $connection->segments()->whereHas('constants', function($query){ return $query->where('reference', SegmentConstants::CUSTOM_PRICE); })->get()->map(function($segment){ - if(!is_array($segment->constants()->first()->value)) dd($segment->constants()->first()->value); return (float) $segment->constants()->first()->value[0]; })->sort()->first(); $segment_price = $segment_price ? $segment_price : 0;