Autosave: 20260211-161207
This commit is contained in:
parent
7f2a24bae9
commit
e405332220
BIN
assets/pasted-20260211-144653-0ba3e61f.png
Normal file
BIN
assets/pasted-20260211-144653-0ba3e61f.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
@ -398,21 +398,15 @@ class SystemSetting(models.Model):
|
|||||||
favicon = models.FileField(_("Favicon"), upload_to="business_logos/", blank=True, null=True)
|
favicon = models.FileField(_("Favicon"), upload_to="business_logos/", blank=True, null=True)
|
||||||
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user