Update barcode.py

This commit is contained in:
zainab2097 2024-07-30 11:54:00 +03:00 committed by GitHub
parent f42f580d6c
commit 27b1e9bd91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class Transaction(models.Model):
h_date =" تاريخ المعاملة الهجري : " +(str(self.transaction_date) if self.transaction_date else '')
datem = " تاريخ المعاملة الميلادي : "+ (str(self.transaction_date) if self.transaction_date else '')
rank = " رتبة المعاملة : "+(str(self.attachment_num) if self.attachment_num else '0')
full_text = transaction_text + "\n" + subject_text.center(60)+"\n"+h_date+'\n'+datem+'\n'+rank.center(50)
full_text = transaction_text + "\n" + subject_text.center(100)+"\n"+h_date+'\n'+datem+'\n'+rank.center(60)
def draw_text(draw, text, position, font, alignment="left"):
text_size = draw.textsize(text, font=font)