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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user