Detraction

receipt~ Detraction

Detraction represents a Peruvian tax withholding mechanism that applies to certain goods and services. It requires withholding a percentage of the invoice total and depositing it into a special bank account.
Detraction only applies if the invoice amount exceeds 700 PEN.

Constructor

new Detraction()

Source:

Methods

calcAmount(taxInclusiveAmount)

Source:
Parameters:
Name Type Description
taxInclusiveAmount

number to apply percentage

setCode(code)

Description:
  • Set 3-digit code from SUNAT Catalog No. 54

Source:
Parameters:
Name Type Description
code string

Detraction code

setFinancialAccount(account)

Description:
  • Set Bank account number for the deposit.

Source:
Parameters:
Name Type Description
account string

Bank account number

setPercentage(percentage)

Description:
  • Set percentage to apply.

Source:
Parameters:
Name Type Description
percentage number

Value from 0 to 100