Class s.d.p.ProductAdaptToStorable(ModelAdapter):

Part of stoqlib.domain.product View In Hierarchy

A product implementation as a storable facet.
Method _check_logic_quantity Undocumented
Method _check_rejected_stocks Undocumented
Method _has_qty_available Undocumented
Method _get_stocks Undocumented
Method add_item Undocumented
Method get_items Undocumented
Method remove_item Undocumented
Method product Undocumented
Method increase_stock Undocumented
Method decrease_stock Undocumented
Method increase_logic_stock Undocumented
Method decrease_logic_stock Undocumented
Method get_full_balance Get the stock balance and the logic balance.
Method get_logic_balance Undocumented
Method get_average_stock_price Undocumented
Method has_stock_by_branch Undocumented
Method get_stock_items Undocumented
Method get_stock_item Undocumented

Inherited from ModelAdapter:

Method __init__ Creates a new Adapted for adaptable

Inherited from AbstractModel (via ModelAdapter, BaseDomain):

Method __ne__ Undocumented
Method __eq__ Undocumented
Method _create Undocumented
Method _SO_setValue Undocumented
Method clone Get a persistent copy of an existent object. Remember that we can
Method get_connection Undocumented

Inherited from ORMObjectAdapter (via ModelAdapter):

Method get_adapted Get the adapted object

Inherited from Adapter (via ModelAdapter, ORMObjectAdapter):

Method __ne__ Undocumented
Method __eq__ Undocumented
Method __conform__ Undocumented
def _check_logic_quantity(self):
Undocumented
def _check_rejected_stocks(self, stocks, quantity, check_logic=False):
Undocumented
def _has_qty_available(self, quantity, branch):
Undocumented
@argcheck(Person.getAdapterClass(IBranch))
def _get_stocks(self, branch=None):
Undocumented
def add_item(self, item):
Undocumented
def get_items(self):
Undocumented
def remove_item(self, item):
Undocumented
@property
def product(self):
Undocumented
def increase_stock(self, quantity, branch):
Undocumented
def decrease_stock(self, quantity, branch):
Undocumented
def increase_logic_stock(self, quantity, branch=None):
Undocumented
def decrease_logic_stock(self, quantity, branch=None):
Undocumented
def get_full_balance(self, branch=None):
Get the stock balance and the logic balance.
def get_logic_balance(self, branch=None):
Undocumented
def get_average_stock_price(self):
Undocumented
def has_stock_by_branch(self, branch):
Undocumented
def get_stock_items(self):
Undocumented
def get_stock_item(self, branch):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.