Merge remote-tracking branch 'origin/master'

This commit is contained in:
2026-02-14 20:08:56 +03:00
parent 7d94573bdd
commit 9e18ac1398

View File

@@ -233,7 +233,7 @@ import { useQuasar } from 'quasar'
import { useOrderListStore } from 'src/stores/OrdernewListStore'
import { useAuthStore } from 'src/stores/authStore'
import { usePermission } from 'src/composables/usePermission'
import api from 'src/services/api'
import api, { extractApiErrorDetail } from 'src/services/api'
const { canRead } = usePermission()
const canReadOrder = canRead('order')
@@ -392,8 +392,11 @@ async function printPDF (row) {
})
window.open(URL.createObjectURL(res.data), '_blank')
} catch {
$q.notify({ type: 'negative', message: 'PDF yüklenemedi' })
} catch (err) {
const detail = await extractApiErrorDetail(err)
const status = err?.status || err?.response?.status || '-'
console.error(`PDF load error [${status}] /order/pdf/${row.OrderHeaderID}: ${detail}`)
$q.notify({ type: 'negative', message: `PDF yuklenemedi (${status}): ${detail}` })
}
}
function clearFilters () {