NASER fix tahesab issue for buy and sale

This commit is contained in:
gholak tala
2026-04-13 13:06:38 +00:00
parent def95cf405
commit 3fe4625df3
2 changed files with 4 additions and 4 deletions
@@ -77,12 +77,12 @@ class TahesabController extends Controller
$data['product']['metal_id'] == 1 ? 750 : "", //Ayar $data['product']['metal_id'] == 1 ? 750 : "", //Ayar
0, 0,
"", "",
$data['direction'] == 1 ? 0 : 1, //BuyOrSale_0_1 $data['direction'] == 1 ? 1 : 0, //BuyOrSale_0_1
(int)$data['price'], //Mazaneh (int)$data['price'], //Mazaneh
1, //MazanehIsMesghalOrGeram_0_1 1, //MazanehIsMesghalOrGeram_0_1
1, //IsMotefaregheOrAbshode_0_1 1, //IsMotefaregheOrAbshode_0_1
(int)$data['total_price_original'], //MablaghKol (int)$data['total_price'], //MablaghKol
$data['direction'] == 1 ? "خرید آبشده" : "فروش آبشده", $data['direction'] == 1 ? "خرید آبشده" : "فروش آبشده", //sharh
"Code_Factor", "Code_Factor",
"", //HavalehBe_Mcode "", //HavalehBe_Mcode
"", //MultiRadif "", //MultiRadif
@@ -188,7 +188,7 @@ class WalletController extends Controller
//send to tahesan //send to tahesan
if($this->Config('send_to_tahesab') == "true"){ if($this->Config('send_to_tahesab') == "true"){
try { try {
$data['direction'] = $deposit ? 0 : 1; $data['direction'] = $deposit ? 1 : 2;
$tahesab = new TahesabController(); $tahesab = new TahesabController();
$tahesab->walletGold($data); $tahesab->walletGold($data);
}catch (\Exception $e){ }catch (\Exception $e){