sharh added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user