From a7e6d697c587151b1f8995f30ceecb384a7d57ae Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Wed, 1 Apr 2026 14:13:52 +0400 Subject: [PATCH] debug: log raw e-taxes payload to Error Log before sending Co-Authored-By: Claude Opus 4.6 (1M context) --- invoice_az/send_sales_api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/invoice_az/send_sales_api.py b/invoice_az/send_sales_api.py index 267ab09..f28bfbb 100644 --- a/invoice_az/send_sales_api.py +++ b/invoice_az/send_sales_api.py @@ -566,6 +566,11 @@ def create_invoice_on_etaxes(token, payload, serial_number): headers = DEFAULT_HEADERS.copy() headers["x-authorization"] = f"Bearer {token}" + frappe.log_error( + json.dumps(payload, indent=2, ensure_ascii=False), + "E-Taxes Send Payload DEBUG" + ) + response = requests.post( INVOICE_URL, data=json.dumps(payload),