fix charge account

This commit is contained in:
2026-06-21 13:17:57 +03:30
parent 97245a9b81
commit 67f1b0ded0
3 changed files with 40 additions and 9 deletions
@@ -444,8 +444,8 @@ class TahesabController extends Controller
"created_at" => Carbon::now(),
]);
$price = new ReportController();
$prices = $price->lastPrice();
$prices = app(ReportController::class)->lastPrice(request());
$mazaneh = $isDeposit ? (int) $prices['buy'] : (int) $prices['sell'];
$mablaghKol = (int) round($mazaneh * $amount);
$sharh = !empty($data['desc'])