adjust

FFIB 5 anos atrás
pai
commit
71ec900d37
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      commands/management/commands/sale.py

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

@@ -38,7 +38,7 @@ class Command(CompatibilityBaseCommand):
38 38
             distributors = DistributorInfo.objects.filter(brand_id=b.brand_id, status=True)
39 39
             models = ModelInfo.objects.filter(brand_id=b.brand_id, status=True)
40 40
             for m in models:
41
-                logs = SaleclerkSubmitLogInfo.objects.filter(model_pk=m.pk, dupload=False, test_sn=False, ym__gle=lastmonth, status=True)
41
+                logs = SaleclerkSubmitLogInfo.objects.filter(model_pk=m.pk, dupload=False, test_sn=False, ym__gte=lastmonth, status=True)
42 42
                 for d in distributors:
43 43
                     saleclerks = SaleclerkInfo.objects.filter(brand_id=b.brand_id, distributor_id=d.distributor_id, status=True)
44 44
                     yesterday_num = 0