fix pargar mande

This commit is contained in:
2026-07-25 12:02:58 +03:30
parent 52ff3a088d
commit 22a5e566b4
5 changed files with 251 additions and 58 deletions
+5
View File
@@ -51,6 +51,11 @@ class PargarSyncService
$update['data'] = json_encode($payload, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
}
// لحظهٔ ثبت سند در پرگار: ماندهٔ قدیمی‌تر از این لحظه دیگر معتبر نیست
if (PargarSyncLog::hasConfirmedAtColumn()) {
$update['confirmed_at'] = now();
}
PargarSyncLog::where('id', $log->id)->update($update);
}