fix: Machete Calzabana
This commit is contained in:
parent
0dac9f1ba9
commit
7d081ee7c0
8
sale.py
8
sale.py
@ -151,8 +151,8 @@ class Sale(metaclass=PoolMeta):
|
|||||||
invoice = record.invoices[0]
|
invoice = record.invoices[0]
|
||||||
data = {}
|
data = {}
|
||||||
data['invoice_number'] = invoice.number
|
data['invoice_number'] = invoice.number
|
||||||
subtype = invoice.subtype
|
#subtype = invoice.subtype
|
||||||
data['resolution'] = cls.get_invoice_resolution(subtype)
|
#data['resolution'] = cls.get_invoice_resolution(subtype)
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@ -171,8 +171,8 @@ class Sale(metaclass=PoolMeta):
|
|||||||
data["shop_nit"] = shop.company.party.tax_identifier.code
|
data["shop_nit"] = shop.company.party.tax_identifier.code
|
||||||
data["shop_address"] = shop.address.street
|
data["shop_address"] = shop.address.street
|
||||||
data['invoice'] = cls.get_invoice(record)
|
data['invoice'] = cls.get_invoice(record)
|
||||||
data['fe_cufe'] = record.fe_qrcode
|
# data['fe_cufe'] = record.fe_qrcode
|
||||||
data['cufe'] = record.fe_cufe
|
# data['cufe'] = record.fe_cufe
|
||||||
data["party"] = record.party.name
|
data["party"] = record.party.name
|
||||||
data["tax_identifier_type"] = record.party.tax_identifier.type_string
|
data["tax_identifier_type"] = record.party.tax_identifier.type_string
|
||||||
data["tax_identifier_code"] = record.party.tax_identifier.code
|
data["tax_identifier_code"] = record.party.tax_identifier.code
|
||||||
|
Loading…
Reference in New Issue
Block a user