This is an app that creates PDF invoices out of Excel Files.
- openpyxl module need to be installed for pandas to be able to import excel files
AttributeError: 'int' object has no attribute 'replace'.
This occurred when first attempting to write some of the invoice data to pdf.
The product_id column as well as other columns contain information as integers but
the pdf format only accepts strings.
So I converted all cells to strings EG:
pdf.cell(w=30, h=8, txt=row["product_id"])
to
pdf.cell(w=30, h=8, txt=str(row["product_id"]))