Sergi Almacellas Abellana wrote: > El 28/05/14 05:28, Franky Almonte ha escrit: >> account_do just has account chart and one tax. account_invoice_do >> generates tax receipt numbers (Número de Comprobante Fiscal [NCF], in >> spanish), which are different sequence numbers based on ncf_type >> selection field. The ncf_number is generated when the invoice is posted. >> account_invoice.odt was modified to reflect ncf_type and ncf_number >> fields. Views were inherited to show these changes. > I'm wondering why you added a new field instead of using the invoice > number? > Because companies use both numbers. By law the ncf_number is generated based on the client's classification (final consumer, company that report taxes, government institutions, specials [embassy, free zone, etc] and others).
The nomenclature of ncf_number is: A - Serie (1 digit, a letter) XX - Business Division (2 digits, number) YYY - Emission Point (3 digits, number) ZZZ - Print Area (3 digits, number) WW - Tax Receipt Type [2 digits, number] (defines ncf_type) SSSSSSSS - Sequential (8 digits, number) As an example, see [0] (page 10) for an example invoice (in spanish) created by the authority that receive taxes. You will see invoice number ("No. de Factura", as item #2) and ncf_number ("NCF", as item #8). [0] http://www.dgii.gob.do/et/nivelUniversitario/Presentacione/Comprobantes%20Fiscales.pdf -- Franky Almonte Fundación Dominicana de Software Libre www.fdsl.org.do