fix some bugs 2
This commit is contained in:
@@ -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', '')));
|
||||
|
||||
Reference in New Issue
Block a user