diff --git a/resources/assets/images/alipay_logo.png b/resources/assets/images/alipay_logo.png new file mode 100644 index 00000000..a2949aef Binary files /dev/null and b/resources/assets/images/alipay_logo.png differ diff --git a/resources/assets/vue/components/bookings/elements/DownloadTransactionsReportComponent.vue b/resources/assets/vue/components/bookings/elements/DownloadTransactionsReportComponent.vue index a5b78afe..c808dae9 100644 --- a/resources/assets/vue/components/bookings/elements/DownloadTransactionsReportComponent.vue +++ b/resources/assets/vue/components/bookings/elements/DownloadTransactionsReportComponent.vue @@ -70,10 +70,8 @@ export default { if (this.$refs.endDatePicker) { const startDate = new Date(date.split('-').reverse().join('-')); const adjustedEndDate = new Date(startDate); - // adjustedEndDate.setDate(startDate.getDate() + this.maxDays); this.$refs.endDatePicker.setStartDate(adjustedEndDate); } - // this.endDate = ''; this.isValidRange = false; } }, @@ -90,7 +88,7 @@ export default { const end = new Date(this.endDate.split('-').reverse().join('-')); const difference = Math.floor((end - start) / (1000 * 60 * 60 * 24)); - this.isValidRange = difference >= 0 && difference <= 14; + this.isValidRange = difference >= 0 && difference <= this.maxDays; return this.isValidRange; } return false; diff --git a/resources/assets/vue/components/bookings/elements/ShowWhiteFormTransactionsComponent.vue b/resources/assets/vue/components/bookings/elements/ShowWhiteFormTransactionsComponent.vue index a163dab1..3eb29a1d 100644 --- a/resources/assets/vue/components/bookings/elements/ShowWhiteFormTransactionsComponent.vue +++ b/resources/assets/vue/components/bookings/elements/ShowWhiteFormTransactionsComponent.vue @@ -78,10 +78,8 @@ export default { if (this.$refs.endDatePicker) { const startDate = new Date(date.split('-').reverse().join('-')); const adjustedEndDate = new Date(startDate); - // adjustedEndDate.setDate(startDate.getDate() + this.maxDays); this.$refs.endDatePicker.setStartDate(adjustedEndDate); } - // this.endDate = ''; this.isValidRange = false; } }, @@ -100,7 +98,7 @@ export default { const end = new Date(this.endDate.split('-').reverse().join('-')); const difference = Math.floor((end - start) / (1000 * 60 * 60 * 24)); - this.isValidRange = difference >= 0 && difference <= 14; + this.isValidRange = difference >= 0 && difference <= this.maxDays; return this.isValidRange; } return false;