Skip to content

Commit

Permalink
feat: add vatExtemptTaxableBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dannyps committed Mar 25, 2024
1 parent 28fc4d6 commit 3d65fff
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/ACTUD/ACTUD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,47 @@ class ACTUD {
this._ACTUD = this.CheckValue("ACTUD", value, 70);
}

/**
* *Espaço Fiscal*
*
* max length: **5**
*
* code: ***I1***
*/
private _TaxCountryRegion: string;
public get TaxCountryRegion(): string {
return this._TaxCountryRegion;
}
public set TaxCountryRegion(value: string) {
if (value == '0') {
// No caso de documento sem indicação da taxa de IVA, que deva constar na tabela 4.2, 4.3 ou 4.4 do SAF-T(PT), preencher com «0» (I1:0).
// TODO: add check for other I* fields.
this._TaxCountryRegion = null;
} else {
this._TaxCountryRegion = value;
}
}

/**
* *Base Tributável Isenta de IVA*
*
* max Length: 16
*
* code: ***I2***
*/
private _vatExtemptTaxableBase: number;
public get vatExtemptTaxableBase(): number {
return this._vatExtemptTaxableBase;
}
public set vatExtemptTaxableBase(value: string) {
let valueFloat = parseFloat(value);
if (valueFloat < 0) {

} else {
this._vatExtemptTaxableBase = valueFloat;
}
}

constructor(input: string) {
let dict: Record<string, string> = {};
let isMissingARequiredValue = false;
Expand Down

0 comments on commit 3d65fff

Please sign in to comment.