Module trase.tools.pcs.supply_chains.insert

Functions

def insert_supply_chain(supply_chain,
parent_ref_id=None,
copy_from_parent=True,
autocommit=True,
cnx=None,
cur=None,
**reference_kwargs) ‑> int

Insert a new reference and write a supply chain to it.

If copy_from_parent is True and parent_ref_id is supplied, reference fields not explicitly supplied in reference_kwargs will be copied from the parent.