forked from DGNum/gestioCOF
Merge branch 'Aufinal/create_opes' into 'master'
K-Fêt - Dev : - new command - createopes: Création d'opérations et transferts aléatoires See merge request !193
This commit is contained in:
commit
215d4a63ad
3 changed files with 180 additions and 63 deletions
|
@ -466,7 +466,7 @@ class OrderArticle(models.Model):
|
|||
quantity_received = models.IntegerField(default = 0)
|
||||
|
||||
class TransferGroup(models.Model):
|
||||
at = models.DateTimeField(auto_now_add = True)
|
||||
at = models.DateTimeField(default=timezone.now)
|
||||
# Optional
|
||||
comment = models.CharField(
|
||||
max_length = 255,
|
||||
|
@ -502,7 +502,7 @@ class OperationGroup(models.Model):
|
|||
checkout = models.ForeignKey(
|
||||
Checkout, on_delete = models.PROTECT,
|
||||
related_name = "opesgroup")
|
||||
at = models.DateTimeField(auto_now_add = True)
|
||||
at = models.DateTimeField(default=timezone.now)
|
||||
amount = models.DecimalField(
|
||||
max_digits = 6, decimal_places = 2,
|
||||
default = 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue