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
-2
@@ -128,11 +128,10 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic
|
||||
$state_select = '';
|
||||
|
||||
$segment_price = $connection->segments()->whereHas('constants')->get()->map(function($segment){
|
||||
dd($segment->constants()->first()->value[0]);
|
||||
return (float) $segment->constants()->first()->value[0];
|
||||
})->sort()->first();
|
||||
$segment_price = $segment_price ? $segment_price : 0;
|
||||
|
||||
dd($segment_price);
|
||||
$packing_list_drop_date = PackingList::where('reference', $packing_list->reference)->where('type', 1)->first()->transports->first()->drop_date->format('Y-m-d');
|
||||
$base_price = $this->getConstantByKey($base_price_constant, $packing_list_drop_date);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user