- added form for between dates transaction history excel export

This commit is contained in:
2023-05-04 00:58:10 +07:00
parent f3eefae54e
commit e1ce45848a
3 changed files with 25 additions and 8 deletions

View File

@@ -285,7 +285,7 @@ export class Transaction {
}).then((response) => {
var fileDownload = require('react-file-download');
message.success("Success export");
fileDownload(response.data, `Mutasi Transaki ${data.userDetail.name} ${date.dateStart}.xlsx`);
fileDownload(response.data, `Mutasi Transaki ${data.userDetail.name} ${date.dateStart} - ${date.dateEnd}.xlsx`);
return fileDownload;
}).catch(function (error) {
message.error("No data to export");