NASER fix tahesab issue for buy and sale
This commit is contained in:
@@ -77,12 +77,12 @@ class TahesabController extends Controller
|
||||
$data['product']['metal_id'] == 1 ? 750 : "", //Ayar
|
||||
0,
|
||||
"",
|
||||
$data['direction'] == 1 ? 0 : 1, //BuyOrSale_0_1
|
||||
$data['direction'] == 1 ? 1 : 0, //BuyOrSale_0_1
|
||||
(int)$data['price'], //Mazaneh
|
||||
1, //MazanehIsMesghalOrGeram_0_1
|
||||
1, //IsMotefaregheOrAbshode_0_1
|
||||
(int)$data['total_price_original'], //MablaghKol
|
||||
$data['direction'] == 1 ? "خرید آبشده" : "فروش آبشده",
|
||||
(int)$data['total_price'], //MablaghKol
|
||||
$data['direction'] == 1 ? "خرید آبشده" : "فروش آبشده", //sharh
|
||||
"Code_Factor",
|
||||
"", //HavalehBe_Mcode
|
||||
"", //MultiRadif
|
||||
|
||||
@@ -188,7 +188,7 @@ class WalletController extends Controller
|
||||
//send to tahesan
|
||||
if($this->Config('send_to_tahesab') == "true"){
|
||||
try {
|
||||
$data['direction'] = $deposit ? 0 : 1;
|
||||
$data['direction'] = $deposit ? 1 : 2;
|
||||
$tahesab = new TahesabController();
|
||||
$tahesab->walletGold($data);
|
||||
}catch (\Exception $e){
|
||||
|
||||
Reference in New Issue
Block a user