- added between dates when exporting excel transaction history
This commit is contained in:
@@ -2208,7 +2208,7 @@ export class TransactionService {
|
||||
});
|
||||
}
|
||||
|
||||
async exportDataExcel(startDate, user: any, currentUser: any) {
|
||||
async exportDataExcel(startDate, endDate, user: any, currentUser: any) {
|
||||
const userData = await this.userService.findExist(user);
|
||||
|
||||
let userBySupperior = [];
|
||||
@@ -2285,7 +2285,7 @@ export class TransactionService {
|
||||
'transaction.created_at between :startDate and :enDate',
|
||||
{
|
||||
startDate: new Date (`${startDate} 00:00:00`),
|
||||
enDate: new Date (`${startDate} 23:59:59`),
|
||||
enDate: new Date (`${endDate} 23:59:59`),
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -2413,7 +2413,7 @@ export class TransactionService {
|
||||
tmp.file(
|
||||
{
|
||||
discardDescriptor: true,
|
||||
prefix: `Mutasi Transaksi ${userData?.partner.name} ${startDate}`,
|
||||
prefix: `Mutasi Transaksi ${userData?.partner.name} ${startDate} - ${endDate}`,
|
||||
postfix: '.xlsx',
|
||||
mode: parseInt('0600', 8),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user