diff --git a/gkcore/views/api_invoice.py b/gkcore/views/api_invoice.py index 28c3f068bc788e7ca41e9b8efcdcee59873b5329..341d819e68e62da54e83057d9238e690cff93b65 100644 --- a/gkcore/views/api_invoice.py +++ b/gkcore/views/api_invoice.py @@ -268,7 +268,7 @@ There will be an icFlag which will determine if it's an incrementing or decreme self.con = eng.connect() result = self.con.execute(select([invoice]).where(invoice.c.invid==self.request.params["invid"])) invrow = result.fetchone() - inv = {"invid":invrow["invid"],"taxflag":invrow["taxflag"],"invoiceno":invrow["invoiceno"],"invoicedate":datetime.strftime(invrow["invoicedate"],"%d-%m-%Y"),"icflag":invrow["icflag"],"invoicetotal":"%.2f"%float(invrow["invoicetotal"]),"bankdetails":invrow["bankdetails"]} + inv = {"invid":invrow["invid"],"taxflag":invrow["taxflag"],"invoiceno":invrow["invoiceno"],"invoicedate":datetime.strftime(invrow["invoicedate"],"%d-%m-%Y"),"icflag":invrow["icflag"],"invoicetotal":"%.2f"%float(invrow["invoicetotal"]),"bankdetails":invrow["bankdetails"], "orgstategstin":invrow["orgstategstin"]} if invrow["sourcestate"] != None: inv["sourcestate"] = invrow["sourcestate"] inv["sourcestatecode"] = getStateCode(invrow["sourcestate"],self.con)["statecode"]