fix some bugs from tahesab

This commit is contained in:
2026-07-29 14:58:33 +03:30
parent 77e0ba0bb3
commit dd77e2ce81
5 changed files with 123 additions and 6 deletions
@@ -502,7 +502,7 @@ class TahesabController extends Controller
'amount' => $mapper->isCountDoc($product) ? $count : $vazn,
'order_id' => $data['order']['id'] ?? null,
'date' => $data['pay_at'] ?? Carbon::now(),
'type' => $mapper->metalLabel($product),
'type' => $mapper->syncTypeLabel($product),
'created_at' => Carbon::now(),
'data' => json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
]);
@@ -891,7 +891,7 @@ class TahesabController extends Controller
'desc' => $sharh,
'amount' => $mapper->isCountDoc($product) ? $count : $vazn,
'date' => Carbon::now(),
'type' => $mapper->metalLabel($product),
'type' => $mapper->syncTypeLabel($product),
'created_at' => Carbon::now(),
'withdraw_id' => $data['withdraw_id'] ?? null,
'data' => json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),