sharh added

This commit is contained in:
2026-05-29 17:00:29 +03:30
parent e86ba672ea
commit 847b856078
3 changed files with 11 additions and 5 deletions
@@ -221,7 +221,8 @@ class CustomerController extends SuperController
$tahesab->walletGold([
'customer_id'=> $customer->id,
'value'=> $gift_for_inviter,
'direction'=> 0
'direction'=> 0,
'desc' => 'پاداش بابت معرفی'
]);
}catch (\Exception $e){
return response($e->getMessage(), 500);
@@ -270,7 +271,8 @@ class CustomerController extends SuperController
$tahesab->walletGold([
'customer_id'=> $customer->id,
'value'=> $gift_for_inviter,
'direction'=> 0
'direction'=> 0,
'desc' => 'پاداش بابت ثبت نام'
]);
}catch (\Exception $e){
return response($e->getMessage(), 500);
@@ -342,7 +342,9 @@ class TahesabController extends Controller
1, //MazanehIsMesghalOrGeram_0_1
1, //IsMotefaregheOrAbshode_0_1
$data['direction'] == 0 ? (int)$prices['buy'] * $amount : (int)$prices['sell'] * $amount, //MablaghKol
$data['direction'] == 0 ? "خرید آبشده" : "فروش آبشده",//Sharh
!empty($data['desc'])
? $data['desc']
: (($data['direction'] ?? null) == 0 ? "خرید آبشده" : "فروش آبشده"),//Sharh
"Code_Factor",
"", //HavalehBe_Mcode
"", //MultiRadif