mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 16:04:05 +00:00
debug invoice
This commit is contained in:
@@ -12,7 +12,7 @@ class CalculatesBookingTransferredAmount
|
||||
{
|
||||
|
||||
public function execute(Booking $booking, int $type){
|
||||
dd($type);
|
||||
dd($booking->transactions()->bills()->transferred()->sum('original_amount'));
|
||||
return $type === 1 ?
|
||||
$booking->transactions()->bills()->transferred()
|
||||
->selectRaw('sum(amount - service_charge - tax) as sub_total')->get()->sum('sub_total') :
|
||||
|
||||
Reference in New Issue
Block a user