Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-05-20 13:45:55 +03:00
parent 6fdc0b4ac5
commit 8975e7127b
2 changed files with 29 additions and 8 deletions

View File

@@ -85,7 +85,6 @@
@click="saveChanges"
/>
<q-btn
v-if="isNoCostDetail"
label="Kaydi Sil"
icon="delete"
dense
@@ -907,10 +906,10 @@ const hasUnsavedChanges = computed(() => {
})
const canDeleteCosting = computed(() => {
// Only allow delete for records created from no-cost flow.
// UX expectation: delete button becomes available after a costing record exists.
// Allow delete only for records created by this app's no-cost flow (we generate >= 100000).
// This avoids accidental deletion of legacy OnML records.
const n = parseInt(String(onMLNo.value || detailHeader.value?.nOnMLNo || detailHeader.value?.NOnMLNo || '0'), 10) || 0
return n > 0 && String(detailSource.value || '').trim().toLowerCase() === 'no-cost'
return n >= 100000
})
function persistLocalDraftNow () {