mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 05:53:58 +00:00
Merge branch 'dillon/90-e-invoice-e' into vapor/staging
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
namespace App\Http\Controllers\Exports;
|
||||
|
||||
|
||||
use App\Classes\Modules\Exports\Services\ExportsSalesInvoiceReport;
|
||||
use Illuminate\Http\Request;
|
||||
use Maatwebsite\Excel\Excel;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use App\Classes\General\AWSS3Helper;
|
||||
use App\Classes\Modules\Exports\Services\ExportsSalesInvoiceReport;
|
||||
use App\Classes\Modules\Exports\Services\ExportsSalesInvoiceWithRefundReport;
|
||||
use App\Classes\Modules\Exports\Services\ExportsARCreditNoteReport;
|
||||
use App\Classes\Modules\Exports\Services\ExportsCompanies;
|
||||
use App\Classes\Modules\Exports\Services\ExportsReceivePaymentDepositEntryReport;
|
||||
@@ -23,6 +24,12 @@ class ExportController
|
||||
return $this->handleExport($exporter, 'Exchange - Sales Invoice Report.xls');
|
||||
}
|
||||
|
||||
public function salesInvoicesWithRefund(Request $request){
|
||||
[$startDate, $endDate] = $this->getValidatedDates($request);
|
||||
$exporter = new ExportsSalesInvoiceWithRefundReport($startDate, $endDate);
|
||||
return $this->handleExport($exporter, 'Exchange - Sales Invoice Report (with refund).xls');
|
||||
}
|
||||
|
||||
public function companies(Request $request){
|
||||
[$startDate, $endDate] = $this->getValidatedDates($request);
|
||||
$exporter = new ExportsCompanies($startDate, $endDate);
|
||||
|
||||
Reference in New Issue
Block a user