UNPKG

@openade/common

Version:

Common types, validators, and XML builders for Italian fiscal receipts

14 lines 952 B
import { ISODate, ISODateTime } from '../types/common'; export declare function formatISODate(date: Date): ISODate; export declare function formatISODateTime(date: Date): ISODateTime; export declare function calculateVAT(imponibile: number, aliquotaIVA: number): number; export declare function calculateTotal(imponibile: number, imposta: number): number; export declare function roundAmount(amount: number): number; export declare function normalizePartitaIVA(partitaIVA: string): string; export declare function generatePEMId(): string; export declare function generateDocumentNumber(sequential: number, year?: number): string; export declare function parseBirthDateFromCodiceFiscale(codiceFiscale: string): Date | null; export declare function formatAmount(amount: number, currency?: string): string; export declare function isPastDate(date: Date): boolean; export declare function isToday(date: Date): boolean; //# sourceMappingURL=helpers.d.ts.map