fix some bugs from accounting 5
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user