This page contains developer documentation for the Supplier class importable from supplierclass_xxx - currently, more a notepad for me than real documentation.

For importing this class from the module, {xxx} can either be 'generic' or a key into suppliers.supplier_module which then bases on and extends the generic supplier class.

Public methods

Supplier.__init__()

(Supplier) = Supplier(
  [supID = 0]
  )

Data presentation

Supplier.__str__()

(string) = __str__()

Priceinfo maintenance

Supplier.update_priceinfo()

update_priceinfo(
  ID = '',
  [arg1 = None],
  [arg2 = None],
  [arg3 = None]
  )

Order generation

Supplier.format_order()

(string) = format_order(
  partlist = {},
  format = 'txt'
  )

{ n: {'quant': int, 'unitsize': int, 'ordercode': string, 'ppu': int, 'description': string, 'invID': int}, \
  n+1: {...}, \
  ...
}

Supplier.order_supported_formats()

([string, ...]) = order_supported_formats()

Private methods

Order generation

format_order_XXX()

(string) = format_order_XXX(
  partlist = []
  )


CategoryComputer


THIS DATA IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DATA, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

All product and brand names mentioned on there pages and in the source code are registered names and/or trademarks of the respective owner and are mentioned for identification purposes only.

For a full copyright notice, please see this link. For imprint and contact information, please see http://www.thiemo.net/.

EloInv/SupplierObject (last edited 2010-01-04 11:42:28 by ThiemoNordenholz)