Autosave: 20260211-161207

This commit is contained in:
Flatlogic Bot 2026-02-11 16:12:08 +00:00
parent 7f2a24bae9
commit e405332220
3 changed files with 9 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -399,20 +399,14 @@ class SystemSetting(models.Model):
vat_number = models.CharField(_("VAT Number"), max_length=50, blank=True) vat_number = models.CharField(_("VAT Number"), max_length=50, blank=True)
registration_number = models.CharField(_("Registration Number"), max_length=50, blank=True) registration_number = models.CharField(_("Registration Number"), max_length=50, blank=True)
# Financial Settings class Meta:
allow_zero_stock_sales = models.BooleanField(_("Allow selling items with 0 stock"), default=False) permissions = [
("view_dashboard", "Can view dashboard"),
# Loyalty Settings ("view_pos", "Can access POS"),
loyalty_enabled = models.BooleanField(_("Enable Loyalty System"), default=False) ("view_reports", "Can view reports"),
points_per_currency = models.DecimalField(_("Points Earned per Currency Unit"), max_digits=10, decimal_places=2, default=1.0) ("view_accounting", "Can view accounting"),
currency_per_point = models.DecimalField(_("Currency Value per Point"), max_digits=10, decimal_places=3, default=0.010) ("view_hr", "Can view HR"),
min_points_to_redeem = models.PositiveIntegerField(_("Minimum Points to Redeem"), default=100) ]
# WhatsApp (Wablas) Settings
wablas_enabled = models.BooleanField(_("Enable WhatsApp Gateway"), default=False)
wablas_token = models.CharField(_("Wablas API Token"), max_length=255, blank=True)
wablas_server_url = models.URLField(_("Wablas Server URL"), blank=True, help_text="Example: https://console.wablas.com")
wablas_secret_key = models.CharField(_("Wablas Secret Key"), max_length=255, blank=True)
def __str__(self): def __str__(self):
return self.business_name return self.business_name