Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-05-20 13:17:14 +03:00
parent dacd3aefa9
commit 295924cf1e
16 changed files with 1500 additions and 601 deletions
@@ -18,7 +18,7 @@ export const useProductionProductCostingDefaultQtyStore = defineStore('productio
const saving = ref(false)
const error = ref('')
// draftByNo: { [nHammaddeTuruNo]: { lDefaultMiktar, bAktif } }
// draftByNo: { [nHammaddeTuruNo]: { lDefaultMiktar } }
const draftByNo = ref({})
const persistTimer = ref(0)
@@ -94,12 +94,11 @@ export const useProductionProductCostingDefaultQtyStore = defineStore('productio
return {
...row,
lDefaultMiktar: typeof draft.lDefaultMiktar === 'number' ? draft.lDefaultMiktar : row?.lDefaultMiktar,
bAktif: typeof draft.bAktif === 'boolean' ? draft.bAktif : row?.bAktif,
__dirty: true
}
}
async function fetch ({ search = '', onlyActive = true, limit = 2000 } = {}) {
async function fetch ({ search = '', limit = 2000 } = {}) {
loading.value = true
error.value = ''
try {
@@ -136,8 +135,7 @@ export const useProductionProductCostingDefaultQtyStore = defineStore('productio
const patch = draftByNo.value?.[String(no)] || {}
return {
nHammaddeTuruNo: Number(no),
lDefaultMiktar: Number(patch.lDefaultMiktar || 0),
bAktif: typeof patch.bAktif === 'boolean' ? patch.bAktif : undefined
lDefaultMiktar: Number(patch.lDefaultMiktar || 0)
}
}).filter(it => it.nHammaddeTuruNo > 0 && it.lDefaultMiktar > 0)