+=

Brightcells 5 anni fa
parent
commit
0db478d1ab
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      commands/management/commands/sale.py

+ 3 - 3
commands/management/commands/sale.py

@@ -62,9 +62,9 @@ class Command(CompatibilityBaseCommand):
62 62
                         sale.distributor_name = d.distributor_name
63 63
                         sale.model_id = m.model_id
64 64
                         sale.is_important = m.is_important
65
-                        sale.yesterday_num = yesterday_num
66
-                        sale.current_month = current_month
67
-                        sale.last_month = last_month
65
+                        sale.yesterday_num += yesterday_num
66
+                        sale.current_month += current_month
67
+                        sale.last_month += last_month
68 68
                         sale.save()
69 69
 
70 70
             srs = SalesResponsibilityInfo.objects.filter(brand_id=b.brand_id, status=True)