debug invoice

This commit is contained in:
omair saleh
2022-09-22 13:40:22 +08:00
parent d824075e51
commit 47fdac08aa
@@ -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;