Merge pull request #405 from expsa/zainab_trnas5

Update barcode.py
This commit is contained in:
zainab2097 2024-07-28 22:58:58 +03:00 committed by GitHub
commit e269286913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class Transaction(models.Model):
# draw_text(draw,(str(self.attachment_num) if self.attachment_num else '0')+ "رتبة المعاملة: " , (10, 140), font)
#
draw_text(draw, " رقم المعاملة : " + (self.name or ''), (10, 20), font)
draw_text(draw, " الموضوع : " + (self.subject or ''), (10, 20), font)
draw_text(draw, " الموضوع : " + (self.subject or ''), (10, 50), font)
draw_text(draw, " تاريخ المعاملة الهجري : " + (self.transaction_date_hijri or '').replace('-', '/'), (10, 60), font)
draw_text(draw, " تاريخ المعاملة الميلادي : " + (str(self.transaction_date) if self.transaction_date else '').replace('-', '/'), (10, 100), font)
draw_text(draw, " رتبة المعاملة : " + (str(self.attachment_num) if self.attachment_num else '0'), (120, 140), font)