Browse Source

Removed timespan fro keys in process_transaction

Vsevolod Levitan 1 year ago
parent
commit
b71df76a45
1 changed files with 1 additions and 1 deletions
  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