(self, exclude_inferred_receipts=False)
return transactions
This adds in the inferred transactions for BALANCE transactions and converts
        TRANSFER transactions to ``consumption`` / ``receipts``
        :return: list of ``ConsumptionTransaction`` objects
This adds in the inferred transactions for BALANCE transactions and converts
        TRANSFER transactions to ``consumption`` / ``receipts``
        :return: list of ``ConsumptionTransaction`` objects
This adds in the inferred transactions for BALANCE transactions and converts TRANSFER transactions to consumption / receipts : return : list of ConsumptionTransaction objects
def get_consumption_transactions(self, exclude_inferred_receipts=False):
        """
        This adds in the inferred transactions for BALANCE transactions and converts
        TRANSFER transactions to ``consumption`` / ``receipts``
        :return: list of ``ConsumptionTransaction`` objects
        """
        from casexml.apps.stock.const import (
            TRANSACTION_TYPE_STOCKONHAND,
            TRANSACTION_TYPE_RECEIPTS,
            TRANSACTION_TYPE_CONSUMPTION
        )
        transactions = [
            ConsumptionTransaction(
                TRANSACTION_TYPE_RECEIPTS if self.delta > 0 else TRANSACTION_TYPE_CONSUMPTION,
                abs(self.delta),
                self.report_date
            )
        ]
        if self.type == LedgerTransaction.TYPE_BALANCE:
            if self.delta > 0 and exclude_inferred_receipts:
                transactions = []

            transactions.append(
                ConsumptionTransaction(
                    TRANSACTION_TYPE_STOCKONHAND,
                    self.updated_balance,
                    self.report_date
                )
            )
        return transactions
def get_consumption_transactions ( self , exclude_inferred_receipts = False ) : from casexml . apps . stock . const import ( TRANSACTION_TYPE_STOCKONHAND , TRANSACTION_TYPE_RECEIPTS , TRANSACTION_TYPE_CONSUMPTION ) transactions = [ ConsumptionTransaction ( TRANSACTION_TYPE_RECEIPTS if self . delta > 0 else TRANSACTION_TYPE_CONSUMPTION , abs ( self . delta ) , self . report_date ) ] if self . type == LedgerTransaction . TYPE_BALANCE : if self . delta > 0 and exclude_inferred_receipts : transactions = [ ] transactions . append ( ConsumptionTransaction ( TRANSACTION_TYPE_STOCKONHAND , self . updated_balance , self . report_date ) ) return transactions