[IMP] purchase: Hook for the quantity of a purchase line