1970 lines
73 KiB
Python
1970 lines
73 KiB
Python
# Generated by Django 4.1.7 on 2023-05-14 22:58
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = [
|
|
("dati_geo_app", "0007_delete_indirizzo"),
|
|
("contatti_app", "0001_initial"),
|
|
("contenttypes", "0002_remove_content_type_name"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="AlboProfessionale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("albo_professionale", models.CharField(max_length=60, null=True)),
|
|
(
|
|
"provincia_albo",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="AlboProfessionale_da_Provincia_provincia_albo",
|
|
to="dati_geo_app.provincia",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "alboprofessionale",
|
|
"verbose_name_plural": "alboprofessionale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="AliquotaIva",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("aliquota_i_v_a", models.DecimalField(decimal_places=2, max_digits=6)),
|
|
("descrizione", models.CharField(max_length=50, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "aliquotaiva",
|
|
"verbose_name_plural": "aliquotaiva",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="CausalePagamento",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codice", models.CharField(max_length=2)),
|
|
("descrizione", models.CharField(max_length=20, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "causalepagamento",
|
|
"verbose_name_plural": "causalepagamento",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="CodiceDestinatario",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=7)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "codicedestinatario",
|
|
"verbose_name_plural": "codicedestinatario",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="CodiciDocumentali",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"codice_commessa_convenzione",
|
|
models.CharField(max_length=100, null=True),
|
|
),
|
|
("codice_c_u_p", models.CharField(max_length=15, null=True)),
|
|
("codice_c_i_g", models.CharField(max_length=15, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "codicidocumentali",
|
|
"verbose_name_plural": "codicidocumentali",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="CondizionePagamento",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=4)),
|
|
("descrizione", models.CharField(max_length=50, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "condizionepagamento",
|
|
"verbose_name_plural": "condizionepagamento",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="ContoBancario",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("beneficiario", models.CharField(max_length=200, null=True)),
|
|
("iban", models.CharField(max_length=34, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "contobancario",
|
|
"verbose_name_plural": "contobancario",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiBollo",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("importo_bollo", models.DecimalField(decimal_places=2, max_digits=15)),
|
|
],
|
|
options={
|
|
"verbose_name": "datibollo",
|
|
"verbose_name_plural": "datibollo",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiCassaPrevidenziale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"al_cassa",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=6, null=True
|
|
),
|
|
),
|
|
(
|
|
"importo_contributo_cassa",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
(
|
|
"imponibile_cassa",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
("ritenuta", models.BooleanField()),
|
|
(
|
|
"riferimento_amministrazione",
|
|
models.CharField(max_length=20, null=True),
|
|
),
|
|
(
|
|
"aliquota_iva",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiCassaPrevidenziale_da_AliquotaIva_aliquota_iva",
|
|
to="fattura_elettronica_app.aliquotaiva",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "daticassaprevidenziale",
|
|
"verbose_name_plural": "daticassaprevidenziale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiDDT",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("numero", models.CharField(max_length=20)),
|
|
("data", models.DateField()),
|
|
],
|
|
options={
|
|
"verbose_name": "datiddt",
|
|
"verbose_name_plural": "datiddt",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiDocumentali",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("id_documento", models.CharField(max_length=20)),
|
|
("data", models.DateField(blank=True, null=True)),
|
|
("num_item", models.CharField(max_length=20, null=True)),
|
|
(
|
|
"codici_documentali",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiDocumentali_da_CodiciDocumentali_codici_documentali",
|
|
to="fattura_elettronica_app.codicidocumentali",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "datidocumentali",
|
|
"verbose_name_plural": "datidocumentali",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiRitenuta",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"importo_ritenuta",
|
|
models.DecimalField(decimal_places=2, max_digits=15),
|
|
),
|
|
(
|
|
"aliquota_ritenuta",
|
|
models.DecimalField(decimal_places=2, max_digits=6),
|
|
),
|
|
(
|
|
"causale_pagamento",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiRitenuta_da_CausalePagamento_causale_pagamento",
|
|
to="fattura_elettronica_app.causalepagamento",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "datiritenuta",
|
|
"verbose_name_plural": "datiritenuta",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiVeicoli",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("data", models.DateField()),
|
|
("totale_percorso", models.CharField(max_length=15)),
|
|
],
|
|
options={
|
|
"verbose_name": "dativeicoli",
|
|
"verbose_name_plural": "dativeicoli",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DettaglioLinee",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("numero_linea", models.IntegerField(blank=True, null=True)),
|
|
(
|
|
"riferimento_amministrazione",
|
|
models.CharField(max_length=20, null=True),
|
|
),
|
|
(
|
|
"aliquota_iva",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioLinee_da_AliquotaIva_aliquota_iva",
|
|
to="fattura_elettronica_app.aliquotaiva",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "dettagliolinee",
|
|
"verbose_name_plural": "dettagliolinee",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="FormatoTrasmissione",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=5)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "formatotrasmissione",
|
|
"verbose_name_plural": "formatotrasmissione",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="IscrizioneREA",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("numero_r_e_a", models.CharField(max_length=20)),
|
|
(
|
|
"capitale_sociale",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "iscrizionerea",
|
|
"verbose_name_plural": "iscrizionerea",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="IstitutoFinanziario",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("nome", models.CharField(max_length=50)),
|
|
("abi", models.CharField(max_length=5, null=True)),
|
|
("cab", models.CharField(max_length=5, null=True)),
|
|
("bic", models.CharField(max_length=11, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "istitutofinanziario",
|
|
"verbose_name_plural": "istitutofinanziario",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="ModalitaPagamento",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=4)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "modalitapagamento",
|
|
"verbose_name_plural": "modalitapagamento",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="Natura",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=4)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "natura",
|
|
"verbose_name_plural": "natura",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="PartitaIvaCF",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codice", models.CharField(max_length=28)),
|
|
],
|
|
options={
|
|
"verbose_name": "partitaivacf",
|
|
"verbose_name_plural": "partitaivacf",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="RegimeFiscale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=4)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "regimefiscale",
|
|
"verbose_name_plural": "regimefiscale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="SocioUnico",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=2)),
|
|
("descrizione", models.CharField(max_length=30, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "sociounico",
|
|
"verbose_name_plural": "sociounico",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="SoggettiFatturaElettronica",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"riferimento_amministrazione",
|
|
models.CharField(max_length=20, null=True),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "soggettifatturaelettronica",
|
|
"verbose_name_plural": "soggettifatturaelettronica",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="SoggettoEmittente",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=2)),
|
|
("descrizione", models.CharField(max_length=30, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "soggettoemittente",
|
|
"verbose_name_plural": "soggettoemittente",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="SoggettoFiscale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("cod_eori", models.CharField(max_length=17, null=True)),
|
|
("numero_licenza_guida", models.CharField(max_length=20, null=True)),
|
|
("rimosso", models.BooleanField(blank=True, null=True)),
|
|
(
|
|
"codice_fiscale",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_PartitaIvaCF_codice_fiscale",
|
|
to="fattura_elettronica_app.partitaivacf",
|
|
),
|
|
),
|
|
(
|
|
"codice_sdi",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_CodiceDestinatario_codice_sdi",
|
|
to="fattura_elettronica_app.codicedestinatario",
|
|
),
|
|
),
|
|
(
|
|
"dati_di_contatto",
|
|
models.OneToOneField(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="dati_fiscali",
|
|
to="contatti_app.soggettocontattabile",
|
|
),
|
|
),
|
|
(
|
|
"indirizzo_pec",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_Pec_indirizzo_pec",
|
|
to="contatti_app.pec",
|
|
),
|
|
),
|
|
(
|
|
"iscrizione_rea",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_IscrizioneREA_iscrizione_rea",
|
|
to="fattura_elettronica_app.iscrizionerea",
|
|
),
|
|
),
|
|
(
|
|
"nazione",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_Nazione_nazione",
|
|
to="dati_geo_app.nazione",
|
|
),
|
|
),
|
|
(
|
|
"partita_iva",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_PartitaIvaCF_partita_iva",
|
|
to="fattura_elettronica_app.partitaivacf",
|
|
),
|
|
),
|
|
(
|
|
"polymorphic_ctype",
|
|
models.ForeignKey(
|
|
editable=False,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="polymorphic_%(app_label)s.%(class)s_set+",
|
|
to="contenttypes.contenttype",
|
|
),
|
|
),
|
|
(
|
|
"regime_fiscale",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_RegimeFiscale_regime_fiscale",
|
|
to="fattura_elettronica_app.regimefiscale",
|
|
),
|
|
),
|
|
(
|
|
"sede",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettoFiscale_da_Indirizzo",
|
|
to="contatti_app.indirizzo",
|
|
),
|
|
),
|
|
(
|
|
"stabile_organizzazione",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
related_name="stabile_organizzazione",
|
|
to="contatti_app.indirizzo",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "soggettofiscale",
|
|
"verbose_name_plural": "soggettofiscale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="StatoLiquidazione",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=2)),
|
|
("descrizione", models.CharField(max_length=30, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "statoliquidazione",
|
|
"verbose_name_plural": "statoliquidazione",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoCassa",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=4)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tipocassa",
|
|
"verbose_name_plural": "tipocassa",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoCessionePrestazione",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=2)),
|
|
("descrizione", models.CharField(max_length=50, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tipocessioneprestazione",
|
|
"verbose_name_plural": "tipocessioneprestazione",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoCodiceArticolo",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=35)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tipocodicearticolo",
|
|
"verbose_name_plural": "tipocodicearticolo",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoDocumento",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=4)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tipodocumento",
|
|
"verbose_name_plural": "tipodocumento",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipologiaDocumentale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=50)),
|
|
("descrizione", models.CharField(max_length=100, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tipologiadocumentale",
|
|
"verbose_name_plural": "tipologiadocumentale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoResa",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=3)),
|
|
("descrizione", models.CharField(max_length=50, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tiporesa",
|
|
"verbose_name_plural": "tiporesa",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoRitenuta",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codice", models.CharField(max_length=4, null=True)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tiporitenuta",
|
|
"verbose_name_plural": "tiporitenuta",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TipoScontoMaggiorazione",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("tipo", models.CharField(max_length=2)),
|
|
("descrizione", models.CharField(max_length=20, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "tiposcontomaggiorazione",
|
|
"verbose_name_plural": "tiposcontomaggiorazione",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="UnitaMisura",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=10)),
|
|
("descrizione", models.CharField(max_length=40, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "unitamisura",
|
|
"verbose_name_plural": "unitamisura",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="Valuta",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codifica", models.CharField(max_length=3)),
|
|
("descrizione", models.CharField(max_length=250, null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "valuta",
|
|
"verbose_name_plural": "valuta",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="XmlFatturaElettronica",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("progressivo_invio", models.CharField(max_length=10)),
|
|
("path", models.CharField(max_length=128, null=True)),
|
|
(
|
|
"soggetti_fattura_elettronica",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="XmlFatturaElettronica_da_SoggettiFatturaElettronica_soggetti_fattura_elettronica",
|
|
to="fattura_elettronica_app.soggettifatturaelettronica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "xmlfatturaelettronica",
|
|
"verbose_name_plural": "xmlfatturaelettronica",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="TerzoIntermediarioOSoggettoEmittente",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"soggetto_emittente",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="TerzoIntermediarioOSoggettoEmittente_da_SoggettoEmittente_soggetto_emittente",
|
|
to="fattura_elettronica_app.soggettoemittente",
|
|
),
|
|
),
|
|
(
|
|
"terzo_intermediario_o_soggetto_emittente",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="TerzoIntermediarioOSoggettoEmittente_da_SoggettoFiscale_terzo_intermediario_o_soggetto_emittente",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "terzointermediarioosoggettoemittente",
|
|
"verbose_name_plural": "terzointermediarioosoggettoemittente",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="cedente_prestatore",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_SoggettoFiscale_cedente_prestatore",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="cessionariocommittente",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_SoggettoFiscale_cessionariocommittente",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="contatto_cedente_prestatore",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_DatoDiContatto_contatto_cedente_prestatore",
|
|
to="contatti_app.vocecontattorubrica",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="destinatario",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_SoggettoFiscale_destinatario",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="formato_trasmissione",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_FormatoTrasmissione_formato_trasmissione",
|
|
to="fattura_elettronica_app.formatotrasmissione",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="rappresentante_fiscale",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_SoggettoFiscale_rappresentante_fiscale",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="terzo_intermediario_o_soggetto_emittente",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_TerzoIntermediarioOSoggettoEmittente_terzo_intermediario_o_soggetto_emittente",
|
|
to="fattura_elettronica_app.terzointermediarioosoggettoemittente",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="soggettifatturaelettronica",
|
|
name="trasmittente",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="SoggettiFatturaElettronica_da_SoggettoFiscale_trasmittente",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
migrations.CreateModel(
|
|
name="ScontoMaggiorazione",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"percentuale",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=6, null=True
|
|
),
|
|
),
|
|
(
|
|
"importo",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=6, null=True
|
|
),
|
|
),
|
|
(
|
|
"tipo",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="ScontoMaggiorazione_da_TipoScontoMaggiorazione_tipo",
|
|
to="fattura_elettronica_app.tiposcontomaggiorazione",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "scontomaggiorazione",
|
|
"verbose_name_plural": "scontomaggiorazione",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="RiferimentoOrdineAcquistoNumeroLinea",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"dati_ordine_acquisto",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="RiferimentoOrdineAcquistoNumeroLinea_da_DatiDocumentali_dati_ordine_acquisto",
|
|
to="fattura_elettronica_app.datidocumentali",
|
|
),
|
|
),
|
|
(
|
|
"dettaglio_linee",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="RiferimentoOrdineAcquistoNumeroLinea_da_DettaglioLinee_dettaglio_linee",
|
|
to="fattura_elettronica_app.dettagliolinee",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "riferimentoordineacquistonumerolinea",
|
|
"verbose_name_plural": "riferimentoordineacquistonumerolinea",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="RiferimentoDDTNumeroLinea",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"dati_d_d_t",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="RiferimentoDDTNumeroLinea_da_DatiDDT_dati_d_d_t",
|
|
to="fattura_elettronica_app.datiddt",
|
|
),
|
|
),
|
|
(
|
|
"dettaglio_linee",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="RiferimentoDDTNumeroLinea_da_DettaglioLinee_dettaglio_linee",
|
|
to="fattura_elettronica_app.dettagliolinee",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "riferimentoddtnumerolinea",
|
|
"verbose_name_plural": "riferimentoddtnumerolinea",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="OggettoDaFatturare",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("descrizione", models.CharField(max_length=1000, null=True)),
|
|
(
|
|
"quantita",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=4, max_digits=21, null=True
|
|
),
|
|
),
|
|
(
|
|
"prezzo_unitario",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=21, null=True
|
|
),
|
|
),
|
|
("data_inizio", models.DateField(blank=True, null=True)),
|
|
("data_fine", models.DateField(blank=True, null=True)),
|
|
(
|
|
"unita_misura",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiEstesiDettaglioFatturabile_da_UnitaMisura_unita_misura",
|
|
to="fattura_elettronica_app.unitamisura",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "OggettoDaFatturare",
|
|
"verbose_name_plural": "OggettoDaFatturare",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="iscrizionerea",
|
|
name="socio_unico",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="IscrizioneREA_da_SocioUnico_socio_unico",
|
|
to="fattura_elettronica_app.sociounico",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="iscrizionerea",
|
|
name="stato_liquidazione",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="IscrizioneREA_da_StatoLiquidazione_stato_liquidazione",
|
|
to="fattura_elettronica_app.statoliquidazione",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="iscrizionerea",
|
|
name="ufficio",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
related_name="IscrizioneREA_da_Provincia_ufficio",
|
|
to="dati_geo_app.provincia",
|
|
),
|
|
),
|
|
migrations.CreateModel(
|
|
name="IscrizioneAlboProfessionale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("numero_iscrizione_albo", models.CharField(max_length=60, null=True)),
|
|
("data_iscrizione_albo", models.DateField(blank=True, null=True)),
|
|
(
|
|
"albo_professionale",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="IscrizioneAlboProfessionale_da_AlboProfessionale_albo_professionale",
|
|
to="fattura_elettronica_app.alboprofessionale",
|
|
),
|
|
),
|
|
(
|
|
"persona_fisica",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="IscrizioneAlboProfessionale_da_PersonaFisica_persona_fisica",
|
|
to="contatti_app.personafisica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "iscrizionealboprofessionale",
|
|
"verbose_name_plural": "iscrizionealboprofessionale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="FatturaElettronica",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("data", models.DateField()),
|
|
("numero", models.CharField(max_length=20)),
|
|
(
|
|
"importo_totale_documento",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
(
|
|
"arrotondamento",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
("causale", models.CharField(max_length=200, null=True)),
|
|
("art73", models.BooleanField(blank=True, null=True)),
|
|
(
|
|
"dati_bollo",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_DatiBollo_dati_bollo",
|
|
to="fattura_elettronica_app.datibollo",
|
|
),
|
|
),
|
|
(
|
|
"dati_cassa_previdenziale",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_DatiCassaPrevidenziale_dati_cassa_previdenziale",
|
|
to="fattura_elettronica_app.daticassaprevidenziale",
|
|
),
|
|
),
|
|
(
|
|
"dati_ritenuta",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_DatiRitenuta_dati_ritenuta",
|
|
to="fattura_elettronica_app.datiritenuta",
|
|
),
|
|
),
|
|
(
|
|
"dati_veicoli",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_DatiVeicoli_dati_veicoli",
|
|
to="fattura_elettronica_app.dativeicoli",
|
|
),
|
|
),
|
|
(
|
|
"divisa",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_Valuta_divisa",
|
|
to="fattura_elettronica_app.valuta",
|
|
),
|
|
),
|
|
(
|
|
"fattura_principale",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_FatturaElettronica_fattura_principale",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
(
|
|
"sconto_maggiorazione",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_ScontoMaggiorazione_sconto_maggiorazione",
|
|
to="fattura_elettronica_app.scontomaggiorazione",
|
|
),
|
|
),
|
|
(
|
|
"tipo_documento",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_TipoDocumento_tipo_documento",
|
|
to="fattura_elettronica_app.tipodocumento",
|
|
),
|
|
),
|
|
(
|
|
"xml_fattura",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="FatturaElettronica_da_XmlFatturaElettronica_xml_fattura",
|
|
to="fattura_elettronica_app.xmlfatturaelettronica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "fatturaelettronica",
|
|
"verbose_name_plural": "fatturaelettronica",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="dettagliolinee",
|
|
name="fattura_elettronica_body",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioLinee_da_FatturaElettronica_fattura_elettronica_body",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="dettagliolinee",
|
|
name="riferimento_oggetto_fattura",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioLinee_da_DatiEstesiDettaglioFatturabile_riferimento_oggetto_fattura",
|
|
to="fattura_elettronica_app.oggettodafatturare",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="dettagliolinee",
|
|
name="sconto_maggiorazione",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioLinee_da_ScontoMaggiorazione_sconto_maggiorazione",
|
|
to="fattura_elettronica_app.scontomaggiorazione",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="dettagliolinee",
|
|
name="tipo_cessione_prestazione",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioLinee_da_TipoCessionePrestazione_tipo_cessione_prestazione",
|
|
to="fattura_elettronica_app.tipocessioneprestazione",
|
|
),
|
|
),
|
|
migrations.CreateModel(
|
|
name="DettaglioBancario",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"conto_bancario",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioBancario_da_ContoBancario_conto_bancario",
|
|
to="fattura_elettronica_app.contobancario",
|
|
),
|
|
),
|
|
(
|
|
"modalita_pagamento",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DettaglioBancario_da_ModalitaPagamento_modalita_pagamento",
|
|
to="fattura_elettronica_app.modalitapagamento",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "dettagliobancario",
|
|
"verbose_name_plural": "dettagliobancario",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatoPagamento",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"data_riferimento_termini_pagamento",
|
|
models.DateField(blank=True, null=True),
|
|
),
|
|
(
|
|
"giorni_termini_pagamento",
|
|
models.IntegerField(blank=True, null=True),
|
|
),
|
|
("data_scadenza_pagamento", models.DateField(blank=True, null=True)),
|
|
(
|
|
"importo_pagamento",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
(
|
|
"sconto_pagamento_anticipato",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
(
|
|
"data_limite_pagamento_anticipato",
|
|
models.DateField(blank=True, null=True),
|
|
),
|
|
(
|
|
"penalita_pagamenti_ritardati",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=2, max_digits=15, null=True
|
|
),
|
|
),
|
|
("data_decorrenza_penale", models.DateField(blank=True, null=True)),
|
|
("codice_pagamento", models.CharField(max_length=60, null=True)),
|
|
("quietanzante", models.IntegerField(blank=True, null=True)),
|
|
(
|
|
"condizione_pagamento",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatoPagamento_da_CondizionePagamento_condizione_pagamento",
|
|
to="fattura_elettronica_app.condizionepagamento",
|
|
),
|
|
),
|
|
(
|
|
"dettaglio_bancario",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatoPagamento_da_DettaglioBancario_dettaglio_bancario",
|
|
to="fattura_elettronica_app.dettagliobancario",
|
|
),
|
|
),
|
|
(
|
|
"fattura_body",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatoPagamento_da_FatturaElettronica_fattura_body",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "datopagamento",
|
|
"verbose_name_plural": "datopagamento",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiTrasporto",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("mezzo_trasporto", models.CharField(max_length=80, null=True)),
|
|
("numero_colli", models.IntegerField(blank=True, null=True)),
|
|
("descrizione", models.CharField(max_length=100, null=True)),
|
|
(
|
|
"peso_lordo",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=3, max_digits=7, null=True
|
|
),
|
|
),
|
|
(
|
|
"peso_netto",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=3, max_digits=7, null=True
|
|
),
|
|
),
|
|
("data_ora_rititro", models.DateTimeField(blank=True, null=True)),
|
|
("data_inizio_trasporto", models.DateField(blank=True, null=True)),
|
|
("data_ora_consegna", models.DateTimeField(blank=True, null=True)),
|
|
(
|
|
"dati_generali",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiTrasporto_da_FatturaElettronica_dati_generali",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
(
|
|
"dati_vettore",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiTrasporto_da_SoggettoFiscale_dati_vettore",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
(
|
|
"indirizzo_resa",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiTrasporto_da_Indirizzo_indirizzo_resa",
|
|
to="contatti_app.indirizzo",
|
|
),
|
|
),
|
|
(
|
|
"tipo_resa",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiTrasporto_da_TipoResa_tipo_resa",
|
|
to="fattura_elettronica_app.tiporesa",
|
|
),
|
|
),
|
|
(
|
|
"unita_misura_peso",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiTrasporto_da_UnitaMisura_unita_misura_peso",
|
|
to="fattura_elettronica_app.unitamisura",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "datitrasporto",
|
|
"verbose_name_plural": "datitrasporto",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiSAL",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("riferimento_fase", models.IntegerField()),
|
|
(
|
|
"dati_generali",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiSAL_da_FatturaElettronica_dati_generali",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "datisal",
|
|
"verbose_name_plural": "datisal",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="datiritenuta",
|
|
name="tipo_ritenuta",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiRitenuta_da_TipoRitenuta_tipo_ritenuta",
|
|
to="fattura_elettronica_app.tiporitenuta",
|
|
),
|
|
),
|
|
migrations.CreateModel(
|
|
name="DatiFattureCollegate",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"codici_documentali",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiFattureCollegate_da_CodiciDocumentali_codici_documentali",
|
|
to="fattura_elettronica_app.codicidocumentali",
|
|
),
|
|
),
|
|
(
|
|
"dati_generali",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiFattureCollegate_da_FatturaElettronica_dati_generali",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "datifatturecollegate",
|
|
"verbose_name_plural": "datifatturecollegate",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="datidocumentali",
|
|
name="dati_generali",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiDocumentali_da_FatturaElettronica_dati_generali",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="datidocumentali",
|
|
name="tipologia_documentale",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiDocumentali_da_TipologiaDocumentale_tipologia_documentale",
|
|
to="fattura_elettronica_app.tipologiadocumentale",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="datiddt",
|
|
name="dati_generali",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiDDT_da_FatturaElettronica_dati_generali",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="daticassaprevidenziale",
|
|
name="tipo_cassa",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="DatiCassaPrevidenziale_da_TipoCassa_tipo_cassa",
|
|
to="fattura_elettronica_app.tipocassa",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="contobancario",
|
|
name="istituto_finanziario",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="ContoBancario_da_IstitutoFinanziario_istituto_finanziario",
|
|
to="fattura_elettronica_app.istitutofinanziario",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="contobancario",
|
|
name="soggetto_fiscale",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="ContoBancario_da_SoggettoFiscale_soggetto_fiscale",
|
|
to="fattura_elettronica_app.soggettofiscale",
|
|
),
|
|
),
|
|
migrations.CreateModel(
|
|
name="CodiceArticolo",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("codice_valore", models.CharField(max_length=35, null=True)),
|
|
(
|
|
"codice_tipo",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="CodiceArticolo_da_TipoCodiceArticolo_codice_tipo",
|
|
to="fattura_elettronica_app.tipocodicearticolo",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "codicearticolo",
|
|
"verbose_name_plural": "codicearticolo",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="ArticoloLinea",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"codice_articolo",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="ArticoloLinea_da_CodiceArticolo_codice_articolo",
|
|
to="fattura_elettronica_app.codicearticolo",
|
|
),
|
|
),
|
|
(
|
|
"dettaglio_linee",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="ArticoloLinea_da_DettaglioLinee_dettaglio_linee",
|
|
to="fattura_elettronica_app.dettagliolinee",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "articololinea",
|
|
"verbose_name_plural": "articololinea",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="altroDatoGestionale",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("tipo_dato", models.CharField(max_length=10)),
|
|
("riferimento_testo", models.CharField(max_length=60, null=True)),
|
|
(
|
|
"riferimento_numero",
|
|
models.DecimalField(
|
|
blank=True, decimal_places=4, max_digits=21, null=True
|
|
),
|
|
),
|
|
("riferimento_data", models.DateField(blank=True, null=True)),
|
|
(
|
|
"linea_fattura",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="altroDatoGestionale_da_DettaglioLinee_linea_fattura",
|
|
to="fattura_elettronica_app.dettagliolinee",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "altrodatogestionale",
|
|
"verbose_name_plural": "altrodatogestionale",
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="Allegato",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("nome_attachment", models.CharField(max_length=60)),
|
|
("algoritmo_compressione", models.CharField(max_length=10, null=True)),
|
|
("formato_attachment", models.CharField(max_length=10, null=True)),
|
|
("descrizione_attachment", models.CharField(max_length=100)),
|
|
("attachment", models.TextField()),
|
|
(
|
|
"fattura_elettronica_body",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="Allegato_da_FatturaElettronica_fattura_elettronica_body",
|
|
to="fattura_elettronica_app.fatturaelettronica",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "allegato",
|
|
"verbose_name_plural": "allegato",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="aliquotaiva",
|
|
name="natura",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="AliquotaIva_da_Natura_natura",
|
|
to="fattura_elettronica_app.natura",
|
|
),
|
|
),
|
|
]
|