Hooks & Utilities
v1.0.0Added in 1.0.0
Invoice math and the ids an invoice carries: VAT per rate the way e-Factura checks it, Romanian VAT rates, CUI, IBAN with its bank, CNP.
Change the quantities of the invoice lines with − and +: the net per line, the VAT breakdown per rate (21% and 11%), the discounts and the total are one computeInvoiceTotals call. Turn on prices with VAT, set a document discount in percent or as an amount, and see the VAT stay exact per rate. Type any CUI, IBAN or CNP in the checker: it recognises which one it is, validates the control digit, names the bank of a Romanian IBAN and reads the birth date and county from a CNP.
npx wingo-ui@latest add invoicingPro item: the CLI needs a Pro account. See plans