fix some bugs 2

This commit is contained in:
2026-07-21 21:23:26 +03:30
parent fa15b80c42
commit 227534a493
15 changed files with 895 additions and 2 deletions
+11
View File
@@ -730,6 +730,17 @@ class ConfigService
public const ACCOUNTING_PARGAR = 'pargar';
/** none | tahesab | pargar — از setting accounting_provider */
public function isConditionalOrderEnabled(): bool
{
return $this->getBool('enable_conditional_order', false);
}
/** کارمزد ریالی هر بار ثبت تریگر سفارش شرطی */
public function conditionalOrderFee(): int
{
return max(0, $this->getInt('fee_conditional_order', 0));
}
public function accountingProvider(): string
{
$provider = strtolower(trim($this->getString('accounting_provider', '')));