fix report 2

This commit is contained in:
2026-06-24 01:32:32 +03:30
parent 64a14701c7
commit 38dd8253f0
4 changed files with 190 additions and 24 deletions
+14
View File
@@ -244,6 +244,20 @@ class ConfigService
return $metalId > 0 ? $metalId : 1;
}
/** عنوان محصول(ات) متصل به کیف اصلی — ترتیب همان main_wallet_products */
public function mainWalletProductLabels(): string
{
$titles = [];
foreach ($this->mainWalletProductIds() as $productId) {
$title = Product::query()->whereKey($productId)->value('title');
if ($title !== null && trim((string) $title) !== '') {
$titles[] = trim((string) $title);
}
}
return implode(' و ', $titles);
}
/**
* شناسه محصول آبشده: اول settings، بعد const.
* مقدار settings می‌تواند id عددی (مثل 13) یا reading_method (مثل estjt_...) باشد.