|
@@ -7,7 +7,7 @@ class process_transaction(abstract_process):
|
|
def create(self, transactions):
|
|
def create(self, transactions):
|
|
res = dict()
|
|
res = dict()
|
|
for t in transactions:
|
|
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
|
|
v = t.amount * t.transaction_type
|
|
if k in res.keys():
|
|
if k in res.keys():
|
|
res[k] += v
|
|
res[k] += v
|