many changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -24,7 +24,7 @@ def fetch_tickets_from_database():
|
||||
cursor = mydb.cursor()
|
||||
|
||||
# Tickets abrufen, inklusive customer_ID
|
||||
cursor.execute("""
|
||||
cursor.execute(f"""
|
||||
SELECT t.`number`, t.title, t.createdate, t.`type`, t.customer_ID, tct.firstdate, t.time, s.price, t.service_ID, t.tags
|
||||
FROM Kunden.tickets t
|
||||
JOIN Kunden.`tickets.customer.timerange` tct ON t.customer_ID = tct.customer_ID
|
||||
@@ -267,9 +267,9 @@ if __name__ == "__main__":
|
||||
"housenumber": customer_data[2],
|
||||
"postcode": customer_data[3],
|
||||
"city": customer_data[4],
|
||||
"customernumber": customer_data[5],
|
||||
"cnumber": customer_data[5],
|
||||
"year": datetime.now().year,
|
||||
"ordernumber": "1",
|
||||
"onumber": "1",
|
||||
"startdate": startdate.strftime("%d.%m.%Y"),
|
||||
"enddate": enddate.strftime("%d.%m.%Y"),
|
||||
"today": datetime.now().strftime("%d.%m.%Y"),
|
||||
@@ -284,6 +284,6 @@ if __name__ == "__main__":
|
||||
"mwst_set": "0,00",
|
||||
"sum": "0,00",
|
||||
}
|
||||
output_path = f"apps/ticket_export/exports/RE2025.{customer_data[5]}.{data['ordernumber']}.docx"
|
||||
output_path = f"apps/ticket_export/exports/RE2025.{customer_data[5]}.{data['onumber']}.docx"
|
||||
fill_template('apps/ticket_export/template.docx', output_path, data, customer_tickets)
|
||||
print("True")
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user