mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
debug invoice
This commit is contained in:
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user