mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix transaction export
This commit is contained in:
@@ -25,7 +25,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
*/
|
||||
public function query()
|
||||
{
|
||||
return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL]);
|
||||
return Transaction::whereMonth('created_at', 4)->whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,8 +68,6 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
|
||||
$company = $booking->company;
|
||||
|
||||
if(!$company instanceof Company) dd($company);
|
||||
|
||||
return [
|
||||
$company->reference,
|
||||
$booking ? $booking->marking : '',
|
||||
|
||||
Reference in New Issue
Block a user