fix(compliance): Improve compliance
This commit is contained in:
@ -41,9 +41,9 @@ export abstract class CIIBaseDecoder extends BaseDecoder {
|
||||
const typeCode = this.getText('//ram:TypeCode');
|
||||
|
||||
if (typeCode === '381') { // Credit note type code
|
||||
return this.decodeCreditNote();
|
||||
return this.decodeCreditNote() as unknown as TInvoice;
|
||||
} else {
|
||||
return this.decodeDebitNote();
|
||||
return this.decodeDebitNote() as unknown as TInvoice;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user