mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
fix report download & payments delete issue
This commit is contained in:
@ -121,7 +121,7 @@ export default {
|
||||
this.loadProfitLossLink(this.url + '&download=true')
|
||||
},
|
||||
methods: {
|
||||
...mapActions('profitLossReport',[
|
||||
...mapActions('profitLossReport', [
|
||||
'loadProfitLossLink'
|
||||
]),
|
||||
getThisDate (type, time) {
|
||||
@ -203,11 +203,8 @@ export default {
|
||||
if (!this.getReports()) {
|
||||
return false
|
||||
}
|
||||
if (navigator.appVersion.indexOf('Mac') !== -1) {
|
||||
this.url += '&download=true'
|
||||
} else {
|
||||
window.open(this.getReportUrl + '&download=true')
|
||||
}
|
||||
|
||||
window.open(this.getReportUrl + '&download=true')
|
||||
setTimeout(() => {
|
||||
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
||||
}, 200)
|
||||
|
||||
Reference in New Issue
Block a user