-- Table: adempiere.i_estimationjp

-- DROP TABLE adempiere.i_estimationjp;

CREATE TABLE adempiere.i_estimationjp
(
    i_estimationjp_id numeric(10) NOT NULL,
    ad_client_id numeric(10),
    ad_org_id numeric(10),
    ad_orgtrx_id numeric(10),
    isactive character(1) COLLATE pg_catalog."default" DEFAULT 'Y'::bpchar,
    created timestamp without time zone NOT NULL DEFAULT statement_timestamp(),
    createdby numeric(10),
    updated timestamp without time zone NOT NULL DEFAULT statement_timestamp(),
    updatedby numeric(10),
    i_isimported character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'N'::bpchar,
    i_errormsg character varying(2000) COLLATE pg_catalog."default",
    processing character(1) COLLATE pg_catalog."default",
    processed character(1) COLLATE pg_catalog."default" DEFAULT 'N'::bpchar,
    salesrep_id numeric(10),
    m_warehouse_id numeric(10),
    m_pricelist_id numeric(10),
    c_currency_id numeric(10),
    m_shipper_id numeric(10),
    issotrx character(1) COLLATE pg_catalog."default" DEFAULT 'Y'::bpchar,
    c_bpartner_id numeric(10),
    bpartnervalue character varying(40) COLLATE pg_catalog."default",
    name character varying(60) COLLATE pg_catalog."default",
    c_bpartner_location_id numeric(10),
    billto_id numeric(10),
    c_location_id numeric(10),
    address1 character varying(60) COLLATE pg_catalog."default",
    address2 character varying(60) COLLATE pg_catalog."default",
    postal character varying(10) COLLATE pg_catalog."default",
    city character varying(60) COLLATE pg_catalog."default",
    c_region_id numeric(10),
    regionname character varying(60) COLLATE pg_catalog."default",
    c_country_id numeric(10),
    countrycode character(2) COLLATE pg_catalog."default",
    ad_user_id numeric(10),
    contactname character varying(60) COLLATE pg_catalog."default",
    email character varying(60) COLLATE pg_catalog."default",
    phone character varying(40) COLLATE pg_catalog."default",
    c_project_id numeric(10),
    c_activity_id numeric(10),
    c_doctype_id numeric(10),
    doctypename character varying(60) COLLATE pg_catalog."default",
    JP_DocTypeSO_id numeric(10),
    JP_DocTypeNameSO character varying(60) COLLATE pg_catalog."default",
    c_paymentterm_id numeric(10),
    paymenttermvalue character varying(40) COLLATE pg_catalog."default",
    jp_estimation_id numeric(10),
    documentno character varying(30) COLLATE pg_catalog."default",
    dateordered timestamp without time zone,
    dateacct timestamp without time zone,
    description character varying(255) COLLATE pg_catalog."default",
    m_product_id numeric(10),
    productvalue character varying(40) COLLATE pg_catalog."default",
    upc character varying(30) COLLATE pg_catalog."default",
    sku character varying(30) COLLATE pg_catalog."default",
    c_tax_id numeric(10),
    taxindicator character varying(10) COLLATE pg_catalog."default",
    taxamt numeric DEFAULT 0,
    jp_estimationline_id numeric(10),
    linedescription character varying(255) COLLATE pg_catalog."default",
    c_uom_id numeric(10),
    qtyordered numeric DEFAULT 0,
    priceactual numeric DEFAULT 0,
    freightamt numeric DEFAULT 0,
    c_campaign_id numeric(10),
    c_charge_id numeric(10),
    chargename character varying(60) COLLATE pg_catalog."default",
    c_ordersource_id numeric(10) DEFAULT NULL::numeric,
    c_ordersourcevalue character varying(40) COLLATE pg_catalog."default" DEFAULT NULL::character varying,
    deliveryrule character(1) COLLATE pg_catalog."default",
    i_estimationjp_uu character varying(36) COLLATE pg_catalog."default" DEFAULT NULL::character varying,
    datepromised timestamp without time zone,
    paymentrule character(1) COLLATE pg_catalog."default",
    invoicerule character(1) COLLATE pg_catalog."default",
    freightcostrule character(1) COLLATE pg_catalog."default",
    priorityrule character(1) COLLATE pg_catalog."default",
    deliveryviarule character(1) COLLATE pg_catalog."default",
    qtyentered numeric,
    CONSTRAINT i_estimationjp_pkc PRIMARY KEY (i_estimationjp_id)
)
WITH (
    OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE adempiere.i_estimationjp
    OWNER to adempiere;