billing fix up

This commit is contained in:
omair saleh
2022-09-20 08:49:48 +08:00
parent 1ea081d831
commit f16a843197
2 changed files with 2 additions and 2 deletions
@@ -17,7 +17,7 @@ class DoesNotHaveTransactionType implements Filter
return $builder->whereDoesntHave('transactions', function (Builder $query) use($value) {
$query->where('type', $value);
})->whereHas('containers', function ($query){
return $query->whereDate('loading_date', '>=', Carbon::parse('01-01-2022'));
return $query->whereDate('loading_date', '>=', Carbon::parse('01-09-2022'));
});
}
}
@@ -118,7 +118,7 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic
$center_postcode_constant = $this->fetchesSegmentConstant->execute(['segment_id' => 1, 'reference' => SegmentConstants::CENTER_POSTCODE]);
$outstation_postcode_constant = $this->fetchesSegmentConstant->execute(['segment_id' => 1, 'reference' => SegmentConstants::OUTSTATION_POSTCODE]);
$noMinimumCharge = $connection->segments()->where('segments.id', 7)->first();
$noMinimumCharge = $connection->segments()->where('segments.id', 2)->first();
$base_price = 0;
$warehouse_rate = 0;