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
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){