Re: [tryton-dev] Modules for DR

2014-05-28 Thread Franky Almonte

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)
 - 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



Re: [tryton-dev] Modules for DR

2014-05-28 Thread Sergi Almacellas Abellana

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?


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk



[tryton-dev] Modules for DR

2014-05-27 Thread Franky Almonte
Hi devs,

I have created two new modules: account_do and account_invoice_do. Both
for Dominican Republic.

The code is uploaded here (hope soon at Savannah):
http://fdsl.org.do/src/tryton-do.tar.gz

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 want to thanks to GNU Health and Tryton Argentina projects, which I
used as references. And of course Tryton itself.

Any review or suggestion is appreciated.

Regards,

-- 
Franky Almonte
Fundación Dominicana de Software Libre
www.fdsl.org.do