Initial commit with Email Import Wizard and Task Processor updates
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const KNOWN_NAMES = [
|
||||
'factur-x.xml',
|
||||
'zugferd-invoice.xml',
|
||||
'xrechnung.xml',
|
||||
];
|
||||
|
||||
export function isERechnung(pdfBuffer: Buffer): boolean {
|
||||
const asText = pdfBuffer.toString('latin1').toLowerCase();
|
||||
return KNOWN_NAMES.some((n) => asText.includes(n));
|
||||
}
|
||||
Reference in New Issue
Block a user