Commit 55f3c399 authored by vipul.v's avatar vipul.v

mqtt and postgresql updated again

parent 1e8db8a9
......@@ -37,8 +37,8 @@ class MqttConnectPostgresql:
tax_rate=invoice['tax_rate'],
total=invoice['total'],
paid=invoice['paid'],
payment_method=invoice.get('payment_method'),
payment_date=invoice.get('payment_date'),
payment_method=invoice.get('payment_method')
)
invoices.append(invoice_data)
with Session() as session:
......
......@@ -19,7 +19,7 @@ class InvoiceDetails(Base):
tax_rate = Column('tax_rate', Float)
total = Column('total', Float)
paid = Column('paid', Boolean)
payment_date = Column('payment_date', Date)
payment_date = Column('payment_date', JSONB)
payment_method = Column('payment_method', JSONB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment