Table alter.public.mis_pos
Tabella degli ordini d'acquisto. (Purchase Orders)

Generated by
SchemaSpy
Implied relationships Related columns Constraint names Comments Legend
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
Dashed lines show
implied relationships
< n > number of related tables
Please support this project 
Column Type Size Nulls Auto Default Children Parents Comments
po_id int4 10
mis_fast_po_lines.po_id Implied Constraint
mis_fast_pos.po_id Implied Constraint
mis_fast_rec_notes.po_id Implied Constraint
mis_po_lines.po_id mis_po_lines_po_id_fk
mis_rec_notes.po_id mis_rec_notes_po_id_fkey
acs_objects.object_id mis_pos_po_id_fk
po_code varchar 20
po_date date 13
po_type varchar 3 PO=Purchase Order RDO=Richiesta D'Offerta
account_id int4 10  √  null
mis_accounts.account_id mis_mrs_account_id_fk
Imputazione del materiale acquistato.
Il riferimento può essere al cliente oppure ad una specifica commessa (per la quale è stato definito un'apposito conto)
oppure ad una commessa di magazzino. Quest'ultima viene assunta per default in caso di omissione.
vendor_id int4 10
mis_parties.party_id mis_pos_vendor_id_fk
mr_id int4 10  √  null
mis_mrs.mr_id mis_pos_mr_id_fk
Il normale ciclo passivo prevede la predisposizione di una RDA, che sarà evasa da un ordine d'acquisto (PO) ed
in questo caso la colonna mr_id fa riferimento alla RDA originante. Notare che, per scelta progettuale, un PO
può evadere una ed una sola RDA.

Un PO può anche essere creato direttamente, ed in questo caso mr_id deve essere nullo.
language_id bpchar 2  √  null
language_codes.language_id mis_pos_fk_language_id
bank_id int4 10  √  null
mis_banks.bank_id mis_pos_fk_bank_id
port_id int4 10  √  null
categories.category_id mis_pos_fk_port_id
payment_id int4 10  √  null
mis_payments.payment_id mis_pos_fk_payment_id
shipping_id int4 10  √  null
categories.category_id mis_pos_fk_shipping_id
guarantee_id int4 10  √  null
categories.category_id mis_pos_fk_guarantee_id
currency bpchar 3  √  null
currencies.codea mis_pos_currency_fk
store_id int4 10  √  null
mis_stores.store_id mis_pos_store_id_fk
Magazzino a cui è destinato il materiale. La quantità 'on_order' verrà registrata nel record inventariale
corrispondente a questo magazzino. (verrà impostato per default su tutte le righe)
carrier_id int4 10  √  null
categories.category_id mis_pos_fk_carrier_id
packaging_id int4 10  √  null
categories.category_id mis_pos_fk_packaging_id
date_requested date 13  √  null Indica la prima data di consegna richiesta (verrà impostata per default su tutte le righe)
is_approved_p bool 1  √  null Indica se il PO è stato confermato.
is_printed_p bool 1  √  null Indica se il PO è stato stampato e spedito al fornitore.
delivery_state bpchar 1  √  null N=Non ricevuto P=Parzialmente ricevuto C=chiuso
description text 2147483647  √  null
ack_required_p bool 1  √  null

Table contained 112 rows at Fri Feb 29 12:05 CET 2008

Indexes:
Column(s) Type Sort Constraint Name
po_id Primary key Asc mis_pos_pkey
po_code Performance Asc mis_pos_indx_po_code
vendor_id Performance Asc mis_pos_indx_vendor_id

Close relationships  within one two degrees of separation :