Acquire.Accounting._creditnote module¶
-
class
CreditNote(debit_note=None, account=None, receipt=None, refund=None, bucket=None)[source]¶ Bases:
objectThis class holds all of the information about a completed credit. This is combined with a debit note of equal value to form a transaction record
-
debit_note_uid()[source]¶ Return the UID of the debit note that matches this credit note. While at the moment only a single credit note matches a debit note, it may be in the future that we divide a credit over several accounts (and thus several credit notes)
-
static
from_data(data)[source]¶ Construct and return a new CreditNote from the passed json-decoded dictionary
-
is_provisional()[source]¶ Return whether or not this credit note is provisional (i.e. the value will only be transferred on completion of work and provision of a receipt. Note that the value will only be transferred if this CreditNote is receipted before CreditNote.receipt_by())
-
needs_receipting()[source]¶ Return whether or not this CreditNote needs to be receipted. If so, then the funds are only held provisionally, and must be receipted by CreditNote.receipt_by() else they will be returned to the DebitNote account
-
receipt_by()[source]¶ Return the datetime by which this credit note must be receipted, or else the funds will be returned. This will return None if the CreditNote does not need receipting
-