Apply Tahesab account balances to wallets with admin overwrite control.
Add inbound mande sync on customer import plus per-customer and bulk wallet-sync endpoints so previously linked accounts can catch up. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -184,6 +184,9 @@ class WalletController extends Controller
|
||||
if ((int) ($record->type ?? 0) === 22) {
|
||||
$record->title = 'تعدیل حسابداری پرگار';
|
||||
$record->unit = 'گرم';
|
||||
} elseif ((int) ($record->type ?? 0) === 23) {
|
||||
$record->title = 'تعدیل حسابداری تهحساب';
|
||||
$record->unit = 'گرم';
|
||||
} elseif ((int) ($record->type ?? 0) === 12) {
|
||||
$record->title = 'برداشت وجه نقد';
|
||||
$record->unit = 'ریال';
|
||||
@@ -883,6 +886,10 @@ class WalletController extends Controller
|
||||
return 'تعدیل حسابداری پرگار';
|
||||
}
|
||||
|
||||
if ((int) $record->type === 23) {
|
||||
return 'تعدیل حسابداری تهحساب';
|
||||
}
|
||||
|
||||
return $record->type_str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user