Never Ever mix unit of work actions with atomic operations, also max_allowed_quantity is not something tgext.ecommerce is aware of, is application specific