Prepare Dominican accounting localization for core review
This commit is contained in:
@@ -3,6 +3,7 @@ Account DO Scenario
|
||||
|
||||
Imports::
|
||||
|
||||
>>> from decimal import Decimal
|
||||
>>> from proteus import Model
|
||||
>>> from trytond.modules.account.tests.tools import create_chart
|
||||
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||
@@ -18,7 +19,7 @@ Get the test company::
|
||||
|
||||
Create the Dominican chart of accounts::
|
||||
|
||||
>>> _ = create_chart(company, chart='account_do.do_account_root')
|
||||
>>> _ = create_chart(company, chart='account_do.do_account_root_en')
|
||||
>>> Account = Model.get('account.account')
|
||||
>>> receivable, = Account.find([
|
||||
... ('company', '=', company.id),
|
||||
@@ -40,12 +41,12 @@ Validate fiscal objects::
|
||||
>>> TaxRule = Model.get('account.tax.rule')
|
||||
>>> bool(Tax.find([
|
||||
... ('company', '=', company.id),
|
||||
... ('description', '=', 'ITBIS 18% Ventas'),
|
||||
... ('tax_kind', '=', 'itbis')]))
|
||||
... ('description', '=', 'ITBIS 18% Sales'),
|
||||
... ('rate', '=', Decimal('0.18'))]))
|
||||
True
|
||||
>>> bool(TaxCode.find([
|
||||
... ('company', '=', company.id),
|
||||
... ('name', '=', 'Otros Impuestos y Contribuciones')]))
|
||||
... ('name', '=', 'Other Taxes and Contributions')]))
|
||||
True
|
||||
>>> bool(TaxRule.find([
|
||||
... ('company', '=', company.id),
|
||||
|
||||
+403
-458
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user