fix(compliance): Improve compliance
This commit is contained in:
@ -36,9 +36,9 @@ export abstract class UBLBaseDecoder extends BaseDecoder {
|
||||
const documentType = this.getDocumentType();
|
||||
|
||||
if (documentType === UBLDocumentType.CREDIT_NOTE) {
|
||||
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