'Save a snapshot of the invoice\'s current state.
Arguments:
invoice (Invoice): The invoice to save.'

@classmethod
def save_invoice_snapshot(cls, invoice):

    cls.objects.create(invoice=invoice, snapshot=json.dumps(invoice.snapshot()))
