fix report 2
This commit is contained in:
@@ -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_...) باشد.
|
||||
|
||||
Reference in New Issue
Block a user