Part of stoqlib.domain.interfaces View In Hierarchy
Method | increase_stock | When receiving a product, update the stock reference for this new |
Method | decrease_stock | When receiving a product, update the stock reference for the sold item |
Method | increase_logic_stock | When receiving a product, update the stock logic quantity |
Method | decrease_logic_stock | When selling a product, update the stock logic reference for the sold |
Method | get_full_balance | Return the stock balance for the current product. If a branch |
Method | get_logic_balance | Return the stock logic balance for the current product. If a branch |
Method | get_average_stock_price | Average stock price is: SUM(total_cost attribute, StockItem |
Method | get_stock_item | Fetch a stock item for a specific branch |
Method | get_stock_items | Fetches the stock items available for all branches. |
Method | has_stock_by_branch | Returns True if there is at least one item on stock for the |
Parameters | quantity | amount to increase |
branch | an object implement IBranch |
Parameters | quantity | amount to decrease |
branch | an object implement IBranch |