plans/listeners.py
def create_proforma_invoice(sender, instance, created, **kwargs):
    """
    For every Order if there are defined billing_data creates invoice proforma,
    which is an order confirmation document
    """
    if created:
        Invoice.create(instance, Invoice.INVOICE_TYPES['PROFORMA'])

    For every Order if there are defined billing_data creates invoice proforma,
    which is an order confirmation document
    
For every Order if there are defined billing_data creates invoice proforma,
which is an order confirmation document
For every Order if there are defined billing_data creates invoice proforma which is an order confirmation document
def create_proforma_invoice(sender, instance, created, **kwargs):
    if created:
        Invoice.create(instance, Invoice.INVOICE_TYPES['PROFORMA'])
def create_proforma_invoice ( sender , instance , created , ** kwargs ) : if created : Invoice . create ( instance , Invoice . INVOICE_TYPES [ 'PROFORMA' ] )
For every Order if there are defined billing_data creates invoice proforma,
which is an order confirmation document
For every Order if there are defined billing_data creates invoice proforma which is an order confirmation document
"""
    For every Order if there are defined billing_data creates invoice proforma,
    which is an order confirmation document
    """
sender
instance
created