Skip to content

Commit

Permalink
porting
Browse files Browse the repository at this point in the history
l10n_it_fatturapa_in to 10
(REF withholding tax integration, invoice interface, fiscal document type
ADD some DatiGeneraliDocumento fields)
ADD _setTerzoIntermediarioOSoggettoEmittente to l10n_it_fatturapa_out
  • Loading branch information
eLBati committed Sep 5, 2018
1 parent d94167a commit 57648a5
Show file tree
Hide file tree
Showing 48 changed files with 2,006 additions and 2,205 deletions.
4 changes: 3 additions & 1 deletion l10n_it_fatturapa/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
'name': 'Italian Localization - FatturaPA',
'version': '10.0.1.0.0',
'version': '10.0.2.0.0',
'category': 'Localization/Italy',
'summary': 'Electronic invoices',
'author': 'Davide Corio, Agile Business Group, Innoviu, '
Expand All @@ -21,6 +21,8 @@
'base_iban',
'l10n_it_account_tax_kind',
'l10n_it_esigibilita_iva',
'l10n_it_split_payment',
'l10n_it_fiscal_document_type',
],
"data": [
'data/fatturapa_data.xml',
Expand Down
15 changes: 10 additions & 5 deletions l10n_it_fatturapa/bindings/fatturapa_v_1_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,8 +1305,13 @@ class String60LatinType (pyxb.binding.datatypes.normalizedString):
2)
_Documentation = None
String60LatinType._CF_pattern = pyxb.binding.facets.CF_pattern()
# strings of blank spaces are allowed by SDI.
# {1,60} would produce
# SimpleFacetValueError: Type
# {http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}
# String1000LatinType pattern constraint violated by value
String60LatinType._CF_pattern.addPattern(
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{1,60}')
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{0,60}')
String60LatinType._InitializeFacetMap(String60LatinType._CF_pattern)
Namespace.addCategoryObject(
'typeBinding',
Expand All @@ -1332,7 +1337,7 @@ class String80LatinType (pyxb.binding.datatypes.normalizedString):
_Documentation = None
String80LatinType._CF_pattern = pyxb.binding.facets.CF_pattern()
String80LatinType._CF_pattern.addPattern(
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{1,80}')
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{0,80}')
String80LatinType._InitializeFacetMap(String80LatinType._CF_pattern)
Namespace.addCategoryObject(
'typeBinding',
Expand All @@ -1359,7 +1364,7 @@ class String100LatinType (pyxb.binding.datatypes.normalizedString):
_Documentation = None
String100LatinType._CF_pattern = pyxb.binding.facets.CF_pattern()
String100LatinType._CF_pattern.addPattern(
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{1,100}')
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{0,100}')
String100LatinType._InitializeFacetMap(String100LatinType._CF_pattern)
Namespace.addCategoryObject(
'typeBinding',
Expand All @@ -1386,7 +1391,7 @@ class String200LatinType (pyxb.binding.datatypes.normalizedString):
_Documentation = None
String200LatinType._CF_pattern = pyxb.binding.facets.CF_pattern()
String200LatinType._CF_pattern.addPattern(
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{1,200}')
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{0,200}')
String200LatinType._InitializeFacetMap(String200LatinType._CF_pattern)
Namespace.addCategoryObject(
'typeBinding',
Expand All @@ -1413,7 +1418,7 @@ class String1000LatinType (pyxb.binding.datatypes.normalizedString):
_Documentation = None
String1000LatinType._CF_pattern = pyxb.binding.facets.CF_pattern()
String1000LatinType._CF_pattern.addPattern(
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{1,1000}')
pattern='[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]{0,1000}')
String1000LatinType._InitializeFacetMap(String1000LatinType._CF_pattern)
Namespace.addCategoryObject(
'typeBinding',
Expand Down
4 changes: 4 additions & 0 deletions l10n_it_fatturapa/data/fatturapa_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
<field name="code">RF18</field>
<field name="name">Altro</field>
</record>
<record id="fatturapa_RF18" model="fatturapa.fiscal_position">
<field name="code">RF19</field>
<field name="name">Regime forfettario (art.1, c.54-89, L. 190/2014)</field>
</record>

<!-- Invoice Bundle Sequence -->
<record id="seq_fatturapa" model="ir.sequence">
Expand Down
39 changes: 37 additions & 2 deletions l10n_it_fatturapa/demo/account_invoice_fatturapa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@
<field name="name">22% ftPA</field>
<field name="description">22</field>
<field name="amount">22</field>
<field name="type_tax_use">sale</field>
</record>

<record id="tax_22_acq" model="account.tax">
<field name="name">22% ftPA acq</field>
<field name="description">22 acq</field>
<field name="amount">22</field>
<field name="type_tax_use">purchase</field>
</record>

<record id="tax_22_SP" model="account.tax">
<field name="name">SP22%</field>
<field name="description">22 Split Payment</field>
<field name="amount">22</field>
<field name="payability">S</field>
<field name="type_tax_use">sale</field>
</record>

<record id="tax_00_minimi" model="account.tax">
Expand All @@ -21,6 +30,16 @@
<field name="amount">0.00</field>
<field name="kind_id" ref="l10n_it_account_tax_kind.n4"></field>
<field name="law_reference">regime contribuenti minimi art.27 c.1-2 DL.98/11</field>
<field name="type_tax_use">sale</field>
</record>

<record id="tax_00_minimi_acq" model="account.tax">
<field name="name">Esente Acq</field>
<field name="description">00 Acq</field>
<field name="amount">0.00</field>
<field name="kind_id" ref="l10n_it_account_tax_kind.n4"></field>
<field name="law_reference">regime contribuenti minimi art.27 c.1-2 DL.98/11</field>
<field name="type_tax_use">purchase</field>
</record>

<record id="tax_00_e15" model="account.tax">
Expand Down Expand Up @@ -68,7 +87,7 @@
<field name="vat">IT06363391001</field>
</record>
<record id="base.main_partner" model="res.partner">
<field name="ipa_code">79SRAK</field>
<field name="ipa_code">UFPQ1O</field>
</record>

<record id="account.account_payment_term" model="account.payment.term">
Expand All @@ -91,7 +110,23 @@
<field name="website">www.mypa.it</field>
<field name="fiscalcode">00146089990</field>
<field name="vat">IT00146089990</field>
<field name="ipa_code">79SRAK</field>
<field name="ipa_code">UFPQ1O</field>
</record>

<record id="res_partner_fatturapa_1" model="res.partner">
<field name="name">Intermediario</field>
<field name="customer">0</field>
<field name="supplier">1</field>
<field name="is_company">1</field>
<field name="city">Torino</field>
<field name="zip">10100</field>
<field name="country_id" ref="base.it"/>
<field name="state_id" ref="base.state_us_2"/>
<field name="street">Via Milano, 1</field>
<field name="email">info@mycompany.it</field>
<field name="phone">123456789</field>
<field name="fiscalcode">03297040366</field>
<field name="vat">IT03297040366</field>
</record>

<record id="fiscal_position_sp" model="account.fiscal.position">
Expand Down
Loading

0 comments on commit 57648a5

Please sign in to comment.