fix(wallet): use kilogram as default unit for copper exchange
This commit is contained in:
@@ -183,14 +183,14 @@ class WalletController extends Controller
|
||||
if (empty($record->title) || $record->title == "تعریف نشده") {
|
||||
|
||||
$record->title = $record->type_str;
|
||||
$record->unit = "گرم";
|
||||
$record->unit = "کیلوگرم";
|
||||
|
||||
if ((int) ($record->type ?? 0) === 22) {
|
||||
$record->title = 'تعدیل حسابداری پرگار';
|
||||
$record->unit = 'گرم';
|
||||
$record->unit = 'کیلوگرم';
|
||||
} elseif ((int) ($record->type ?? 0) === 23) {
|
||||
$record->title = 'تعدیل حسابداری تهحساب';
|
||||
$record->unit = 'گرم';
|
||||
$record->unit = 'کیلوگرم';
|
||||
} elseif ((int) ($record->type ?? 0) === 12) {
|
||||
$record->title = 'برداشت وجه نقد';
|
||||
$record->unit = 'ریال';
|
||||
|
||||
Reference in New Issue
Block a user