invoice date timestamp not work with VAT app #6
Comments
Hello Faris Al samawi, I think that I did not understand your issue well, can you write the code in which you encounter the issue or a similar code that explains the issue, and for clarify as you see in variables the invoice_date is received as timestamp and it will be returned to you when you call it as datetime object, This is what I understood from document security requirements for electronic invoices on page No. 23 "Time stamp of the invoice (date and time) 3" Lines 105 to 112 in d9f8465
|
Hi @TheAwiteb This is my code for create qrcode :
when test my code using fatoora sdk command invoice date return as timestamp My Fixed Patch:
2- Tax Proprity:
3- invoice date setter and getter:
4- TestCase:
5- Result with Vat App: I am clone your repo and implement changes. |
Also for real application (with framework such as django) save qrcode for invoice order as image is inexpedient, ( this required handle and access to static and media files using django) The best solution is render image as image data in fly and render it in django template:
django html template (TestCase):
Best regards, |
@EngFarisAlsmawi |
you have issue with invoice date timestamp
invoice date must be datetime as string not timestamp float..
datetime must be convert to string using this patch code:
invoice_date.isoformat()[:-6] + "Z",
Thank you for this package
Best regards,
The text was updated successfully, but these errors were encountered: