fix profit value after each order

This commit is contained in:
2026-07-18 16:38:46 +03:30
parent 45f2d8bf70
commit b66cd5e8f9
5 changed files with 56 additions and 6 deletions
+1 -3
View File
@@ -144,9 +144,7 @@ class PargarSyncService
}
$direction = (int) ($order->direction ?? 0);
$desc = $fromCart
? 'سبد خرید'
: ($direction === 1 ? 'خرید آبشده' : 'فروش آبشده');
$desc = \App\Http\Controllers\Controller::accountingShopTradeDesc($direction, $fromCart);
return PargarSyncLog::create([
'customer_id' => $order->customer_id,