Consider IVA Condition when computing perception/withholding
This commit is contained in:
parent
1594d50d02
commit
b51178541f
|
@ -193,6 +193,8 @@ class AccountVoucher(metaclass=PoolMeta):
|
|||
'account_retencion_ar.msg_party_ganancias_condition'))
|
||||
if self.party.ganancias_condition == 'ex':
|
||||
return {}
|
||||
if self.party.iva_condition not in ['responsable_inscripto', 'exento']:
|
||||
return {}
|
||||
|
||||
quantize = Decimal(10) ** -Decimal(2)
|
||||
res = {}
|
||||
|
@ -402,6 +404,8 @@ class AccountVoucher(metaclass=PoolMeta):
|
|||
'account_retencion_ar.msg_party_iibb_condition'))
|
||||
if self.party.iibb_condition in ['ex', 'rs', 'na', 'cs']:
|
||||
return {}
|
||||
if self.party.iva_condition not in ['responsable_inscripto', 'exento']:
|
||||
return {}
|
||||
company_address = self.company.party.address_get('invoice')
|
||||
if not company_address or not company_address.subdivision:
|
||||
raise UserError(gettext(
|
||||
|
|
|
@ -78,6 +78,8 @@ class Invoice(metaclass=PoolMeta):
|
|||
'account_retencion_ar.msg_party_iibb_condition'))
|
||||
if self.party.iibb_condition in ['ex', 'rs', 'na', 'cs']:
|
||||
return {}
|
||||
if self.party.iva_condition not in ['responsable_inscripto', 'exento']:
|
||||
return {}
|
||||
company_address = self.company.party.address_get('invoice')
|
||||
if not company_address or not company_address.subdivision:
|
||||
raise UserError(gettext(
|
||||
|
|
Loading…
Reference in New Issue