def apply_discount(line, discount, quantity, offer=None):
    '\n    Apply a given discount to the passed basket\n    '
    line.discount(discount, quantity, incl_tax=False, offer=offer)
Apply a given discount to the passed basket
def apply_discount(line, discount, quantity, offer=None):
    '\n    \n    '
    line.discount(discount, quantity, incl_tax=False, offer=offer)