feat(tahesab): add local status reset before resending wiped documents

Confirm and call reset-local so the pending count includes previously successful rows, then send all as usual.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-03 13:43:16 +03:30
co-authored by Cursor
parent 62a6a91455
commit 11f60f205a
4 changed files with 84 additions and 11 deletions
@@ -16,7 +16,7 @@
</a-button>
</template>
<TahesabDocSyncBox v-if="!customerId" />
<TahesabDocSyncBox v-if="!customerId" @refreshed="onDocSyncRefreshed" />
<div
v-if="(pending?.total ?? 0) > 0"
@@ -398,6 +398,11 @@ async function loadPending() {
}
}
async function onDocSyncRefreshed() {
await loadPending()
if (docsView.value === 'failed') await loadFailedDocs()
}
async function loadFailedDocs() {
failedLoading.value = true
try {