debug invoice

This commit is contained in:
omair saleh
2022-09-22 13:34:56 +08:00
parent b6fc042d07
commit 0493057805
@@ -128,10 +128,11 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic
$state_select = '';
$segment_price = $connection->segments()->whereHas('constants')->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;
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);