fix date in payment and imporove contract page.

This commit is contained in:
aminhashemi92 2025-09-08 16:55:43 +03:30
parent af40e169ae
commit 204b0aa48e
14 changed files with 295 additions and 74 deletions

View file

@ -7,6 +7,7 @@ from decimal import Decimal
from django.utils import timezone
from django.core.validators import MinValueValidator
from django.conf import settings
from _helpers.utils import jalali_converter2
User = get_user_model()
@ -372,3 +373,6 @@ class Payment(BaseModel):
except Exception:
pass
return result
def jpayment_date(self):
return jalali_converter2(self.payment_date)