سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 01:45 UTC
fix: retain source freeze if rejection marker cleanup cannot sync
davoodmehraban89 committed
Nov 17, 2026 at 14:11 UTC
6403fe55f223c3dd6a6ae7564a66bce696d7dbfa
1 file changed
+1
-1
js/journal-rpc.js
+1
-1
@@ -249,7 +249,7 @@ async function jeRpcAutoPost(kind,sourceId){
249
if(err?.code||err?.rpcSubmitted===false){
250
const failedSource=jeRpcSourceRecord(collection,sourceId);
251
if(failedSource){delete failedSource.accountingPostingPending;delete failedSource.accountingPostingPendingAt;
252
- try{await jeRpcPersistSourceRecord(collection,sourceId);}catch(clearErr){err.pendingMarkerClearError=clearErr?.message||String(clearErr);}}
252
+ try{await jeRpcPersistSourceRecord(collection,sourceId);}catch(clearErr){failedSource.accountingPostingPending=true;failedSource.accountingPostingPendingAt=failedSource.accountingPostingPendingAt||new Date().toISOString();err.pendingMarkerClearError=clearErr?.message||String(clearErr);}}
253
}
254
throw err;
255
}