Acquire.Accounting._debitnote module

class DebitNote(transaction=None, account=None, authorisation=None, is_provisional=False, receipt_by=None, receipt=None, refund=None, bucket=None)[source]

Bases: object

This class holds all of the information about a completed debit. This is combined with credit note of equal value to form a transaction record

account_uid()[source]

Return the UID of the account that was debited

authorisation()[source]

Return the authorisation that was used successfully to withdraw value from the debited account

datetime()[source]

Return the datetime for when value was debited from the account

static from_data(data)[source]

Return a DebitNote that has been extracted from the passed json-decoded dictionary

is_null()[source]

Return whether or not this is a null note

is_provisional()[source]

Return whether or not the debit was provisional. Provisional debits are listed as liabilities

needs_receipting()[source]

Return whether or not this DebitNote transaction needs receipting - if it does, then it must be receipted by the CreditNote before DebitNote.receipt_by(). If this does

receipt_by()[source]

Return the datetime by which this DebitNote must be receipted via the CreditNote, else the transaction will be automatically refunded. This will return ‘None’ if the transaction has already been receipted or it wasn’t provisional

to_data()[source]

Return this DebitNote as a dictionary that can be encoded as json

transaction()[source]

Return the transaction related to this debit note

uid()[source]

Return the UID for this note. This has the format dd:mm:yyyy/unique_string

value()[source]

Return the value of this note