mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
debug invoice
This commit is contained in:
+4
-2
@@ -126,8 +126,10 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic
|
||||
$minimum_cbm = 0.3;
|
||||
$segment_price = 0;
|
||||
$state_select = '';
|
||||
dd($connection->segments);
|
||||
$segment_price = $connection->segments()->whereHas('constants')->get()->map(function($segment){
|
||||
|
||||
$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();
|
||||
|
||||
Reference in New Issue
Block a user