|
@@ -32,7 +32,8 @@ def get_account_invoice_sale_type_baco(): #historico de venta
|
|
customer.mobile,
|
|
customer.mobile,
|
|
customer.email,
|
|
customer.email,
|
|
invoice.is_delivery,
|
|
invoice.is_delivery,
|
|
- invoice.delivery_type
|
|
|
|
|
|
+ invoice.delivery_type,
|
|
|
|
+ customer.city
|
|
FROM account_invoice AS invoice
|
|
FROM account_invoice AS invoice
|
|
LEFT JOIN res_store_journal_rel AS journal
|
|
LEFT JOIN res_store_journal_rel AS journal
|
|
ON journal.journal_id = invoice.journal_id
|
|
ON journal.journal_id = invoice.journal_id
|
|
@@ -70,7 +71,8 @@ def get_account_invoice_sale_type_baco(): #historico de venta
|
|
invoice.supplier_invoice_number,
|
|
invoice.supplier_invoice_number,
|
|
customer.phone,
|
|
customer.phone,
|
|
customer.mobile,
|
|
customer.mobile,
|
|
- customer.email
|
|
|
|
|
|
+ customer.email,
|
|
|
|
+ customer.city
|
|
'''
|
|
'''
|
|
|
|
|
|
query2 = '''
|
|
query2 = '''
|
|
@@ -100,7 +102,8 @@ def get_account_invoice_sale_type_baco(): #historico de venta
|
|
customer.mobile,
|
|
customer.mobile,
|
|
customer.email,
|
|
customer.email,
|
|
invoice.is_delivery,
|
|
invoice.is_delivery,
|
|
- invoice.delivery_type
|
|
|
|
|
|
+ invoice.delivery_type,
|
|
|
|
+ customer.city
|
|
FROM account_invoice AS invoice
|
|
FROM account_invoice AS invoice
|
|
LEFT JOIN res_store_journal_rel AS journal
|
|
LEFT JOIN res_store_journal_rel AS journal
|
|
ON journal.journal_id = invoice.journal_id
|
|
ON journal.journal_id = invoice.journal_id
|
|
@@ -138,7 +141,8 @@ def get_account_invoice_sale_type_baco(): #historico de venta
|
|
invoice.supplier_invoice_number,
|
|
invoice.supplier_invoice_number,
|
|
customer.phone,
|
|
customer.phone,
|
|
customer.mobile,
|
|
customer.mobile,
|
|
- customer.email
|
|
|
|
|
|
+ customer.email,
|
|
|
|
+ customer.city
|
|
'''
|
|
'''
|
|
|
|
|
|
r.cr.execute(validate_columns)
|
|
r.cr.execute(validate_columns)
|
|
@@ -174,7 +178,8 @@ def get_account_invoice_sale_type_baco(): #historico de venta
|
|
'mobile':j[22],
|
|
'mobile':j[22],
|
|
'email':j[23],
|
|
'email':j[23],
|
|
'is_delivery':j[24],
|
|
'is_delivery':j[24],
|
|
- 'delivery_type':j[25]
|
|
|
|
|
|
+ 'delivery_type':j[25],
|
|
|
|
+ 'city':j[26]
|
|
} for j in r.cr.fetchall()]
|
|
} for j in r.cr.fetchall()]
|
|
else:
|
|
else:
|
|
r.cr.execute(query1,(tuple([company_currency_rate,company_currency_rate])))
|
|
r.cr.execute(query1,(tuple([company_currency_rate,company_currency_rate])))
|
|
@@ -202,5 +207,6 @@ def get_account_invoice_sale_type_baco(): #historico de venta
|
|
'mobile':j[20],
|
|
'mobile':j[20],
|
|
'email':j[21],
|
|
'email':j[21],
|
|
'is_delivery':j[22],
|
|
'is_delivery':j[22],
|
|
- 'delivery_type':j[23]
|
|
|
|
|
|
+ 'delivery_type':j[23],
|
|
|
|
+ 'city':j[24]
|
|
} for j in r.cr.fetchall()]
|
|
} for j in r.cr.fetchall()]
|