Acquire.Accounting._lineitem module

class LineItem(uid=None, authorisation=None)[source]

Bases: object

This class holds the data for a line item in the account. This holds basic information about the item, e.g. its UID and authorisation

authorisation()[source]

Return the authorisation that was used to authorise this action

static from_data(data)[source]

Return a LineItem constructed from the json-decoded dictionary

is_null()[source]

Return whether or not this is a null line item

to_data()[source]

Return this object as a dictionary that can be serialised to json

uid()[source]

Return the UID of the TransactionRecord that provides more information about this line item in the ledger