Fix product performance grouped JSON build
This commit is contained in:
@@ -5060,13 +5060,31 @@ async function saveChanges () {
|
||||
|
||||
// If we created a new OnML (no-cost), switch to has-cost detail mode.
|
||||
if (isNoCostDetail.value && newOnMLNo > 0) {
|
||||
router.replace({
|
||||
await router.replace({
|
||||
name: 'production-product-costing-has-cost-detail',
|
||||
query: {
|
||||
n_onml_no: String(newOnMLNo),
|
||||
urun_kodu: String(header?.UrunKodu || productCode.value || '').trim()
|
||||
}
|
||||
})
|
||||
|
||||
$q.dialog({
|
||||
title: 'Maliyet Kaydedildi',
|
||||
message: 'Maliyeti olmayan urunler listesine donup kaldiginiz yerden devam etmek ister misiniz?',
|
||||
ok: {
|
||||
label: 'Listeye Don',
|
||||
color: 'primary',
|
||||
icon: 'arrow_back'
|
||||
},
|
||||
cancel: {
|
||||
label: 'Bu Sayfada Devam Et',
|
||||
color: 'grey-7',
|
||||
flat: true
|
||||
},
|
||||
persistent: true
|
||||
}).onOk(() => {
|
||||
router.push({ name: 'production-product-costing-no-cost' })
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
@@ -5076,6 +5094,24 @@ async function saveChanges () {
|
||||
window.setTimeout(() => {
|
||||
try { refreshLast10Warnings() } catch {}
|
||||
}, 1200)
|
||||
|
||||
$q.dialog({
|
||||
title: 'Maliyet Guncellendi',
|
||||
message: 'Mevcut maliyeti olan urunler listesine donup kaldiginiz yerden devam etmek ister misiniz?',
|
||||
ok: {
|
||||
label: 'Listeye Don',
|
||||
color: 'primary',
|
||||
icon: 'arrow_back'
|
||||
},
|
||||
cancel: {
|
||||
label: 'Bu Sayfada Devam Et',
|
||||
color: 'grey-7',
|
||||
flat: true
|
||||
},
|
||||
persistent: true
|
||||
}).onOk(() => {
|
||||
router.push({ name: 'production-product-costing-has-cost' })
|
||||
})
|
||||
} catch (e) {
|
||||
// Surface backend message (http.Error text) when available.
|
||||
const msg = String(
|
||||
|
||||
Reference in New Issue
Block a user