code for statement import invoice mapping

This commit is contained in:
Steve Ng
2023-10-06 10:59:36 +08:00
parent ddc1df0d6e
commit bc5d1eff88
10 changed files with 392 additions and 31 deletions
@@ -15,6 +15,8 @@ use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Excel;
use App\Classes\Modules\Exports\Services\ExportsImportedInvoiceMappeds;
use App\Models\TransactionMappingLog;
class ExportCustomersToExcelController
{
@@ -75,4 +77,10 @@ class ExportCustomersToExcelController
ob_end_clean();
return $response;
}
public function importedInvoiceMapped(ExportsImportedInvoiceMappeds $exportsImportedInvoiceMappeds, Request $request) {
$response = $exportsImportedInvoiceMappeds->download('InvoiceMapped.xls', Excel::XLS, ['Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']);
ob_end_clean();
return $response;
}
}