Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Sep 2, 2024
1 parent da0600f commit 2447861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/accounts/doctype/subscription/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ def create_invoice(self, prorate):
if self.punto_de_venta and self.secuencia:
punto_de_venta = frappe.get_doc('Punto de Venta', self.punto_de_venta)
tipo_de_comprobante = punto_de_venta.get_tipo_comprobante_for_secuence(self.secuencia)
tipo_comprobante_afip = tipo_de_comprobante.codigo
if tipo_comprobante_afip in ['201', '206', '211']: # MIPYME
if tipo_de_comprobante and tipo_de_comprobante.codigo in ['201', '206', '211']: # MIPYME
subscription_settings = frappe.get_single('Subscription Settings')
invoice.naming_series = self.secuencia
invoice.opcion_de_transmision = subscription_settings.opcion_de_transmision
Expand Down

0 comments on commit 2447861

Please sign in to comment.