Browse Source

Removed timespan fro keys in process_transaction

Vsevolod Levitan 1 năm trước cách đây
mục cha
commit
b71df76a45
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/logic/process_transaction.py

+ 1 - 1
src/logic/process_transaction.py

@@ -7,7 +7,7 @@ class process_transaction(abstract_process):
     def create(self, transactions):
         res = dict()
         for t in transactions:
-            k = (t.warehouse, t.nomenclature, t.measurement_unit, t.time_span)
+            k = (t.warehouse, t.nomenclature, t.measurement_unit)
             v = t.amount * t.transaction_type
             if k in res.keys():
                 res[k] += v