tendril.sourcing.orders module

This file is part of tendril See the COPYING, README, and INSTALL files for more information

class tendril.sourcing.orders.CompositeOrderElem(order, ident, rqty, shortage)[source]

Bases: object

get_eff_acq_price(source)[source]
ident
in_gsymlib
rqty
resqty
shortage
gl_compl_qty
sources
selsource
sorted_other_sources
other_sources
excess(vsinfo)[source]
is_sourceable
order()[source]
class tendril.sourcing.orders.CompositeOrder(vendor_list=None, orderref=None)[source]

Bases: object

_columns = [('Component Details', [('Ident', None), ('In gsymlib', None)]), ('Requirement', [('Required', 'Qty'), ('Reserved', 'Qty'), ('Shortage', 'Qty')]), ('Guideline Compliant', [('Buy Qty', 'Qty')]), ('Order Details', [('Vendor', None), ('Vendor Part No', None), ('Manufacturer', None), ('Manufacturer Part No', None), ('Description', None)]), ('Vendor Pricing', [('Vendor Currency', None), ('Next Break Qty', 'Qty'), ('NB Unit Price', '(VC)'), ('NB Extended Price', '(VC)'), ('Used Break Qty', '(VC)'), ('UB Unit Price', '(VC)'), ('UB Extended Price', '(VC)')]), ('Order Pricing', [('Lower Break Unit Price', 'INR'), ('Unit Price', 'INR'), ('Effective Unit Price', 'INR'), ('Order Qty', 'Qty'), ('Excess Qty', 'Qty'), ('Effective Extended Price', 'INR'), ('Effective Excess Price', 'INR'), ('Excess Rationale', None)])]
orderref
add(ident, rqty, shortage, orderref=None)[source]
_get_headers(row)[source]
_render_vsinfo(vsinfo, row, basereq=None)[source]
_render_line(line, writer, include_others)[source]
dump_to_file(fname, include_others=True)[source]
generate_orders(path)[source]
rebalance()[source]
collapse()[source]