Skip to content

Commit

Permalink
fix: persat disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Aug 30, 2024
1 parent c2f95b6 commit da0600f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/subscription/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ def create_invoice(self, prorate):
invoice.territory = frappe.db.get_value('Customer', self.party, 'territory')

if self.punto_de_venta and self.secuencia:
invoice.naming_series = 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
subscription_settings = frappe.get_single('Subscription Settings')
invoice.naming_series = self.secuencia
invoice.opcion_de_transmision = subscription_settings.opcion_de_transmision
else:
invoice.supplier = self.party
Expand Down

0 comments on commit da0600f

Please sign in to comment.