6 lines
392 B
Python
6 lines
392 B
Python
from inventory.services import record_stock_movement, StockMovementType
|
|
def dispense_item(*, tenant, item_id, location_id, qty, performed_by, reference=None):
|
|
return record_stock_movement(
|
|
tenant=tenant, item_id=item_id, location_id=location_id, qty=qty,
|
|
movement_type=StockMovementType.ISSUE, performed_by=performed_by, reference=reference, note="Pharmacy dispense"
|
|
) |