def is_payment_event_permitted(self, event_type, quantity):
        current_qty = self.payment_event_quantity(event_type)
        return (current_qty + quantity) <= self.quantity
Show or hide the signature editor widget
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/order/abstract_models.py/AbstractLine.is_payment_event_permitted--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/dialogs/link_editor/qt/link_editor.py/LinkEditor._toggle_advanced