Module ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str ListLoad Str Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad keyword AttributeLoad NameLoad attr keyword IfExp UnaryOpNot NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad GeneratorExp CompareIn AttributeLoad NameLoad attr TupleLoad Str NameLoad comprehension NameStore AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Return UnaryOpUSub AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad IfExp CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Str Return BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list
N/A collections namedtuple dimagi.ext jsonobject dimagi.utils parsing dateparse django.utils.translation ugettext _ corehq.apps.commtrack const corehq.apps.commtrack.const StockActions corehq.apps.commtrack.exceptions MissingProductId corehq.apps.commtrack.models CommtrackActionConfig corehq.apps.commtrack.xmlutil XML corehq.apps.products.models Product N/A UniqueLedgerReference N/A namedtuple UniqueLedgerReference N/A case_id section_id entry_id StockReportHelper N/A N/A jsonobject JsonObject N/A N/A 
    Intermediate class for dealing with stock XML
     N/A domain N/A N/A jsonobject StringProperty N/A form_id N/A N/A jsonobject StringProperty N/A timestamp N/A N/A jsonobject DateTimeProperty N/A tag N/A N/A jsonobject StringProperty N/A transactions N/A N/A jsonobject ListProperty N/A N/A N/A N/A StockTransactionHelper N/A server_date N/A N/A jsonobject DateTimeProperty N/A deprecated N/A N/A jsonobject BooleanProperty report_type N/A N/A self N/A N/A N/A N/A self tag N/A property make_from_form N/A N/A cls form timestamp tag transactions N/A N/A N/A deprecated N/A form is_deprecated N/A N/A cls domain N/A form domain form_id N/A N/A deprecated N/A form form_id N/A form orig_id timestamp timestamp tag tag transactions transactions server_date N/A form received_on deprecated deprecated N/A classmethod validate N/A N/A self N/A N/A N/A 
        Validates this object as best we can and raises Exceptions if we find anything invalid .
         N/A N/A any N/A N/A N/A transaction_helper product_id N/A None N/A transaction_helper N/A self transactions N/A N/A N/A MissingProductId N/A _ Product IDs must be set for all ledger updates! N/A N/A StockTransactionHelper N/A N/A jsonobject JsonObject N/A N/A 
    Helper class for transactions
     N/A product_id N/A N/A jsonobject StringProperty N/A action N/A N/A jsonobject StringProperty N/A subaction N/A N/A jsonobject StringProperty N/A domain N/A N/A jsonobject StringProperty N/A quantity N/A N/A jsonobject DecimalProperty N/A location_id N/A N/A jsonobject StringProperty N/A timestamp N/A N/A jsonobject DateTimeProperty N/A case_id N/A N/A jsonobject StringProperty N/A section_id N/A N/A jsonobject StringProperty ledger_reference N/A N/A self N/A N/A N/A N/A UniqueLedgerReference case_id N/A self case_id section_id N/A self section_id entry_id N/A self product_id N/A property relative_quantity N/A N/A self N/A N/A N/A 
        Gets the quantity of this transaction as a positive or negative number
        depending on the action/context
         N/A N/A N/A self action N/A N/A const StockActions CONSUMPTION N/A N/A N/A N/A self quantity N/A N/A N/A self quantity N/A property action_config N/A N/A self commtrack_config N/A N/A N/A action N/A CommtrackActionConfig action N/A self action subaction N/A self subaction N/A a N/A commtrack_config all_actions N/A N/A N/A N/A a name N/A action name N/A N/A a N/A None N/A date N/A N/A self N/A N/A N/A N/A self timestamp N/A N/A N/A N/A dateparse json_format_datetime N/A self timestamp N/A property to_xml N/A N/A self E N/A None kwargs N/A N/A N/A E N/A N/A E N/A XML N/A N/A N/A E entry id N/A self product_id quantity N/A str N/A N/A N/A self action N/A StockActions STOCKOUT N/A self quantity 0 N/A category N/A N/A self N/A N/A N/A stock N/A property fragment N/A N/A self N/A N/A N/A 
        A short string representation of this to be used in sms correspondence
         N/A N/A N/A self quantity None N/A N/A quant N/A self quantity N/A N/A quant N/A N/A %s%s N/A N/A N/A N/A N/A N/A Product get N/A self product_id code lower quant N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A {action} ({subaction}): {quantity} (loc: {location_id}, product: {product_id}) format action N/A self action subaction N/A self subaction quantity N/A self quantity location_id N/A self location_id product_id N/A self product_id N/A N/A