fix some bugs from accounting 5

This commit is contained in:
2026-07-28 18:55:59 +03:30
parent 5122d7e2b7
commit 6bb9af9893
2 changed files with 166 additions and 11 deletions
+7 -1
View File
@@ -236,7 +236,13 @@ class ZarinSyncService
$desc = (string) $row->desc;
if (str_contains($desc, 'شارژ کیف') || str_contains($desc, 'برداشت از کیف')) {
if (str_contains($desc, 'شارژ') || str_contains($desc, 'دشارژ') || str_contains($desc, 'برداشت از کیف') || str_contains($desc, 'شارژ کیف')) {
return 'walletGold';
}
// نوع تعدادی ذخیره‌شده روی ردیف sync
$type = (string) $row->type;
if (in_array($type, ['سکه', 'شمش', 'کارساخته'], true)) {
return 'walletGold';
}