Skip to content

Commit

Permalink
fixed report custom date filter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanSenturk committed Jan 24, 2024
1 parent 44a85e0 commit 415c6ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/assets/js/components/AkauntingSearch.vue
Expand Up @@ -1059,10 +1059,12 @@ export default {
let date_format = this.convertToDarteFormat(this.dateConfig.altFormat);
key = filter.value;
value = moment(dates[0]).format(date_format) + ' to ' + moment(dates[1]).format(date_format);
this.selected_values.push({
key: 'date_range',
key: key,
value: value,
});
}
Expand Down Expand Up @@ -1117,11 +1119,11 @@ export default {
let date_format = this.convertToDarteFormat(this.dateConfig.altFormat);
date_range_value_format = moment(dates[0]).format(date_format) + ' to ' + moment(dates[1]).format(date_format);
date_range_value_format = moment(dates[0]).format(date_format) + ' to ' + moment(dates[1]).format(date_format);
this.selected_values.push({
key: 'date_range',
value: date_range_value,
key: date_range_value,
value: date_range_value_format,
});
}
Expand Down

0 comments on commit 415c6ca

Please sign in to comment.