update
This commit is contained in:
@ -268,7 +268,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
let startdate = firstDayOfMonth.toISOString().split('T')[0];
|
||||
let enddate = today.toISOString().split('T')[0];
|
||||
let transactioncode = '';
|
||||
let transactionstatus = '';
|
||||
// let transactionstatus = '';
|
||||
let type = ''
|
||||
|
||||
if (Array.isArray(filter)) {
|
||||
@ -283,9 +283,9 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
transactioncode = f.value;
|
||||
}
|
||||
|
||||
if (f.id === 'status' && f.value) {
|
||||
transactionstatus = f.value;
|
||||
}
|
||||
// if (f.id === 'status' && f.value) {
|
||||
// transactionstatus = f.value;
|
||||
// }
|
||||
|
||||
if (f.id === 'kind' && f.value) {
|
||||
type = f.value;
|
||||
@ -307,9 +307,9 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
};
|
||||
}
|
||||
|
||||
if (transactionstatus) {
|
||||
formattedFilter["Transactions.status"] = transactionstatus;
|
||||
}
|
||||
// if (transactionstatus) {
|
||||
// formattedFilter["Transactions.status"] = transactionstatus;
|
||||
// }
|
||||
|
||||
if (type) {
|
||||
formattedFilter["Transactions.kind"] = type;
|
||||
|
||||
Reference in New Issue
Block a user