Skip to content
Snippets Groups Projects
Commit 810b2b3c authored by Cosimo Antonio Volpicelli's avatar Cosimo Antonio Volpicelli
Browse files

Modifiche al 3-3-21

parent 7e612c1f
No related branches found
No related tags found
No related merge requests found
......@@ -85,19 +85,25 @@ class Settore(models.IntegerChoices):
ricerca_tecnologia = 0
didattica = 1
funzionamento =2
class Tipologia(models.IntegerChoices):
informatici = 0
largo_consumo = 1
altro = 2
class Aquisti(models.Model):
datarichiesta= models.DateField(auto_now_add=True)
datacreazione= models.DateField(auto_now_add=True)
datainvio= models.DateField(auto_now_add=True,blank=True, null=True)
descrizione = models.CharField( max_length=1000,blank=True, null=True)
motivazioneuso = models.CharField( max_length=1000,blank=True, null=True)
protocollo = models.CharField( max_length=1000,blank=True, null=True)
idrichiedente = models.IntegerField(blank=True, null=True)
idrup = models.IntegerField(blank=True, null=True)
tipologia = models.CharField(max_length=1000, blank=True, null=True)
tipologia = models.IntegerField(choices=Tipologia.choices,default=0)
settore = models.IntegerField(choices=Settore.choices,default=0)
importototale = models.DecimalField(max_digits=10, decimal_places=2,db_column='importoTotale', blank=True, null=True)
convenzione = models.IntegerField(blank=True, null=True)
nomeconvenzione = models.CharField(max_length=100, blank=True, null=True)
motivazionenonconvenzione = models.CharField( max_length=1000,blank=True, null=True)
mepa = models.IntegerField(blank=True, null=True)
"""
class StatoAcquisto(models.IntegerChoices):
......@@ -188,7 +194,7 @@ class Sede(models.Model):
managed = True
db_table = 'sede'
STATOACQUISTO= (
FLUSSOACQUISTO= (
'NUOVA',
'CREATA',
'INOLTRATA',
......@@ -207,7 +213,7 @@ STATOACQUISTO= (
'UA_RICHIESTA_NON_CONGRUA',
'UA_EMAIL_RICHIEDENTE_PRESA_IN_CARICO'
)
STATOACQUISTO = list(zip(STATOACQUISTO, STATOACQUISTO))
FLUSSOACQUISTO = list(zip(FLUSSOACQUISTO, FLUSSOACQUISTO))
class Statoaquisto(xwf_models.WorkflowEnabled,models.Model):
aquisti = models.OneToOneField(
Aquisti,
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment