1 parent d5d5b92 commit c0938acCopy full SHA for c0938ac
1 file changed
src/allocation/services.py
@@ -31,3 +31,13 @@ def allocate(
31
batchref = product.allocate(line)
32
uow.commit()
33
return batchref
34
+
35
36
+def change_batch_quantity(
37
+ ref: str, qty: int,
38
+ uow: unit_of_work.AbstractUnitOfWork
39
+):
40
+ with uow:
41
+ product = uow.products.get_by_batchref(batchref=ref)
42
+ product.change_batch_quantity(ref=ref, qty=qty)
43
+ uow.commit()
0 commit comments