--
-- PostgreSQL database dump
--

-- Dumped from database version 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)
-- Dumped by pg_dump version 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Name: tax; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA tax;


ALTER SCHEMA tax OWNER TO postgres;

--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: 
--

CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;


--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';


--
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: 
--

CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;


--
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';


--
-- Name: custom_data_export_query_parameter_default_value_type_enum; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.custom_data_export_query_parameter_default_value_type_enum AS ENUM (
    'none',
    'current_user_login',
    'sql_query',
    'fixed_value'
);


ALTER TYPE public.custom_data_export_query_parameter_default_value_type_enum OWNER TO postgres;

--
-- Name: custom_data_export_query_parameter_type_enum; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.custom_data_export_query_parameter_type_enum AS ENUM (
    'text',
    'number',
    'date',
    'timestamp'
);


ALTER TYPE public.custom_data_export_query_parameter_type_enum OWNER TO postgres;

--
-- Name: datev_export_format_enum; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.datev_export_format_enum AS ENUM (
    'cp1252',
    'cp1252-translit',
    'utf-8'
);


ALTER TYPE public.datev_export_format_enum OWNER TO postgres;

--
-- Name: dunning_creator; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.dunning_creator AS ENUM (
    'current_employee',
    'invoice_employee'
);


ALTER TYPE public.dunning_creator OWNER TO postgres;

--
-- Name: invoice_mail_settings; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.invoice_mail_settings AS ENUM (
    'cp',
    'invoice_mail',
    'invoice_mail_cc_cp'
);


ALTER TYPE public.invoice_mail_settings OWNER TO postgres;

--
-- Name: part_type_enum; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.part_type_enum AS ENUM (
    'part',
    'service',
    'assembly',
    'assortment'
);


ALTER TYPE public.part_type_enum OWNER TO postgres;

--
-- Name: record_template_type; Type: TYPE; Schema: public; Owner: postgres
--

CREATE TYPE public.record_template_type AS ENUM (
    'ar_transaction',
    'ap_transaction',
    'gl_transaction'
);


ALTER TYPE public.record_template_type OWNER TO postgres;

--
-- Name: add_parts_price_history_entry(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.add_parts_price_history_entry() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    IF      (TG_OP = 'UPDATE')
        AND ((OLD.lastcost  IS NULL AND NEW.lastcost  IS NULL) OR (OLD.lastcost  = NEW.lastcost))
        AND ((OLD.listprice IS NULL AND NEW.listprice IS NULL) OR (OLD.listprice = NEW.listprice))
        AND ((OLD.sellprice IS NULL AND NEW.sellprice IS NULL) OR (OLD.sellprice = NEW.sellprice)) THEN
      RETURN NEW;
    END IF;

    INSERT INTO parts_price_history (part_id, lastcost, listprice, sellprice, valid_from)
    VALUES (NEW.id, NEW.lastcost, NEW.listprice, NEW.sellprice, now());

    RETURN NEW;
  END;
$$;


ALTER FUNCTION public.add_parts_price_history_entry() OWNER TO postgres;

--
-- Name: chart_category_to_sgn(character); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.chart_category_to_sgn(character) RETURNS integer
    LANGUAGE sql
    AS $_$SELECT  1 WHERE $1 IN ('I', 'L', 'Q')
      UNION 
    SELECT -1 WHERE $1 IN ('E', 'A')$_$;


ALTER FUNCTION public.chart_category_to_sgn(character) OWNER TO postgres;

--
-- Name: check_bin_belongs_to_wh(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.check_bin_belongs_to_wh() RETURNS trigger
    LANGUAGE plpgsql
    AS $$BEGIN
        IF NEW.bin_id IS NULL AND NEW.warehouse_id IS NULL THEN
          RETURN NEW;
        END IF;
        IF NEW.bin_id IN (SELECT id FROM bin WHERE warehouse_id = NEW.warehouse_id) THEN
          RETURN NEW;
        ELSE
          RAISE EXCEPTION 'bin (id=%) does not belong to warehouse (id=%).', NEW.bin_id, NEW.warehouse_id;
          RETURN NULL;
        END IF;
      END;$$;


ALTER FUNCTION public.check_bin_belongs_to_wh() OWNER TO postgres;

--
-- Name: clean_up_acc_trans_after_ar_ap_gl_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_acc_trans_after_ar_ap_gl_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM acc_trans WHERE trans_id = OLD.id;
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_acc_trans_after_ar_ap_gl_delete() OWNER TO postgres;

--
-- Name: clean_up_after_customer_vendor_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_after_customer_vendor_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM contacts
    WHERE cp_cv_id = OLD.id;

    DELETE FROM shipto
    WHERE (trans_id = OLD.id)
      AND (module   = 'CT');

    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_after_customer_vendor_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_ap_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_ap_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'ap' AND from_id = OLD.id)
         OR (to_table   = 'ap' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_ap_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_ar_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_ar_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'ar' AND from_id = OLD.id)
         OR (to_table   = 'ar' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_ar_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_delivery_order_items_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_delivery_order_items_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'delivery_order_items' AND from_id = OLD.id)
         OR (to_table   = 'delivery_order_items' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_delivery_order_items_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_delivery_orders_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_delivery_orders_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'delivery_orders' AND from_id = OLD.id)
         OR (to_table   = 'delivery_orders' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_delivery_orders_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_gl_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_gl_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'gl' AND from_id = OLD.id)
         OR (to_table   = 'gl' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_gl_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_invoice_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_invoice_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'invoice' AND from_id = OLD.id)
         OR (to_table   = 'invoice' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_invoice_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_letter_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_letter_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'letter' AND from_id = OLD.id)
         OR (to_table   = 'letter' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_letter_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_oe_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_oe_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'oe' AND from_id = OLD.id)
         OR (to_table   = 'oe' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_oe_delete() OWNER TO postgres;

--
-- Name: clean_up_record_links_before_orderitems_delete(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.clean_up_record_links_before_orderitems_delete() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM record_links
      WHERE (from_table = 'orderitems' AND from_id = OLD.id)
         OR (to_table   = 'orderitems' AND to_id   = OLD.id);
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.clean_up_record_links_before_orderitems_delete() OWNER TO postgres;


ALTER FUNCTION public.delete_custom_variables_trigger() OWNER TO postgres;

--
-- Name: delete_custom_variables_with_sub_module(text, text, integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.delete_custom_variables_with_sub_module(config_module text, cvar_sub_module text, old_id integer) RETURNS boolean
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM custom_variables
    WHERE EXISTS (SELECT id FROM custom_variable_configs cfg WHERE (cfg.module = config_module) AND (custom_variables.config_id = cfg.id))
      AND (COALESCE(sub_module, '') = cvar_sub_module)
      AND (trans_id                 = old_id);

    RETURN TRUE;
  END;
$$;


ALTER FUNCTION public.delete_custom_variables_with_sub_module(config_module text, cvar_sub_module text, old_id integer) OWNER TO postgres;

--
-- Name: delete_requirement_spec_custom_variables_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.delete_requirement_spec_custom_variables_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM custom_variables WHERE (sub_module = '' OR sub_module IS NULL)
                                   AND trans_id = OLD.id
                                   AND (SELECT module FROM custom_variable_configs WHERE id = config_id) = 'RequirementSpecs';

    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.delete_requirement_spec_custom_variables_trigger() OWNER TO postgres;

--
-- Name: delivery_orders_before_delete_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.delivery_orders_before_delete_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
        BEGIN
          DELETE FROM status                     WHERE trans_id = OLD.id;
          DELETE FROM delivery_order_items_stock WHERE delivery_order_item_id IN (SELECT id FROM delivery_order_items WHERE delivery_order_id = OLD.id);
          DELETE FROM shipto                     WHERE (trans_id = OLD.id) AND (module = 'OE');

          RETURN OLD;
        END;
      $$;


ALTER FUNCTION public.delivery_orders_before_delete_trigger() OWNER TO postgres;

--
-- Name: first_agg(anyelement, anyelement); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.first_agg(anyelement, anyelement) RETURNS anyelement
    LANGUAGE sql IMMUTABLE STRICT
    AS $_$
  SELECT $1;
$_$;


ALTER FUNCTION public.first_agg(anyelement, anyelement) OWNER TO postgres;

--
-- Name: follow_up_close_when_oe_closed_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.follow_up_close_when_oe_closed_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    IF COALESCE(NEW.closed, FALSE) AND NOT COALESCE(OLD.closed, FALSE) THEN
      UPDATE follow_ups
      SET done = TRUE
      WHERE id IN (
        SELECT follow_up_id
        FROM follow_up_links
        WHERE (trans_id   = NEW.id)
          AND (trans_type IN ('sales_quotation',   'sales_order',    'sales_delivery_order',
                              'request_quotation', 'purchase_order', 'purchase_delivery_order'))
      );
    END IF;

    RETURN NEW;
  END;
$$;


ALTER FUNCTION public.follow_up_close_when_oe_closed_trigger() OWNER TO postgres;

--
-- Name: follow_up_delete_notes_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.follow_up_delete_notes_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM notes
    WHERE (trans_id     = OLD.id)
      AND (trans_module = 'fu');
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.follow_up_delete_notes_trigger() OWNER TO postgres;


ALTER FUNCTION public.follow_up_delete_when_customer_vendor_is_deleted_trigger() OWNER TO postgres;

--
-- Name: follow_up_delete_when_oe_is_deleted_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.follow_up_delete_when_oe_is_deleted_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM follow_ups
    WHERE id IN (
      SELECT follow_up_id
      FROM follow_up_links
      WHERE (trans_id   = OLD.id)
        AND (trans_type IN ('sales_quotation',   'sales_order',    'sales_delivery_order',    'sales_invoice',
                            'request_quotation', 'purchase_order', 'purchase_delivery_order', 'purchase_invoice'))
    );

    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.follow_up_delete_when_oe_is_deleted_trigger() OWNER TO postgres;

--
-- Name: generic_translations_delete_on_delivery_terms_delete_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.generic_translations_delete_on_delivery_terms_delete_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM generic_translations
      WHERE translation_id = OLD.id AND translation_type LIKE 'SL::DB::DeliveryTerm/description_long';
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.generic_translations_delete_on_delivery_terms_delete_trigger() OWNER TO postgres;

--
-- Name: generic_translations_delete_on_payment_terms_delete_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.generic_translations_delete_on_payment_terms_delete_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM generic_translations
    WHERE (translation_id = OLD.id)
      AND (translation_type IN ('SL::DB::PaymentTerm/description_long', 'SL::DB::PaymentTerm/description_long_invoice'));
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.generic_translations_delete_on_payment_terms_delete_trigger() OWNER TO postgres;

--
-- Name: generic_translations_delete_on_tax_delete_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.generic_translations_delete_on_tax_delete_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  BEGIN
    DELETE FROM generic_translations
      WHERE translation_id = OLD.id AND translation_type LIKE 'SL::DB::Tax/taxdescription';
    RETURN OLD;
  END;
$$;


ALTER FUNCTION public.generic_translations_delete_on_tax_delete_trigger() OWNER TO postgres;

--
-- Name: oe_before_delete_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.oe_before_delete_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
        BEGIN
          DELETE FROM status WHERE trans_id = OLD.id;
          DELETE FROM shipto WHERE (trans_id = OLD.id) AND (module = 'OE');

          RETURN OLD;
        END;
      $$;


ALTER FUNCTION public.oe_before_delete_trigger() OWNER TO postgres;

--
-- Name: recalculate_all_spec_item_time_estimations(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.recalculate_all_spec_item_time_estimations() RETURNS boolean
    LANGUAGE plpgsql
    AS $$
  DECLARE
    rspec RECORD;
  BEGIN
    FOR rspec IN SELECT id FROM requirement_specs LOOP
      PERFORM recalculate_spec_item_time_estimation(rspec.id);
    END LOOP;

    RETURN TRUE;
  END;
$$;


ALTER FUNCTION public.recalculate_all_spec_item_time_estimations() OWNER TO postgres;

--
-- Name: recalculate_spec_item_time_estimation(integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.recalculate_spec_item_time_estimation(the_requirement_spec_id integer) RETURNS boolean
    LANGUAGE plpgsql
    AS $$
  DECLARE
    item RECORD;
  BEGIN
    FOR item IN
      SELECT DISTINCT parent_id
      FROM requirement_spec_items
      WHERE (requirement_spec_id = the_requirement_spec_id)
        AND (item_type           = 'sub-function-block')
    LOOP
      RAISE DEBUG 'hmm function-block with sub: %', item.parent_id;
      PERFORM update_requirement_spec_item_time_estimation(item.parent_id, the_requirement_spec_id);
    END LOOP;

    FOR item IN
      SELECT DISTINCT parent_id
      FROM requirement_spec_items
      WHERE (requirement_spec_id = the_requirement_spec_id)
        AND (item_type           = 'function-block')
        AND (id NOT IN (
          SELECT parent_id
          FROM requirement_spec_items
          WHERE (requirement_spec_id = the_requirement_spec_id)
            AND (item_type           = 'sub-function-block')
        ))
    LOOP
      RAISE DEBUG 'hmm section with function-block: %', item.parent_id;
      PERFORM update_requirement_spec_item_time_estimation(item.parent_id, the_requirement_spec_id);
    END LOOP;

    PERFORM update_requirement_spec_item_time_estimation(NULL, the_requirement_spec_id);

    RETURN TRUE;
  END;
$$;


ALTER FUNCTION public.recalculate_spec_item_time_estimation(the_requirement_spec_id integer) OWNER TO postgres;


ALTER FUNCTION public.requirement_spec_delete_trigger() OWNER TO postgres;


ALTER FUNCTION public.requirement_spec_item_before_delete_trigger() OWNER TO postgres;

--
-- Name: requirement_spec_item_time_estimation_updater_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.requirement_spec_item_time_estimation_updater_trigger() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  DECLARE
    do_new BOOLEAN;
  BEGIN
    RAISE DEBUG 'updateRSITE op %', TG_OP;
    IF ((TG_OP = 'UPDATE') OR (TG_OP = 'DELETE')) THEN
      RAISE DEBUG 'UPDATE trigg op % OLD.id % OLD.parent_id %', TG_OP, OLD.id, OLD.parent_id;
      PERFORM update_requirement_spec_item_time_estimation(OLD.parent_id, OLD.requirement_spec_id);
      RAISE DEBUG 'UPDATE trigg op % END %', TG_OP, OLD.id;
    END IF;
    do_new = FALSE;

    IF (TG_OP = 'UPDATE') THEN
      do_new = OLD.parent_id <> NEW.parent_id;
    END IF;

    IF (do_new OR (TG_OP = 'INSERT')) THEN
      RAISE DEBUG 'UPDATE trigg op % NEW.id % NEW.parent_id %', TG_OP, NEW.id, NEW.parent_id;
      PERFORM update_requirement_spec_item_time_estimation(NEW.parent_id, NEW.requirement_spec_id);
      RAISE DEBUG 'UPDATE trigg op % END %', TG_OP, NEW.id;
    END IF;

    RETURN NULL;
  END;
$$;


ALTER FUNCTION public.requirement_spec_item_time_estimation_updater_trigger() OWNER TO postgres;

--
-- Name: set_mtime(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.set_mtime() RETURNS trigger
    LANGUAGE plpgsql
    AS $$    BEGIN        NEW.mtime := 'now';        RETURN NEW;    END;$$;


ALTER FUNCTION public.set_mtime() OWNER TO postgres;

--
-- Name: set_priceupdate_parts(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.set_priceupdate_parts() RETURNS trigger
    LANGUAGE plpgsql
    AS $$    BEGIN        NEW.priceupdate := 'now';        RETURN NEW;    END;$$;


ALTER FUNCTION public.set_priceupdate_parts() OWNER TO postgres;

--
-- Name: update_onhand(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.update_onhand() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
  IF tg_op = 'INSERT' THEN
    UPDATE parts SET onhand = COALESCE(onhand, 0) + new.qty WHERE id = new.parts_id;
    RETURN new;
  ELSIF tg_op = 'DELETE' THEN
    UPDATE parts SET onhand = COALESCE(onhand, 0) - old.qty WHERE id = old.parts_id;
    RETURN old;
  ELSE
    UPDATE parts SET onhand = COALESCE(onhand, 0) - old.qty + new.qty WHERE id = old.parts_id;
    RETURN new;
  END IF;
END;
$$;


ALTER FUNCTION public.update_onhand() OWNER TO postgres;


ALTER FUNCTION public.update_purchase_price() OWNER TO postgres;


ALTER FUNCTION public.update_requirement_spec_item_time_estimation(item_id integer, item_requirement_spec_id integer) OWNER TO postgres;

--
-- Name: first(anyelement); Type: AGGREGATE; Schema: public; Owner: postgres
--

CREATE AGGREGATE public.first(anyelement) (
    SFUNC = public.first_agg,
    STYPE = anyelement
);


ALTER AGGREGATE public.first(anyelement) OWNER TO postgres;

--
-- Name: acc_trans_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.acc_trans_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.acc_trans_id_seq OWNER TO postgres;

SET default_tablespace = '';

SET default_with_oids = false;

--
-- Name: acc_trans; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.acc_trans (
    acc_trans_id bigint DEFAULT nextval('public.acc_trans_id_seq'::regclass) NOT NULL,
    trans_id integer NOT NULL,
    chart_id integer NOT NULL,
    amount numeric(15,5),
    transdate date DEFAULT ('now'::text)::date,
    gldate date DEFAULT ('now'::text)::date,
    source text,
    cleared boolean DEFAULT false NOT NULL,
    fx_transaction boolean DEFAULT false NOT NULL,
    ob_transaction boolean DEFAULT false NOT NULL,
    cb_transaction boolean DEFAULT false NOT NULL,
    project_id integer,
    memo text,
    taxkey integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    chart_link text NOT NULL,
    tax_id integer NOT NULL
);


ALTER TABLE public.acc_trans OWNER TO postgres;

--
-- Name: ap; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ap (
    id integer DEFAULT nextval(('glid'::text)::regclass) NOT NULL,
    invnumber text NOT NULL,
    transdate date DEFAULT ('now'::text)::date,
    gldate date DEFAULT ('now'::text)::date,
    vendor_id integer,
    taxincluded boolean DEFAULT false,
    amount numeric(15,5) DEFAULT 0 NOT NULL,
    netamount numeric(15,5) DEFAULT 0 NOT NULL,
    paid numeric(15,5) DEFAULT 0 NOT NULL,
    datepaid date,
    duedate date,
    invoice boolean DEFAULT false,
    ordnumber text,
    notes text,
    employee_id integer,
    quonumber text,
    intnotes text,
    department_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    shipvia text,
    cp_id integer,
    language_id integer,
    payment_id integer,
    storno boolean DEFAULT false,
    taxzone_id integer NOT NULL,
    type text,
    orddate date,
    quodate date,
    globalproject_id integer,
    storno_id integer,
    transaction_description text,
    direct_debit boolean DEFAULT false,
    deliverydate date,
    delivery_term_id integer,
    currency_id integer NOT NULL
);


ALTER TABLE public.ap OWNER TO postgres;

--
-- Name: ar; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ar (
    id integer DEFAULT nextval(('glid'::text)::regclass) NOT NULL,
    invnumber text NOT NULL,
    transdate date DEFAULT ('now'::text)::date,
    gldate date DEFAULT ('now'::text)::date,
    customer_id integer,
    taxincluded boolean,
    amount numeric(15,5) DEFAULT 0 NOT NULL,
    netamount numeric(15,5) DEFAULT 0 NOT NULL,
    paid numeric(15,5) DEFAULT 0 NOT NULL,
    datepaid date,
    duedate date,
    deliverydate date,
    invoice boolean DEFAULT false,
    shippingpoint text,
    notes text,
    ordnumber text,
    employee_id integer,
    quonumber text,
    cusordnumber text,
    intnotes text,
    department_id integer,
    shipvia text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    cp_id integer,
    language_id integer,
    payment_id integer,
    delivery_customer_id integer,
    delivery_vendor_id integer,
    storno boolean DEFAULT false,
    taxzone_id integer NOT NULL,
    shipto_id integer,
    type text,
    dunning_config_id integer,
    orddate date,
    quodate date,
    globalproject_id integer,
    salesman_id integer,
    marge_total numeric(15,5),
    marge_percent numeric(15,5),
    storno_id integer,
    transaction_description text,
    donumber text,
    invnumber_for_credit_note text,
    direct_debit boolean DEFAULT false,
    delivery_term_id integer,
    currency_id integer NOT NULL
);


ALTER TABLE public.ar OWNER TO postgres;

--
-- Name: assembly_assembly_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.assembly_assembly_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.assembly_assembly_id_seq OWNER TO postgres;

SET default_with_oids = true;

--
-- Name: assembly; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.assembly (
    id integer NOT NULL,
    parts_id integer NOT NULL,
    qty real,
    bom boolean,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    assembly_id integer DEFAULT nextval('public.assembly_assembly_id_seq'::regclass) NOT NULL,
    "position" integer
);


ALTER TABLE public.assembly OWNER TO postgres;

SET default_with_oids = false;

--
-- Name: assortment_items; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.assortment_items (
    assortment_id integer NOT NULL,
    parts_id integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    qty real NOT NULL,
    "position" integer NOT NULL,
    unit character varying(20) NOT NULL,
    charge boolean DEFAULT true
);


ALTER TABLE public.assortment_items OWNER TO postgres;

--
-- Name: background_job_histories; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.background_job_histories (
    id integer NOT NULL,
    package_name character varying(255),
    run_at timestamp without time zone,
    status character varying(255),
    result text,
    error text,
    data text
);


ALTER TABLE public.background_job_histories OWNER TO postgres;

--
-- Name: background_job_histories_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.background_job_histories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.background_job_histories_id_seq OWNER TO postgres;

--
-- Name: background_job_histories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.background_job_histories_id_seq OWNED BY public.background_job_histories.id;


--
-- Name: background_jobs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.background_jobs (
    id integer NOT NULL,
    type character varying(255),
    package_name character varying(255),
    last_run_at timestamp without time zone,
    next_run_at timestamp without time zone,
    data text,
    active boolean,
    cron_spec character varying(255),
    node_id text
);


ALTER TABLE public.background_jobs OWNER TO postgres;

--
-- Name: background_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.background_jobs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.background_jobs_id_seq OWNER TO postgres;

--
-- Name: background_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.background_jobs_id_seq OWNED BY public.background_jobs.id;


--
-- Name: id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    MAXVALUE 2147483647
    CACHE 1;


ALTER TABLE public.id OWNER TO postgres;

--
-- Name: bank_transaction_acc_trans; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bank_transaction_acc_trans (
    bank_transaction_id integer NOT NULL,
    acc_trans_id bigint NOT NULL,
    ar_id integer,
    ap_id integer,
    gl_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.bank_transaction_acc_trans OWNER TO postgres;

--
-- Name: bank_transaction_acc_trans_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.bank_transaction_acc_trans_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.bank_transaction_acc_trans_id_seq OWNER TO postgres;

--
-- Name: bank_transactions; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bank_transactions (
    id integer NOT NULL,
    transaction_id integer,
    remote_bank_code text,
    remote_account_number text,
    transdate date NOT NULL,
    valutadate date NOT NULL,
    amount numeric(15,5) NOT NULL,
    remote_name text,
    purpose text,
    invoice_amount numeric(15,5) DEFAULT 0,
    local_bank_account_id integer NOT NULL,
    currency_id integer NOT NULL,
    cleared boolean DEFAULT false NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    transaction_code text,
    transaction_text text,
    CONSTRAINT bank_transactions_check CHECK ((abs(invoice_amount) <= abs(amount)))
);


ALTER TABLE public.bank_transactions OWNER TO postgres;

--
-- Name: bank_transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.bank_transactions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.bank_transactions_id_seq OWNER TO postgres;

--
-- Name: bank_transactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.bank_transactions_id_seq OWNED BY public.bank_transactions.id;


--
-- Name: bin; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bin (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    warehouse_id integer NOT NULL,
    description text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.bin OWNER TO postgres;

--
-- Name: buchungsgruppen; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.buchungsgruppen (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    inventory_accno_id integer NOT NULL,
    sortkey integer NOT NULL
);


ALTER TABLE public.buchungsgruppen OWNER TO postgres;

--
-- Name: business; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.business (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    discount real,
    customernumberinit text,
    salesman boolean DEFAULT false,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.business OWNER TO postgres;

--
-- Name: bwa_categories; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.bwa_categories AS
 SELECT "*VALUES*".column1 AS id,
    "*VALUES*".column2 AS description
   FROM ( VALUES (1,'Umsatzerlöse'::text), (2,'Best.Verdg.FE/UE'::text), (3,'Aktiv.Eigenleistung'::text), (4,'Mat./Wareneinkauf'::text), (5,'So.betr.Erlöse'::text), (10,'Personalkosten'::text), (11,'Raumkosten'::text), (12,'Betriebl.Steuern'::text), (13,'Vers./Beiträge'::text), (14,'Kfz.Kosten o.St.'::text), (15,'Werbe-Reisek.'::text), (16,'Kosten Warenabgabe'::text), (17,'Abschreibungen'::text), (18,'Rep./instandhlt.'::text), (19,'Übrige Steuern'::text), (20,'Sonst.Kosten'::text), (30,'Zinsaufwand'::text), (31,'Sonst.neutr.Aufw.'::text), (32,'Zinserträge'::text), (33,'Sonst.neutr.Ertrag'::text), (34,'Verr.kalk.Kosten'::text), (35,'Steuern Eink.u.Ertr.'::text)) "*VALUES*";


ALTER TABLE public.bwa_categories OWNER TO postgres;

--
-- Name: chart; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.chart (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    accno text NOT NULL,
    description text,
    charttype character(1) DEFAULT 'A'::bpchar,
    category character(1),
    link text NOT NULL,
    taxkey_id integer,
    pos_bwa integer,
    pos_bilanz integer,
    pos_eur integer,
    datevautomatik boolean DEFAULT false,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    new_chart_id integer,
    valid_from date,
    pos_er integer
);


ALTER TABLE public.chart OWNER TO postgres;

--
-- Name: contact_departments; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contact_departments (
    id integer NOT NULL,
    description text NOT NULL
);


ALTER TABLE public.contact_departments OWNER TO postgres;

--
-- Name: contact_departments_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.contact_departments_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.contact_departments_id_seq OWNER TO postgres;

--
-- Name: contact_departments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.contact_departments_id_seq OWNED BY public.contact_departments.id;


--
-- Name: contact_titles; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contact_titles (
    id integer NOT NULL,
    description text NOT NULL
);


ALTER TABLE public.contact_titles OWNER TO postgres;

--
-- Name: contact_titles_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.contact_titles_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.contact_titles_id_seq OWNER TO postgres;

--
-- Name: contact_titles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.contact_titles_id_seq OWNED BY public.contact_titles.id;


--
-- Name: contacts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contacts (
    cp_id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    cp_cv_id integer,
    cp_title text,
    cp_givenname text,
    cp_name text,
    cp_email text,
    cp_phone1 text,
    cp_phone2 text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    cp_fax text,
    cp_mobile1 text,
    cp_mobile2 text,
    cp_satphone text,
    cp_satfax text,
    cp_project text,
    cp_privatphone text,
    cp_privatemail text,
    cp_abteilung text,
    cp_gender character(1),
    cp_street text,
    cp_zipcode text,
    cp_city text,
    cp_birthday date,
    cp_position text,
    cp_main boolean DEFAULT false
);


ALTER TABLE public.contacts OWNER TO postgres;

--
-- Name: csv_import_profile_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.csv_import_profile_settings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.csv_import_profile_settings_id_seq OWNER TO postgres;

--
-- Name: csv_import_profile_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.csv_import_profile_settings_id_seq OWNED BY public.csv_import_profile_settings.id;


--
-- Name: csv_import_profiles; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.csv_import_profiles (
    id integer NOT NULL,
    name text NOT NULL,
    type character varying(20) NOT NULL,
    is_default boolean DEFAULT false,
    login text
);


ALTER TABLE public.csv_import_profiles OWNER TO postgres;

--
-- Name: csv_import_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.csv_import_profiles_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.csv_import_profiles_id_seq OWNER TO postgres;

--
-- Name: csv_import_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.csv_import_profiles_id_seq OWNED BY public.csv_import_profiles.id;


--
-- Name: csv_import_report_rows; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.csv_import_report_rows (
    id integer NOT NULL,
    csv_import_report_id integer NOT NULL,
    col integer NOT NULL,
    "row" integer NOT NULL,
    value text
);


ALTER TABLE public.csv_import_report_rows OWNER TO postgres;

--
-- Name: csv_import_report_rows_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.csv_import_report_rows_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.csv_import_report_rows_id_seq OWNER TO postgres;

--
-- Name: csv_import_report_rows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.csv_import_report_rows_id_seq OWNED BY public.csv_import_report_rows.id;


--
-- Name: csv_import_report_status; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.csv_import_report_status (
    id integer NOT NULL,
    csv_import_report_id integer NOT NULL,
    "row" integer NOT NULL,
    type text NOT NULL,
    value text
);


ALTER TABLE public.csv_import_report_status OWNER TO postgres;

--
-- Name: csv_import_report_status_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.csv_import_report_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.csv_import_report_status_id_seq OWNER TO postgres;

--
-- Name: csv_import_report_status_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.csv_import_report_status_id_seq OWNED BY public.csv_import_report_status.id;

--
-- Name: csv_import_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.csv_import_reports_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.csv_import_reports_id_seq OWNER TO postgres;

--
-- Name: csv_import_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.csv_import_reports_id_seq OWNED BY public.csv_import_reports.id;


--
-- Name: currencies; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.currencies (
    id integer NOT NULL,
    name text NOT NULL
);


ALTER TABLE public.currencies OWNER TO postgres;

--
-- Name: currencies_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.currencies_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.currencies_id_seq OWNER TO postgres;

--
-- Name: currencies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.currencies_id_seq OWNED BY public.currencies.id;


--
-- Name: custom_data_export_queries; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.custom_data_export_queries (
    id integer NOT NULL,
    name text NOT NULL,
    description text NOT NULL,
    sql_query text NOT NULL,
    access_right text,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.custom_data_export_queries OWNER TO postgres;

--
-- Name: custom_data_export_queries_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.custom_data_export_queries_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.custom_data_export_queries_id_seq OWNER TO postgres;

--
-- Name: custom_data_export_queries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.custom_data_export_queries_id_seq OWNED BY public.custom_data_export_queries.id;


--
-- Name: custom_data_export_query_parameters; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.custom_data_export_query_parameters (
    id integer NOT NULL,
    query_id integer NOT NULL,
    name text NOT NULL,
    description text,
    parameter_type public.custom_data_export_query_parameter_type_enum NOT NULL,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone DEFAULT now() NOT NULL,
    default_value_type public.custom_data_export_query_parameter_default_value_type_enum NOT NULL,
    default_value text
);


ALTER TABLE public.custom_data_export_query_parameters OWNER TO postgres;

--
-- Name: custom_data_export_query_parameters_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.custom_data_export_query_parameters_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.custom_data_export_query_parameters_id_seq OWNER TO postgres;

--
-- Name: custom_data_export_query_parameters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.custom_data_export_query_parameters_id_seq OWNED BY public.custom_data_export_query_parameters.id;


--
-- Name: custom_variable_config_partsgroups; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.custom_variable_config_partsgroups (
    custom_variable_config_id integer NOT NULL,
    partsgroup_id integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.custom_variable_config_partsgroups OWNER TO postgres;

--
-- Name: custom_variable_configs_id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.custom_variable_configs_id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.custom_variable_configs_id OWNER TO postgres;

--
-- Name: custom_variable_configs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.custom_variable_configs (
    id integer DEFAULT nextval('public.custom_variable_configs_id'::regclass) NOT NULL,
    name text NOT NULL,
    description text NOT NULL,
    type text NOT NULL,
    module text NOT NULL,
    default_value text,
    options text,
    searchable boolean NOT NULL,
    includeable boolean NOT NULL,
    included_by_default boolean NOT NULL,
    sortkey integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    flags text,
    CONSTRAINT custom_variable_configs_name_description_type_module_not_empty CHECK (((type <> ''::text) AND (module <> ''::text) AND (name <> ''::text) AND (description <> ''::text))),
    CONSTRAINT custom_variable_configs_options_not_empty_for_select CHECK (((type <> 'select'::text) OR (COALESCE(options, ''::text) <> ''::text)))
);


ALTER TABLE public.custom_variable_configs OWNER TO postgres;

--
-- Name: custom_variables_id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.custom_variables_id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.custom_variables_id OWNER TO postgres;

--
-- Name: custom_variables; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.custom_variables (
    id integer DEFAULT nextval('public.custom_variables_id'::regclass) NOT NULL,
    config_id integer NOT NULL,
    trans_id integer NOT NULL,
    bool_value boolean,
    timestamp_value timestamp without time zone,
    text_value text,
    number_value numeric(25,5),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    sub_module text DEFAULT ''::text NOT NULL
);


ALTER TABLE public.custom_variables OWNER TO postgres;

--
-- Name: custom_variables_validity; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.custom_variables_validity (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    config_id integer NOT NULL,
    trans_id integer NOT NULL,
    itime timestamp without time zone DEFAULT now()
);


ALTER TABLE public.custom_variables_validity OWNER TO postgres;

--
-- Name: datev; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.datev (
    beraternr character varying(7),
    beratername character varying(9),
    mandantennr character varying(5),
    dfvkz character varying(2),
    datentraegernr character varying(3),
    abrechnungsnr character varying(6),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    id integer NOT NULL
);


ALTER TABLE public.datev OWNER TO postgres;

--
-- Name: datev_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.datev_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.datev_id_seq OWNER TO postgres;

--
-- Name: datev_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.datev_id_seq OWNED BY public.datev.id;


--
-- Name: defaults; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.defaults (
    inventory_accno_id integer,
    income_accno_id integer,
    expense_accno_id integer,
    fxgain_accno_id integer,
    fxloss_accno_id integer,
    invnumber text,
    sonumber text,
    weightunit character varying(5),
    businessnumber text,
    version character varying(8),
    closedto date,
    revtrans boolean DEFAULT false,
    ponumber text,
    sqnumber text,
    rfqnumber text,
    customernumber text,
    vendornumber text,
    articlenumber text,
    servicenumber text,
    coa text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    rmanumber text,
    cnnumber text,
    accounting_method text,
    inventory_system text,
    profit_determination text,
    dunning_ar_amount_fee integer,
    dunning_ar_amount_interest integer,
    dunning_ar integer,
    pdonumber text,
    sdonumber text,
    ar_paid_accno_id integer,
    id integer NOT NULL,
    language_id integer,
    datev_check_on_sales_invoice boolean DEFAULT true,
    datev_check_on_purchase_invoice boolean DEFAULT true,
    datev_check_on_ar_transaction boolean DEFAULT true,
    datev_check_on_ap_transaction boolean DEFAULT true,
    datev_check_on_gl_transaction boolean DEFAULT true,
    payments_changeable integer DEFAULT 0 NOT NULL,
    is_changeable integer DEFAULT 2 NOT NULL,
    ir_changeable integer DEFAULT 2 NOT NULL,
    ar_changeable integer DEFAULT 2 NOT NULL,
    ap_changeable integer DEFAULT 2 NOT NULL,
    gl_changeable integer DEFAULT 2 NOT NULL,
    show_bestbefore boolean DEFAULT false,
    sales_order_show_delete boolean DEFAULT true,
    purchase_order_show_delete boolean DEFAULT true,
    sales_delivery_order_show_delete boolean DEFAULT true,
    purchase_delivery_order_show_delete boolean DEFAULT true,
    is_show_mark_as_paid boolean DEFAULT true,
    ir_show_mark_as_paid boolean DEFAULT true,
    ar_show_mark_as_paid boolean DEFAULT true,
    ap_show_mark_as_paid boolean DEFAULT true,
    warehouse_id integer,
    bin_id integer,
    company text,
    taxnumber text,
    co_ustid text,
    duns text,
    sepa_creditor_id text,
    templates text,
    max_future_booking_interval integer DEFAULT 360,
    webdav boolean DEFAULT false,
    webdav_documents boolean DEFAULT false,
    vertreter boolean DEFAULT false,
    parts_show_image boolean DEFAULT true,
    parts_listing_image boolean DEFAULT true,
    parts_image_css text DEFAULT 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;'::text,
    normalize_vc_names boolean DEFAULT true,
    normalize_part_descriptions boolean DEFAULT true,
    assemblynumber text,
    show_weight boolean DEFAULT false NOT NULL,
    transfer_default boolean DEFAULT true,
    transfer_default_use_master_default_bin boolean DEFAULT false,
    transfer_default_ignore_onhand boolean DEFAULT false,
    warehouse_id_ignore_onhand integer,
    bin_id_ignore_onhand integer,
    balance_startdate_method text,
    currency_id integer NOT NULL,
    signature text,
    customer_hourly_rate numeric(8,2),
    requirement_spec_section_order_part_id integer,
    transfer_default_services boolean DEFAULT true,
    global_bcc text DEFAULT ''::text,
    customer_projects_only_in_sales boolean DEFAULT false NOT NULL,
    reqdate_interval integer DEFAULT 0,
    require_transaction_description_ps boolean DEFAULT false NOT NULL,
    allow_sales_invoice_from_sales_quotation boolean DEFAULT true NOT NULL,
    allow_sales_invoice_from_sales_order boolean DEFAULT true NOT NULL,
    allow_new_purchase_delivery_order boolean DEFAULT true NOT NULL,
    allow_new_purchase_invoice boolean DEFAULT true NOT NULL,
    disabled_price_sources text[],
    transport_cost_reminder_article_number_id integer,
    sales_purchase_order_ship_missing_column boolean DEFAULT false,
    is_transfer_out boolean DEFAULT false NOT NULL,
    letternumber integer,
    "precision" numeric(15,5) DEFAULT 0.01 NOT NULL,
    rndgain_accno_id integer,
    rndloss_accno_id integer,
    ap_chart_id integer,
    ar_chart_id integer,
    order_always_project boolean DEFAULT false,
    project_status_id integer,
    project_type_id integer,
    order_warn_duplicate_parts boolean DEFAULT true,
    show_longdescription_select_item boolean DEFAULT false,
    email_journal integer DEFAULT 2,
    feature_balance boolean DEFAULT true NOT NULL,
    feature_datev boolean DEFAULT true NOT NULL,
    feature_erfolgsrechnung boolean DEFAULT false NOT NULL,
    feature_eurechnung boolean DEFAULT true NOT NULL,
    feature_ustva boolean DEFAULT true NOT NULL,
    quick_search_modules text[],
    bcc_to_login boolean DEFAULT false NOT NULL,
    create_part_if_not_found boolean DEFAULT false,
    transfer_default_warehouse_for_assembly boolean DEFAULT false,
    feature_experimental_order boolean DEFAULT true NOT NULL,
    fa_bufa_nr text,
    fa_dauerfrist text,
    fa_steuerberater_city text,
    fa_steuerberater_name text,
    fa_steuerberater_street text,
    fa_steuerberater_tel text,
    fa_voranmeld text,
    doc_delete_printfiles boolean DEFAULT false,
    doc_max_filesize integer DEFAULT 10000000,
    doc_storage boolean DEFAULT false,
    doc_storage_for_documents text DEFAULT 'Filesystem'::text,
    doc_storage_for_attachments text DEFAULT 'Filesystem'::text,
    doc_storage_for_images text DEFAULT 'Filesystem'::text,
    doc_files boolean DEFAULT false,
    doc_files_rootpath text DEFAULT './documents'::text,
    doc_webdav boolean DEFAULT false,
    sepa_reference_add_vc_vc_id boolean DEFAULT false,
    assortmentnumber text,
    shipped_qty_require_stock_out boolean DEFAULT false NOT NULL,
    shipped_qty_fill_up boolean DEFAULT true NOT NULL,
    shipped_qty_item_identity_fields text[] DEFAULT '{parts_id}'::text[] NOT NULL,
    doc_storage_for_shopimages text DEFAULT 'Filesystem'::text,
    stocktaking_warehouse_id integer,
    stocktaking_bin_id integer,
    stocktaking_cutoff_date date,
    stocktaking_qty_threshold numeric(25,5) DEFAULT 0,
    feature_experimental_assortment boolean DEFAULT true NOT NULL,
    datev_export_format public.datev_export_format_enum DEFAULT 'cp1252-translit'::public.datev_export_format_enum,
    order_warn_no_deliverydate boolean DEFAULT true,
    sepa_set_duedate_as_default_exec_date boolean DEFAULT false,
    sepa_set_skonto_date_as_default_exec_date boolean DEFAULT false,
    sepa_set_skonto_date_buffer_in_days integer DEFAULT 0,
    delivery_date_interval integer DEFAULT 0,
    email_attachment_vc_files_checked boolean DEFAULT true,
    email_attachment_part_files_checked boolean DEFAULT true,
    email_attachment_record_files_checked boolean DEFAULT true,
    invoice_mail_settings public.invoice_mail_settings DEFAULT 'cp'::public.invoice_mail_settings,
    dunning_creator public.dunning_creator DEFAULT 'current_employee'::public.dunning_creator,
    address_street1 text,
    address_street2 text,
    address_zipcode text,
    address_city text,
    address_country text,
    workflow_po_ap_chart_id integer,
    carry_over_account_chart_id integer,
    profit_carried_forward_chart_id integer,
    loss_carried_forward_chart_id integer,
    contact_departments_use_textfield boolean,
    contact_titles_use_textfield boolean,
    create_zugferd_invoices integer,
    vc_greetings_use_textfield boolean
);


ALTER TABLE public.defaults OWNER TO postgres;

--
-- Name: defaults_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.defaults_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.defaults_id_seq OWNER TO postgres;

--
-- Name: defaults_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.defaults_id_seq OWNED BY public.defaults.id;


--
-- Name: delivery_order_items_id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.delivery_order_items_id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.delivery_order_items_id OWNER TO postgres;

SET default_with_oids = true;

--
-- Name: delivery_order_items; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.delivery_order_items (
    id integer DEFAULT nextval('public.delivery_order_items_id'::regclass) NOT NULL,
    delivery_order_id integer NOT NULL,
    parts_id integer NOT NULL,
    description text,
    qty numeric(25,5),
    sellprice numeric(15,5),
    discount real,
    project_id integer,
    reqdate date,
    serialnumber text,
    ordnumber text,
    transdate text,
    cusordnumber text,
    unit character varying(20),
    base_qty real,
    longdescription text,
    lastcost numeric(15,5),
    price_factor_id integer,
    price_factor numeric(15,5) DEFAULT 1,
    marge_price_factor numeric(15,5) DEFAULT 1,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    pricegroup_id integer,
    "position" integer NOT NULL,
    active_price_source text DEFAULT ''::text NOT NULL,
    active_discount_source text DEFAULT ''::text NOT NULL
);


ALTER TABLE public.delivery_order_items OWNER TO postgres;

SET default_with_oids = false;

--
-- Name: delivery_order_items_stock; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.delivery_order_items_stock (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    delivery_order_item_id integer NOT NULL,
    qty numeric(15,5) NOT NULL,
    unit character varying(20) NOT NULL,
    warehouse_id integer NOT NULL,
    bin_id integer NOT NULL,
    chargenumber text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    bestbefore date
);


ALTER TABLE public.delivery_order_items_stock OWNER TO postgres;

--
-- Name: delivery_orders; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.delivery_orders (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    donumber text NOT NULL,
    ordnumber text,
    transdate date DEFAULT now(),
    vendor_id integer,
    customer_id integer,
    reqdate date,
    shippingpoint text,
    notes text,
    intnotes text,
    employee_id integer,
    closed boolean DEFAULT false,
    delivered boolean DEFAULT false,
    cusordnumber text,
    oreqnumber text,
    department_id integer,
    shipvia text,
    cp_id integer,
    language_id integer,
    shipto_id integer,
    globalproject_id integer,
    salesman_id integer,
    transaction_description text,
    is_sales boolean,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    taxzone_id integer NOT NULL,
    taxincluded boolean,
    delivery_term_id integer,
    currency_id integer NOT NULL,
    payment_id integer
);


ALTER TABLE public.delivery_orders OWNER TO postgres;

--
-- Name: delivery_terms; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.delivery_terms (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    description text,
    description_long text,
    sortkey integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.delivery_terms OWNER TO postgres;

--
-- Name: department; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.department (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.department OWNER TO postgres;

--
-- Name: drafts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.drafts (
    id character varying(50) NOT NULL,
    module character varying(50) NOT NULL,
    submodule character varying(50) NOT NULL,
    description text,
    itime timestamp without time zone DEFAULT now(),
    form text,
    employee_id integer
);


ALTER TABLE public.drafts OWNER TO postgres;

--
-- Name: dunning; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.dunning (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    trans_id integer,
    dunning_id integer,
    dunning_level integer,
    transdate date,
    duedate date,
    fee numeric(15,5),
    interest numeric(15,5),
    dunning_config_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    fee_interest_ar_id integer
);


ALTER TABLE public.dunning OWNER TO postgres;

--
-- Name: dunning_config; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.dunning_config (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    dunning_level integer,
    dunning_description text,
    active boolean,
    auto boolean,
    email boolean,
    terms integer,
    payment_terms integer,
    fee numeric(15,5),
    interest_rate numeric(15,5),
    email_body text,
    email_subject text,
    email_attachment boolean,
    template text,
    create_invoices_for_fees boolean DEFAULT true,
    print_original_invoice boolean
);


ALTER TABLE public.dunning_config OWNER TO postgres;

--
-- Name: email_journal; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.email_journal (
    id integer NOT NULL,
    sender_id integer,
    "from" text NOT NULL,
    recipients text NOT NULL,
    sent_on timestamp without time zone DEFAULT now() NOT NULL,
    subject text NOT NULL,
    body text NOT NULL,
    headers text NOT NULL,
    status text NOT NULL,
    extended_status text NOT NULL,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone DEFAULT now() NOT NULL,
    CONSTRAINT valid_status CHECK ((status = ANY (ARRAY['ok'::text, 'failed'::text])))
);


ALTER TABLE public.email_journal OWNER TO postgres;

--
-- Name: email_journal_attachments; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.email_journal_attachments (
    id integer NOT NULL,
    "position" integer NOT NULL,
    email_journal_id integer NOT NULL,
    name text NOT NULL,
    mime_type text NOT NULL,
    content bytea NOT NULL,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone DEFAULT now() NOT NULL,
    file_id integer DEFAULT 0 NOT NULL
);


ALTER TABLE public.email_journal_attachments OWNER TO postgres;

--
-- Name: email_journal_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.email_journal_attachments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.email_journal_attachments_id_seq OWNER TO postgres;

--
-- Name: email_journal_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.email_journal_attachments_id_seq OWNED BY public.email_journal_attachments.id;


--
-- Name: email_journal_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.email_journal_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.email_journal_id_seq OWNER TO postgres;

--
-- Name: email_journal_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.email_journal_id_seq OWNED BY public.email_journal.id;


--
-- Name: employee; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.employee (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    login text,
    startdate date DEFAULT ('now'::text)::date,
    enddate date,
    sales boolean DEFAULT true,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    name text,
    deleted boolean DEFAULT false,
    deleted_email text,
    deleted_signature text,
    deleted_tel text,
    deleted_fax text
);


ALTER TABLE public.employee OWNER TO postgres;

--
-- Name: employee_project_invoices; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.employee_project_invoices (
    employee_id integer NOT NULL,
    project_id integer NOT NULL
);


ALTER TABLE public.employee_project_invoices OWNER TO postgres;

--
-- Name: eur_categories; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.eur_categories AS
 SELECT "*VALUES*".column1 AS id,
    "*VALUES*".column2 AS description
   FROM ( VALUES (1,'Umsatzerlöse'::text), (2,'sonstige Erlöse'::text), (3,'Privatanteile'::text), (4,'Zinserträge'::text), (5,'Ausserordentliche Erträge'::text), (6,'Vereinnahmte Umsatzst.'::text), (7,'Umsatzsteuererstattungen'::text), (8,'Wareneingänge'::text), (9,'Löhne und Gehälter'::text), (10,'Gesetzl. sozialer Aufw.'::text), (11,'Mieten'::text), (12,'Gas, Strom, Wasser'::text), (13,'Instandhaltung'::text), (14,'Steuern, Versich., Beiträge'::text), (15,'Kfz-Steuern'::text), (16,'Kfz-Versicherungen'::text), (17,'Sonst. Fahrzeugkosten'::text), (18,'Werbe- und Reisekosten'::text), (19,'Instandhaltung u. Werkzeuge'::text), (20,'Fachzeitschriften, Bücher'::text), (21,'Miete für Einrichtungen'::text), (22,'Rechts- und Beratungskosten'::text), (23,'Bürobedarf, Porto, Telefon'::text), (24,'Sonstige Aufwendungen'::text), (25,'Abschreibungen auf Anlagever.'::text), (26,'Abschreibungen auf GWG'::text), (27,'Vorsteuer'::text), (28,'Umsatzsteuerzahlungen'::text), (29,'Zinsaufwand'::text), (30,'Ausserordentlicher Aufwand'::text), (31,'Betriebliche Steuern'::text)) "*VALUES*";


ALTER TABLE public.eur_categories OWNER TO postgres;

--
-- Name: exchangerate; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.exchangerate (
    transdate date,
    buy numeric(15,5),
    sell numeric(15,5),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    id integer NOT NULL,
    currency_id integer NOT NULL
);


ALTER TABLE public.exchangerate OWNER TO postgres;

--
-- Name: exchangerate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.exchangerate_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.exchangerate_id_seq OWNER TO postgres;

--
-- Name: exchangerate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.exchangerate_id_seq OWNED BY public.exchangerate.id;


--
-- Name: files; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.files (
    id integer NOT NULL,
    object_type text NOT NULL,
    object_id integer NOT NULL,
    file_name text NOT NULL,
    file_type text NOT NULL,
    mime_type text NOT NULL,
    source text NOT NULL,
    backend text,
    backend_data text,
    title character varying(45),
    description text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    CONSTRAINT valid_type CHECK (((object_type = 'credit_note'::text) OR (object_type = 'invoice'::text) OR (object_type = 'sales_order'::text) OR (object_type = 'sales_quotation'::text) OR (object_type = 'sales_delivery_order'::text) OR (object_type = 'request_quotation'::text) OR (object_type = 'purchase_order'::text) OR (object_type = 'purchase_delivery_order'::text) OR (object_type = 'purchase_invoice'::text) OR (object_type = 'vendor'::text) OR (object_type = 'customer'::text) OR (object_type = 'part'::text) OR (object_type = 'gl_transaction'::text) OR (object_type = 'dunning'::text) OR (object_type = 'dunning1'::text) OR (object_type = 'dunning2'::text) OR (object_type = 'dunning3'::text) OR (object_type = 'draft'::text) OR (object_type = 'statement'::text) OR (object_type = 'shop_image'::text)))
);


ALTER TABLE public.files OWNER TO postgres;

--
-- Name: files_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.files_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.files_id_seq OWNER TO postgres;

--
-- Name: files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.files_id_seq OWNED BY public.files.id;


--
-- Name: finanzamt; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.finanzamt (
    fa_land_nr text,
    fa_bufa_nr text,
    fa_name text,
    fa_strasse text,
    fa_plz text,
    fa_ort text,
    fa_telefon text,
    fa_fax text,
    fa_plz_grosskunden text,
    fa_plz_postfach text,
    fa_postfach text,
    fa_blz_1 text,
    fa_kontonummer_1 text,
    fa_bankbezeichnung_1 text,
    fa_blz_2 text,
    fa_kontonummer_2 text,
    fa_bankbezeichnung_2 text,
    fa_oeffnungszeiten text,
    fa_email text,
    fa_internet text,
    id integer NOT NULL
);


ALTER TABLE public.finanzamt OWNER TO postgres;

--
-- Name: finanzamt_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.finanzamt_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.finanzamt_id_seq OWNER TO postgres;

--
-- Name: finanzamt_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.finanzamt_id_seq OWNED BY public.finanzamt.id;


--
-- Name: follow_up_access; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.follow_up_access (
    who integer NOT NULL,
    what integer NOT NULL,
    id integer NOT NULL
);


ALTER TABLE public.follow_up_access OWNER TO postgres;

--
-- Name: follow_up_access_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.follow_up_access_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.follow_up_access_id_seq OWNER TO postgres;

--
-- Name: follow_up_access_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.follow_up_access_id_seq OWNED BY public.follow_up_access.id;


--
-- Name: follow_up_id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.follow_up_id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.follow_up_id OWNER TO postgres;

--
-- Name: follow_up_link_id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.follow_up_link_id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.follow_up_link_id OWNER TO postgres;

--
-- Name: follow_up_links; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.follow_up_links (
    id integer DEFAULT nextval('public.follow_up_link_id'::regclass) NOT NULL,
    follow_up_id integer NOT NULL,
    trans_id integer NOT NULL,
    trans_type text NOT NULL,
    trans_info text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.follow_up_links OWNER TO postgres;

--
-- Name: follow_ups; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.follow_ups (
    id integer DEFAULT nextval('public.follow_up_id'::regclass) NOT NULL,
    follow_up_date date NOT NULL,
    created_for_user integer NOT NULL,
    done boolean DEFAULT false,
    note_id integer NOT NULL,
    created_by integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.follow_ups OWNER TO postgres;

--
-- Name: generic_translations; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.generic_translations (
    id integer NOT NULL,
    language_id integer,
    translation_type character varying(100) NOT NULL,
    translation_id integer,
    translation text
);


ALTER TABLE public.generic_translations OWNER TO postgres;

--
-- Name: generic_translations_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.generic_translations_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.generic_translations_id_seq OWNER TO postgres;

--
-- Name: generic_translations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.generic_translations_id_seq OWNED BY public.generic_translations.id;


--
-- Name: gl; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gl (
    id integer DEFAULT nextval(('glid'::text)::regclass) NOT NULL,
    reference text,
    description text,
    transdate date DEFAULT ('now'::text)::date,
    gldate date DEFAULT ('now'::text)::date,
    employee_id integer,
    notes text,
    department_id integer,
    taxincluded boolean,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    type text,
    ob_transaction boolean,
    cb_transaction boolean,
    storno boolean DEFAULT false,
    storno_id integer,
    deliverydate date
);


ALTER TABLE public.gl OWNER TO postgres;

--
-- Name: glid; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.glid
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    MAXVALUE 2147483647
    CACHE 1;


ALTER TABLE public.glid OWNER TO postgres;

--
-- Name: greetings; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.greetings (
    id integer NOT NULL,
    description text NOT NULL
);


ALTER TABLE public.greetings OWNER TO postgres;

--
-- Name: greetings_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.greetings_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.greetings_id_seq OWNER TO postgres;

--
-- Name: greetings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.greetings_id_seq OWNED BY public.greetings.id;


--
-- Name: history_erp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.history_erp (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    trans_id integer,
    employee_id integer,
    addition text,
    what_done text,
    itime timestamp without time zone DEFAULT now(),
    snumbers text
);


ALTER TABLE public.history_erp OWNER TO postgres;

--
-- Name: inventory; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.inventory (
    warehouse_id integer NOT NULL,
    parts_id integer NOT NULL,
    oe_id integer,
    delivery_order_items_stock_id integer,
    shippingdate date NOT NULL,
    employee_id integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    bin_id integer NOT NULL,
    qty numeric(25,5),
    trans_id integer NOT NULL,
    trans_type_id integer NOT NULL,
    project_id integer,
    chargenumber text DEFAULT ''::text NOT NULL,
    comment text,
    bestbefore date,
    id integer NOT NULL,
    invoice_id integer
);


ALTER TABLE public.inventory OWNER TO postgres;

--
-- Name: inventory_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.inventory_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.inventory_id_seq OWNER TO postgres;

--
-- Name: inventory_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.inventory_id_seq OWNED BY public.inventory.id;


SET default_with_oids = true;

--
-- Name: invoice; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.invoice (
    id integer DEFAULT nextval(('invoiceid'::text)::regclass) NOT NULL,
    trans_id integer,
    parts_id integer,
    description text,
    qty real,
    allocated real,
    sellprice numeric(15,5),
    fxsellprice numeric(15,5),
    discount real,
    assemblyitem boolean DEFAULT false,
    project_id integer,
    deliverydate date,
    serialnumber text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    pricegroup_id integer,
    ordnumber text,
    transdate text,
    cusordnumber text,
    unit character varying(20),
    base_qty real,
    subtotal boolean DEFAULT false,
    longdescription text,
    marge_total numeric(15,5),
    marge_percent numeric(15,5),
    lastcost numeric(15,5),
    price_factor_id integer,
    price_factor numeric(15,5) DEFAULT 1,
    marge_price_factor numeric(15,5) DEFAULT 1,
    donumber text,
    "position" integer NOT NULL,
    active_price_source text DEFAULT ''::text NOT NULL,
    active_discount_source text DEFAULT ''::text NOT NULL
);


ALTER TABLE public.invoice OWNER TO postgres;

--
-- Name: invoiceid; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.invoiceid
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    MAXVALUE 2147483647
    CACHE 1;


ALTER TABLE public.invoiceid OWNER TO postgres;

SET default_with_oids = false;

--
-- Name: language; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.language (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    template_code text,
    article_code text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    output_numberformat text,
    output_dateformat text,
    output_longdates boolean
);


ALTER TABLE public.language OWNER TO postgres;

--
-- Name: leads; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.leads (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    lead character varying(50)
);


ALTER TABLE public.leads OWNER TO postgres;

--
-- Name: letter; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.letter (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    customer_id integer,
    letternumber text,
    subject text,
    greeting text,
    body text,
    employee_id integer,
    salesman_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    date date,
    reference text,
    intnotes text,
    cp_id integer,
    vendor_id integer
);


ALTER TABLE public.letter OWNER TO postgres;

--
-- Name: letter_draft; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.letter_draft (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    customer_id integer,
    cp_id integer,
    letternumber text,
    date date,
    intnotes text,
    reference text,
    subject text,
    greeting text,
    body text,
    employee_id integer,
    salesman_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    vendor_id integer
);


ALTER TABLE public.letter_draft OWNER TO postgres;

--
-- Name: makemodel_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.makemodel_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.makemodel_id_seq OWNER TO postgres;

--
-- Name: makemodel; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.makemodel (
    parts_id integer,
    model text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    lastcost numeric(15,5),
    lastupdate date,
    sortorder integer,
    make integer,
    id integer DEFAULT nextval('public.makemodel_id_seq'::regclass) NOT NULL
);


ALTER TABLE public.makemodel OWNER TO postgres;

--
-- Name: note_id; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.note_id
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.note_id OWNER TO postgres;

--
-- Name: notes; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notes (
    id integer DEFAULT nextval('public.note_id'::regclass) NOT NULL,
    subject text,
    body text,
    created_by integer NOT NULL,
    trans_id integer,
    trans_module character varying(10),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.notes OWNER TO postgres;

--
-- Name: oe; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.oe (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    ordnumber text NOT NULL,
    transdate date DEFAULT ('now'::text)::date,
    vendor_id integer,
    customer_id integer,
    amount numeric(15,5),
    netamount numeric(15,5),
    reqdate date,
    taxincluded boolean,
    shippingpoint text,
    notes text,
    employee_id integer,
    closed boolean DEFAULT false,
    quotation boolean DEFAULT false,
    quonumber text,
    cusordnumber text,
    intnotes text,
    department_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    shipvia text,
    cp_id integer,
    language_id integer,
    payment_id integer,
    delivery_customer_id integer,
    delivery_vendor_id integer,
    taxzone_id integer NOT NULL,
    proforma boolean DEFAULT false,
    shipto_id integer,
    globalproject_id integer,
    delivered boolean DEFAULT false,
    salesman_id integer,
    marge_total numeric(15,5),
    marge_percent numeric(15,5),
    transaction_description text,
    delivery_term_id integer,
    currency_id integer NOT NULL,
    order_probability integer DEFAULT 0 NOT NULL,
    expected_billing_date date
);


ALTER TABLE public.oe OWNER TO postgres;

SET default_with_oids = true;

--
-- Name: orderitems; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.orderitems (
    trans_id integer,
    parts_id integer,
    description text,
    qty real,
    sellprice numeric(15,5),
    discount real,
    project_id integer,
    reqdate date,
    ship real,
    serialnumber text,
    id integer DEFAULT nextval(('orderitemsid'::text)::regclass) NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    pricegroup_id integer,
    ordnumber text,
    transdate text,
    cusordnumber text,
    unit character varying(20),
    base_qty real,
    subtotal boolean DEFAULT false,
    longdescription text,
    marge_total numeric(15,5),
    marge_percent numeric(15,5),
    lastcost numeric(15,5),
    price_factor_id integer,
    price_factor numeric(15,5) DEFAULT 1,
    marge_price_factor numeric(15,5) DEFAULT 1,
    "position" integer NOT NULL,
    active_price_source text DEFAULT ''::text NOT NULL,
    active_discount_source text DEFAULT ''::text NOT NULL
);


ALTER TABLE public.orderitems OWNER TO postgres;

--
-- Name: orderitemsid; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.orderitemsid
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    MAXVALUE 2147483647
    CACHE 1
    CYCLE;


ALTER TABLE public.orderitemsid OWNER TO postgres;

SET default_with_oids = false;

--
-- Name: part_classifications; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.part_classifications (
    id integer NOT NULL,
    description text,
    abbreviation text,
    used_for_purchase boolean DEFAULT true NOT NULL,
    used_for_sale boolean DEFAULT true NOT NULL,
    report_separate boolean DEFAULT false NOT NULL
);


ALTER TABLE public.part_classifications OWNER TO postgres;

--
-- Name: part_classifications_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.part_classifications_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.part_classifications_id_seq OWNER TO postgres;

--
-- Name: part_classifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.part_classifications_id_seq OWNED BY public.part_classifications.id;


--
-- Name: part_customer_prices; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.part_customer_prices (
    id integer NOT NULL,
    parts_id integer NOT NULL,
    customer_id integer NOT NULL,
    customer_partnumber text DEFAULT ''::text,
    price numeric(15,5) DEFAULT 0,
    sortorder integer DEFAULT 0,
    lastupdate date DEFAULT now()
);


ALTER TABLE public.part_customer_prices OWNER TO postgres;

--
-- Name: part_customer_prices_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.part_customer_prices_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.part_customer_prices_id_seq OWNER TO postgres;

--
-- Name: part_customer_prices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.part_customer_prices_id_seq OWNED BY public.part_customer_prices.id;


SET default_with_oids = true;

--
-- Name: parts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.parts (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    partnumber text NOT NULL,
    description text,
    listprice numeric(15,5),
    sellprice numeric(15,5),
    lastcost numeric(15,5),
    priceupdate date DEFAULT ('now'::text)::date,
    weight real,
    notes text,
    makemodel boolean DEFAULT false,
    rop real,
    shop boolean DEFAULT false,
    obsolete boolean DEFAULT false,
    bom boolean DEFAULT false,
    image text,
    drawing text,
    microfiche text,
    partsgroup_id integer,
    ve integer,
    gv numeric(15,5),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    unit character varying(20) NOT NULL,
    formel text,
    not_discountable boolean DEFAULT false,
    buchungsgruppen_id integer,
    payment_id integer,
    ean text,
    price_factor_id integer,
    onhand numeric(25,5) DEFAULT 0,
    stockable boolean DEFAULT false,
    has_sernumber boolean DEFAULT false,
    warehouse_id integer,
    bin_id integer,
    classification_id integer DEFAULT 0,
    part_type public.part_type_enum NOT NULL
);


ALTER TABLE public.parts OWNER TO postgres;

SET default_with_oids = false;

--
-- Name: parts_price_history; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.parts_price_history (
    id integer NOT NULL,
    part_id integer NOT NULL,
    valid_from timestamp without time zone NOT NULL,
    lastcost numeric(15,5),
    listprice numeric(15,5),
    sellprice numeric(15,5)
);


ALTER TABLE public.parts_price_history OWNER TO postgres;

--
-- Name: parts_price_history_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.parts_price_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.parts_price_history_id_seq OWNER TO postgres;

--
-- Name: parts_price_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.parts_price_history_id_seq OWNED BY public.parts_price_history.id;


SET default_with_oids = true;

--
-- Name: partsgroup; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.partsgroup (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    partsgroup text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    obsolete boolean DEFAULT false,
    sortkey integer NOT NULL
);


ALTER TABLE public.partsgroup OWNER TO postgres;

SET default_with_oids = false;

--
-- Name: payment_terms; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.payment_terms (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    description_long text,
    terms_netto integer,
    terms_skonto integer,
    percent_skonto real,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    sortkey integer NOT NULL,
    auto_calculation boolean NOT NULL,
    description_long_invoice text,
    obsolete boolean DEFAULT false
);


ALTER TABLE public.payment_terms OWNER TO postgres;

--
-- Name: periodic_invoices; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.periodic_invoices (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    config_id integer NOT NULL,
    ar_id integer NOT NULL,
    period_start_date date NOT NULL,
    itime timestamp without time zone DEFAULT now()
);


ALTER TABLE public.periodic_invoices OWNER TO postgres;

--
-- Name: periodic_invoices_configs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.periodic_invoices_configs (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    oe_id integer NOT NULL,
    periodicity character varying(1) NOT NULL,
    print boolean DEFAULT false,
    printer_id integer,
    copies integer,
    active boolean DEFAULT true,
    terminated boolean DEFAULT false,
    start_date date,
    end_date date,
    ar_chart_id integer NOT NULL,
    extend_automatically_by integer,
    first_billing_date date,
    order_value_periodicity character varying(1) NOT NULL,
    direct_debit boolean DEFAULT false NOT NULL,
    send_email boolean DEFAULT false NOT NULL,
    email_recipient_contact_id integer,
    email_recipient_address text,
    email_sender text,
    email_subject text,
    email_body text,
    CONSTRAINT periodic_invoices_configs_valid_order_value_periodicity CHECK (((order_value_periodicity)::text = ANY (ARRAY[('p'::character varying)::text, ('m'::character varying)::text, ('q'::character varying)::text, ('b'::character varying)::text, ('y'::character varying)::text, ('2'::character varying)::text, ('3'::character varying)::text, ('4'::character varying)::text, ('5'::character varying)::text]))),
    CONSTRAINT periodic_invoices_configs_valid_periodicity CHECK (((periodicity)::text = ANY (ARRAY[('o'::character varying)::text, ('m'::character varying)::text, ('q'::character varying)::text, ('b'::character varying)::text, ('y'::character varying)::text])))
);


ALTER TABLE public.periodic_invoices_configs OWNER TO postgres;

--
-- Name: price_factors; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.price_factors (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    factor numeric(15,5),
    sortkey integer
);


ALTER TABLE public.price_factors OWNER TO postgres;

--
-- Name: price_rule_items; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.price_rule_items (
    id integer NOT NULL,
    price_rules_id integer NOT NULL,
    type text,
    op text,
    custom_variable_configs_id integer,
    value_text text,
    value_int integer,
    value_date date,
    value_num numeric(15,5),
    itime timestamp without time zone,
    mtime timestamp without time zone
);


ALTER TABLE public.price_rule_items OWNER TO postgres;

--
-- Name: price_rule_items_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.price_rule_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.price_rule_items_id_seq OWNER TO postgres;

--
-- Name: price_rule_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.price_rule_items_id_seq OWNED BY public.price_rule_items.id;


--
-- Name: price_rules; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.price_rules (
    id integer NOT NULL,
    name text,
    type text,
    priority integer DEFAULT 3 NOT NULL,
    price numeric(15,5),
    reduction numeric(15,5),
    obsolete boolean DEFAULT false NOT NULL,
    itime timestamp without time zone,
    mtime timestamp without time zone,
    discount numeric(15,5)
);


ALTER TABLE public.price_rules OWNER TO postgres;

--
-- Name: price_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.price_rules_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.price_rules_id_seq OWNER TO postgres;

--
-- Name: price_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.price_rules_id_seq OWNED BY public.price_rules.id;


--
-- Name: pricegroup; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pricegroup (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    pricegroup text NOT NULL,
    obsolete boolean DEFAULT false,
    sortkey integer NOT NULL
);


ALTER TABLE public.pricegroup OWNER TO postgres;

--
-- Name: prices; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.prices (
    parts_id integer NOT NULL,
    pricegroup_id integer NOT NULL,
    price numeric(15,5),
    id integer NOT NULL
);


ALTER TABLE public.prices OWNER TO postgres;

--
-- Name: prices_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.prices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.prices_id_seq OWNER TO postgres;

--
-- Name: prices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.prices_id_seq OWNED BY public.prices.id;


--
-- Name: printers; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.printers (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    printer_description text NOT NULL,
    printer_command text,
    template_code text
);


ALTER TABLE public.printers OWNER TO postgres;

--
-- Name: project; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    projectnumber text,
    description text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    active boolean DEFAULT true,
    customer_id integer,
    valid boolean DEFAULT true,
    project_type_id integer NOT NULL,
    start_date date,
    end_date date,
    billable_customer_id integer,
    budget_cost numeric(15,5) DEFAULT 0 NOT NULL,
    order_value numeric(15,5) DEFAULT 0 NOT NULL,
    budget_minutes integer DEFAULT 0 NOT NULL,
    timeframe boolean DEFAULT false NOT NULL,
    project_status_id integer NOT NULL
);


ALTER TABLE public.project OWNER TO postgres;

--
-- Name: project_participants; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project_participants (
    id integer NOT NULL,
    project_id integer NOT NULL,
    employee_id integer NOT NULL,
    project_role_id integer NOT NULL,
    minutes integer DEFAULT 0 NOT NULL,
    cost_per_hour numeric(15,5),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.project_participants OWNER TO postgres;

--
-- Name: project_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.project_participants_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.project_participants_id_seq OWNER TO postgres;

--
-- Name: project_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.project_participants_id_seq OWNED BY public.project_participants.id;


--
-- Name: project_phase_participants; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project_phase_participants (
    id integer NOT NULL,
    project_phase_id integer NOT NULL,
    employee_id integer NOT NULL,
    project_role_id integer NOT NULL,
    minutes integer DEFAULT 0 NOT NULL,
    cost_per_hour numeric(15,5),
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.project_phase_participants OWNER TO postgres;

--
-- Name: project_phase_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.project_phase_participants_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.project_phase_participants_id_seq OWNER TO postgres;

--
-- Name: project_phase_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.project_phase_participants_id_seq OWNED BY public.project_phase_participants.id;


--
-- Name: project_phases; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project_phases (
    id integer NOT NULL,
    project_id integer,
    start_date date,
    end_date date,
    name text NOT NULL,
    description text NOT NULL,
    budget_minutes integer DEFAULT 0 NOT NULL,
    budget_cost numeric(15,5) DEFAULT 0 NOT NULL,
    general_minutes integer DEFAULT 0 NOT NULL,
    general_cost_per_hour numeric(15,5) DEFAULT 0 NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.project_phases OWNER TO postgres;

--
-- Name: project_phases_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.project_phases_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.project_phases_id_seq OWNER TO postgres;

--
-- Name: project_phases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.project_phases_id_seq OWNED BY public.project_phases.id;


--
-- Name: project_roles; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project_roles (
    id integer NOT NULL,
    name text NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.project_roles OWNER TO postgres;

--
-- Name: project_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.project_roles_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.project_roles_id_seq OWNER TO postgres;

--
-- Name: project_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.project_roles_id_seq OWNED BY public.project_roles.id;


--
-- Name: project_statuses; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project_statuses (
    id integer NOT NULL,
    name text NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.project_statuses OWNER TO postgres;

--
-- Name: project_status_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.project_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.project_status_id_seq OWNER TO postgres;

--
-- Name: project_status_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.project_status_id_seq OWNED BY public.project_statuses.id;


--
-- Name: project_types; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.project_types (
    id integer NOT NULL,
    "position" integer NOT NULL,
    description text,
    internal boolean DEFAULT false NOT NULL
);


ALTER TABLE public.project_types OWNER TO postgres;

--
-- Name: project_types_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.project_types_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.project_types_id_seq OWNER TO postgres;

--
-- Name: project_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.project_types_id_seq OWNED BY public.project_types.id;


--
-- Name: reconciliation_links; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.reconciliation_links (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    bank_transaction_id integer NOT NULL,
    acc_trans_id bigint NOT NULL,
    rec_group integer NOT NULL
);


ALTER TABLE public.reconciliation_links OWNER TO postgres;

--
-- Name: record_links; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.record_links (
    from_table character varying(50) NOT NULL,
    from_id integer NOT NULL,
    to_table character varying(50) NOT NULL,
    to_id integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    id integer NOT NULL
);


ALTER TABLE public.record_links OWNER TO postgres;

--
-- Name: record_links_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.record_links_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.record_links_id_seq OWNER TO postgres;

--
-- Name: record_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.record_links_id_seq OWNED BY public.record_links.id;


--
-- Name: record_template_items; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.record_template_items (
    id integer NOT NULL,
    record_template_id integer NOT NULL,
    chart_id integer NOT NULL,
    tax_id integer NOT NULL,
    project_id integer,
    amount1 numeric(15,5) NOT NULL,
    amount2 numeric(15,5),
    source text,
    memo text
);


ALTER TABLE public.record_template_items OWNER TO postgres;

--
-- Name: record_template_items_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.record_template_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.record_template_items_id_seq OWNER TO postgres;

--
-- Name: record_template_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.record_template_items_id_seq OWNED BY public.record_template_items.id;


--
-- Name: record_templates; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.record_templates (
    id integer NOT NULL,
    template_name text NOT NULL,
    template_type public.record_template_type NOT NULL,
    customer_id integer,
    vendor_id integer,
    currency_id integer NOT NULL,
    department_id integer,
    project_id integer,
    employee_id integer,
    taxincluded boolean DEFAULT false NOT NULL,
    direct_debit boolean DEFAULT false NOT NULL,
    ob_transaction boolean DEFAULT false NOT NULL,
    cb_transaction boolean DEFAULT false NOT NULL,
    reference text,
    description text,
    ordnumber text,
    notes text,
    ar_ap_chart_id integer,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone DEFAULT now() NOT NULL,
    show_details boolean DEFAULT false NOT NULL
);


ALTER TABLE public.record_templates OWNER TO postgres;

--
-- Name: record_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.record_templates_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.record_templates_id_seq OWNER TO postgres;

--
-- Name: record_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.record_templates_id_seq OWNED BY public.record_templates.id;


--
-- Name: requirement_spec_acceptance_statuses; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_acceptance_statuses (
    id integer NOT NULL,
    name text NOT NULL,
    description text,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.requirement_spec_acceptance_statuses OWNER TO postgres;

--
-- Name: requirement_spec_acceptance_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_acceptance_statuses_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_acceptance_statuses_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_acceptance_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_acceptance_statuses_id_seq OWNED BY public.requirement_spec_acceptance_statuses.id;


--
-- Name: requirement_spec_complexities; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_complexities (
    id integer NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.requirement_spec_complexities OWNER TO postgres;

--
-- Name: requirement_spec_complexities_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_complexities_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_complexities_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_complexities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_complexities_id_seq OWNED BY public.requirement_spec_complexities.id;


--
-- Name: requirement_spec_item_dependencies; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_item_dependencies (
    depending_item_id integer NOT NULL,
    depended_item_id integer NOT NULL
);


ALTER TABLE public.requirement_spec_item_dependencies OWNER TO postgres;

--
-- Name: requirement_spec_items; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_items (
    id integer NOT NULL,
    requirement_spec_id integer NOT NULL,
    item_type text NOT NULL,
    parent_id integer,
    "position" integer NOT NULL,
    fb_number text NOT NULL,
    title text,
    description text,
    complexity_id integer,
    risk_id integer,
    time_estimation numeric(12,2) DEFAULT 0 NOT NULL,
    is_flagged boolean DEFAULT false NOT NULL,
    acceptance_status_id integer,
    acceptance_text text,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone,
    order_part_id integer,
    sellprice_factor numeric(10,5) DEFAULT 1,
    CONSTRAINT valid_item_type CHECK (((item_type = 'section'::text) OR (item_type = 'function-block'::text) OR (item_type = 'sub-function-block'::text))),
    CONSTRAINT valid_parent_id_for_item_type CHECK (
CASE
    WHEN (item_type = 'section'::text) THEN (parent_id IS NULL)
    ELSE (parent_id IS NOT NULL)
END)
);


ALTER TABLE public.requirement_spec_items OWNER TO postgres;

--
-- Name: requirement_spec_items_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_items_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_items_id_seq OWNED BY public.requirement_spec_items.id;


--
-- Name: requirement_spec_orders; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_orders (
    id integer NOT NULL,
    requirement_spec_id integer NOT NULL,
    order_id integer NOT NULL,
    version_id integer,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.requirement_spec_orders OWNER TO postgres;

--
-- Name: requirement_spec_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_orders_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_orders_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_orders_id_seq OWNED BY public.requirement_spec_orders.id;


--
-- Name: requirement_spec_parts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_parts (
    id integer NOT NULL,
    requirement_spec_id integer NOT NULL,
    part_id integer NOT NULL,
    unit_id integer NOT NULL,
    qty numeric(15,5) NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL
);


ALTER TABLE public.requirement_spec_parts OWNER TO postgres;

--
-- Name: requirement_spec_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_parts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_parts_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_parts_id_seq OWNED BY public.requirement_spec_parts.id;


--
-- Name: requirement_spec_pictures; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_pictures (
    id integer NOT NULL,
    requirement_spec_id integer NOT NULL,
    text_block_id integer NOT NULL,
    "position" integer NOT NULL,
    number text NOT NULL,
    description text,
    picture_file_name text NOT NULL,
    picture_content_type text NOT NULL,
    picture_mtime timestamp without time zone DEFAULT now() NOT NULL,
    picture_content bytea NOT NULL,
    picture_width integer NOT NULL,
    picture_height integer NOT NULL,
    thumbnail_content_type text NOT NULL,
    thumbnail_content bytea NOT NULL,
    thumbnail_width integer NOT NULL,
    thumbnail_height integer NOT NULL,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone
);


ALTER TABLE public.requirement_spec_pictures OWNER TO postgres;

--
-- Name: requirement_spec_pictures_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_pictures_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_pictures_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_pictures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_pictures_id_seq OWNED BY public.requirement_spec_pictures.id;


--
-- Name: requirement_spec_predefined_texts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_predefined_texts (
    id integer NOT NULL,
    description text NOT NULL,
    title text NOT NULL,
    text text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    useable_for_text_blocks boolean DEFAULT false NOT NULL,
    useable_for_sections boolean DEFAULT false NOT NULL
);


ALTER TABLE public.requirement_spec_predefined_texts OWNER TO postgres;

--
-- Name: requirement_spec_predefined_texts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_predefined_texts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_predefined_texts_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_predefined_texts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_predefined_texts_id_seq OWNED BY public.requirement_spec_predefined_texts.id;


--
-- Name: requirement_spec_risks; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_risks (
    id integer NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.requirement_spec_risks OWNER TO postgres;

--
-- Name: requirement_spec_risks_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_risks_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_risks_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_risks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_risks_id_seq OWNED BY public.requirement_spec_risks.id;


--
-- Name: requirement_spec_statuses; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_statuses (
    id integer NOT NULL,
    name text NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.requirement_spec_statuses OWNER TO postgres;

--
-- Name: requirement_spec_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_statuses_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_statuses_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_statuses_id_seq OWNED BY public.requirement_spec_statuses.id;


--
-- Name: requirement_spec_text_blocks; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_text_blocks (
    id integer NOT NULL,
    requirement_spec_id integer NOT NULL,
    title text NOT NULL,
    text text,
    "position" integer NOT NULL,
    output_position integer DEFAULT 1 NOT NULL,
    is_flagged boolean DEFAULT false NOT NULL,
    itime timestamp without time zone DEFAULT now() NOT NULL,
    mtime timestamp without time zone
);


ALTER TABLE public.requirement_spec_text_blocks OWNER TO postgres;

--
-- Name: requirement_spec_text_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_text_blocks_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_text_blocks_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_text_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_text_blocks_id_seq OWNED BY public.requirement_spec_text_blocks.id;


--
-- Name: requirement_spec_types; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_types (
    id integer NOT NULL,
    description text NOT NULL,
    "position" integer NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    section_number_format text DEFAULT 'A00'::text NOT NULL,
    function_block_number_format text DEFAULT 'FB000'::text NOT NULL,
    template_file_name text
);


ALTER TABLE public.requirement_spec_types OWNER TO postgres;

--
-- Name: requirement_spec_types_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_types_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_types_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_types_id_seq OWNED BY public.requirement_spec_types.id;


--
-- Name: requirement_spec_versions; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_spec_versions (
    id integer NOT NULL,
    version_number integer,
    description text NOT NULL,
    comment text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    requirement_spec_id integer NOT NULL,
    working_copy_id integer
);


ALTER TABLE public.requirement_spec_versions OWNER TO postgres;

--
-- Name: requirement_spec_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_spec_versions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_spec_versions_id_seq OWNER TO postgres;

--
-- Name: requirement_spec_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_spec_versions_id_seq OWNED BY public.requirement_spec_versions.id;


--
-- Name: requirement_specs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.requirement_specs (
    id integer NOT NULL,
    type_id integer NOT NULL,
    status_id integer,
    customer_id integer,
    project_id integer,
    title text NOT NULL,
    hourly_rate numeric(8,2) DEFAULT 0 NOT NULL,
    working_copy_id integer,
    previous_section_number integer NOT NULL,
    previous_fb_number integer NOT NULL,
    is_template boolean DEFAULT false,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    time_estimation numeric(12,2) DEFAULT 0 NOT NULL,
    previous_picture_number integer DEFAULT 0 NOT NULL,
    CONSTRAINT requirement_specs_is_template_or_has_customer_status_type CHECK ((is_template OR ((type_id IS NOT NULL) AND (status_id IS NOT NULL) AND (customer_id IS NOT NULL))))
);


ALTER TABLE public.requirement_specs OWNER TO postgres;

--
-- Name: requirement_specs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.requirement_specs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.requirement_specs_id_seq OWNER TO postgres;

--
-- Name: requirement_specs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.requirement_specs_id_seq OWNED BY public.requirement_specs.id;


--
-- Name: schema_info; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.schema_info (
    tag text NOT NULL,
    login text,
    itime timestamp without time zone DEFAULT now()
);


ALTER TABLE public.schema_info OWNER TO postgres;

--
-- Name: sepa_export_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.sepa_export_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.sepa_export_id_seq OWNER TO postgres;

--
-- Name: sepa_export; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.sepa_export (
    id integer DEFAULT nextval('public.sepa_export_id_seq'::regclass) NOT NULL,
    employee_id integer NOT NULL,
    executed boolean DEFAULT false,
    closed boolean DEFAULT false,
    itime timestamp without time zone DEFAULT now(),
    vc character varying(10)
);


ALTER TABLE public.sepa_export OWNER TO postgres;

--
-- Name: sepa_export_message_ids; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.sepa_export_message_ids (
    id integer NOT NULL,
    sepa_export_id integer NOT NULL,
    message_id text NOT NULL
);


ALTER TABLE public.sepa_export_message_ids OWNER TO postgres;

--
-- Name: sepa_export_message_ids_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.sepa_export_message_ids_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.sepa_export_message_ids_id_seq OWNER TO postgres;

--
-- Name: sepa_export_message_ids_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.sepa_export_message_ids_id_seq OWNED BY public.sepa_export_message_ids.id;


--
-- Name: shipto; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.shipto (
    trans_id integer,
    shiptoname text,
    shiptodepartment_1 text,
    shiptodepartment_2 text,
    shiptostreet text,
    shiptozipcode text,
    shiptocity text,
    shiptocountry text,
    shiptocontact text,
    shiptophone text,
    shiptofax text,
    shiptoemail text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    module text,
    shipto_id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    shiptocp_gender text,
    shiptogln text
);


ALTER TABLE public.shipto OWNER TO postgres;

--
-- Name: shop_images; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.shop_images (
    id integer NOT NULL,
    file_id integer,
    "position" integer,
    thumbnail_content bytea,
    org_file_width integer,
    org_file_height integer,
    thumbnail_content_type text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    object_id text NOT NULL
);


ALTER TABLE public.shop_images OWNER TO postgres;

--
-- Name: shop_images_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.shop_images_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.shop_images_id_seq OWNER TO postgres;

--
-- Name: shop_images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.shop_images_id_seq OWNED BY public.shop_images.id;


--
-- Name: shop_order_items; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.shop_order_items (
    id integer NOT NULL,
    shop_trans_id integer NOT NULL,
    shop_order_id integer,
    description text,
    partnumber text,
    "position" integer,
    tax_rate numeric(15,2),
    quantity numeric(25,5),
    price numeric(15,5),
    active_price_source text
);


ALTER TABLE public.shop_order_items OWNER TO postgres;

--
-- Name: shop_order_items_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.shop_order_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.shop_order_items_id_seq OWNER TO postgres;

--
-- Name: shop_order_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.shop_order_items_id_seq OWNED BY public.shop_order_items.id;

--
-- Name: shop_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.shop_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.shop_orders_id_seq OWNER TO postgres;

--
-- Name: shop_orders_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.shop_orders_id_seq OWNED BY public.shop_orders.id;


--
-- Name: shop_parts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.shop_parts (
    id integer NOT NULL,
    shop_id integer NOT NULL,
    part_id integer NOT NULL,
    shop_description text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    last_update timestamp without time zone,
    show_date date,
    sortorder integer,
    front_page boolean DEFAULT false NOT NULL,
    active boolean DEFAULT false NOT NULL,
    shop_category text[],
    active_price_source text,
    metatag_keywords text,
    metatag_description text,
    metatag_title text
);


ALTER TABLE public.shop_parts OWNER TO postgres;

--
-- Name: shop_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.shop_parts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.shop_parts_id_seq OWNER TO postgres;

--
-- Name: shop_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.shop_parts_id_seq OWNED BY public.shop_parts.id;

--
-- Name: shops_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.shops_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.shops_id_seq OWNER TO postgres;

--
-- Name: shops_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.shops_id_seq OWNED BY public.shops.id;


--
-- Name: status; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.status (
    trans_id integer,
    formname text,
    printed boolean DEFAULT false,
    emailed boolean DEFAULT false,
    spoolfile text,
    chart_id integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    id integer NOT NULL
);


ALTER TABLE public.status OWNER TO postgres;

--
-- Name: status_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.status_id_seq OWNER TO postgres;

--
-- Name: status_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.status_id_seq OWNED BY public.status.id;


--
-- Name: stocktakings; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stocktakings (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    inventory_id integer,
    warehouse_id integer NOT NULL,
    bin_id integer NOT NULL,
    parts_id integer NOT NULL,
    employee_id integer NOT NULL,
    qty numeric(25,5) NOT NULL,
    comment text,
    chargenumber text DEFAULT ''::text NOT NULL,
    bestbefore date,
    cutoff_date date NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.stocktakings OWNER TO postgres;

--
-- Name: tax; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tax (
    chart_id integer,
    rate numeric(15,5) DEFAULT 0 NOT NULL,
    taxkey integer NOT NULL,
    taxdescription text NOT NULL,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    chart_categories text NOT NULL,
    skonto_sales_chart_id integer,
    skonto_purchase_chart_id integer
);


ALTER TABLE public.tax OWNER TO postgres;

--
-- Name: tax_zones; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tax_zones (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    sortkey integer NOT NULL,
    obsolete boolean DEFAULT false
);


ALTER TABLE public.tax_zones OWNER TO postgres;

--
-- Name: taxkeys; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.taxkeys (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    chart_id integer NOT NULL,
    tax_id integer NOT NULL,
    taxkey_id integer NOT NULL,
    pos_ustva integer,
    startdate date NOT NULL
);


ALTER TABLE public.taxkeys OWNER TO postgres;

--
-- Name: taxzone_charts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.taxzone_charts (
    id integer NOT NULL,
    taxzone_id integer NOT NULL,
    buchungsgruppen_id integer NOT NULL,
    income_accno_id integer NOT NULL,
    expense_accno_id integer NOT NULL,
    itime timestamp without time zone DEFAULT now()
);


ALTER TABLE public.taxzone_charts OWNER TO postgres;

--
-- Name: taxzone_charts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.taxzone_charts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.taxzone_charts_id_seq OWNER TO postgres;

--
-- Name: taxzone_charts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.taxzone_charts_id_seq OWNED BY public.taxzone_charts.id;


--
-- Name: todo_user_config; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.todo_user_config (
    employee_id integer NOT NULL,
    show_after_login boolean DEFAULT true,
    show_follow_ups boolean DEFAULT true,
    show_follow_ups_login boolean DEFAULT true,
    show_overdue_sales_quotations boolean DEFAULT true,
    show_overdue_sales_quotations_login boolean DEFAULT true,
    id integer NOT NULL
);


ALTER TABLE public.todo_user_config OWNER TO postgres;

--
-- Name: todo_user_config_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.todo_user_config_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.todo_user_config_id_seq OWNER TO postgres;

--
-- Name: todo_user_config_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.todo_user_config_id_seq OWNED BY public.todo_user_config.id;


--
-- Name: transfer_type; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.transfer_type (
    id integer DEFAULT nextval('public.id'::regclass) NOT NULL,
    direction character varying(10) NOT NULL,
    description text,
    sortkey integer,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone
);


ALTER TABLE public.transfer_type OWNER TO postgres;

--
-- Name: translation; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.translation (
    parts_id integer,
    language_id integer,
    translation text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    longdescription text,
    id integer NOT NULL
);


ALTER TABLE public.translation OWNER TO postgres;

--
-- Name: translation_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.translation_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.translation_id_seq OWNER TO postgres;

--
-- Name: translation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.translation_id_seq OWNED BY public.translation.id;

--
-- Name: trigger_information_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.trigger_information_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.trigger_information_id_seq OWNER TO postgres;

--
-- Name: trigger_information_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.trigger_information_id_seq OWNED BY public.trigger_information.id;


--
-- Name: units; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.units (
    name character varying(20) NOT NULL,
    base_unit character varying(20),
    factor numeric(20,5),
    type character varying(20),
    sortkey integer NOT NULL,
    id integer NOT NULL
);


ALTER TABLE public.units OWNER TO postgres;

--
-- Name: units_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.units_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.units_id_seq OWNER TO postgres;

--
-- Name: units_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.units_id_seq OWNED BY public.units.id;


--
-- Name: units_language; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.units_language (
    unit character varying(20) NOT NULL,
    language_id integer NOT NULL,
    localized character varying(20),
    localized_plural character varying(20),
    id integer NOT NULL
);


ALTER TABLE public.units_language OWNER TO postgres;

--
-- Name: units_language_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.units_language_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.units_language_id_seq OWNER TO postgres;

--
-- Name: units_language_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.units_language_id_seq OWNED BY public.units_language.id;

--
-- Name: user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.user_preferences_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.user_preferences_id_seq OWNER TO postgres;

--
-- Name: user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.user_preferences_id_seq OWNED BY public.user_preferences.id;

--
-- Name: warehouse; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.warehouse (
    id integer DEFAULT nextval(('id'::text)::regclass) NOT NULL,
    description text,
    itime timestamp without time zone DEFAULT now(),
    mtime timestamp without time zone,
    sortkey integer,
    invalid boolean
);


ALTER TABLE public.warehouse OWNER TO postgres;

--
-- Name: report_categories; Type: TABLE; Schema: tax; Owner: postgres
--

CREATE TABLE tax.report_categories (
    id integer NOT NULL,
    description text,
    subdescription text
);


ALTER TABLE tax.report_categories OWNER TO postgres;

--
-- Name: report_headings; Type: TABLE; Schema: tax; Owner: postgres
--

CREATE TABLE tax.report_headings (
    id integer NOT NULL,
    category_id integer NOT NULL,
    type text,
    description text,
    subdescription text
);


ALTER TABLE tax.report_headings OWNER TO postgres;

--
-- Name: report_variables; Type: TABLE; Schema: tax; Owner: postgres
--

CREATE TABLE tax.report_variables (
    id integer NOT NULL,
    "position" text NOT NULL,
    heading_id integer,
    description text,
    taxbase text,
    dec_places text,
    valid_from date
);


ALTER TABLE tax.report_variables OWNER TO postgres;

--
-- Name: background_job_histories id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.background_job_histories ALTER COLUMN id SET DEFAULT nextval('public.background_job_histories_id_seq'::regclass);


--
-- Name: background_jobs id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.background_jobs ALTER COLUMN id SET DEFAULT nextval('public.background_jobs_id_seq'::regclass);


--
-- Name: bank_transactions id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transactions ALTER COLUMN id SET DEFAULT nextval('public.bank_transactions_id_seq'::regclass);


--
-- Name: contact_departments id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_departments ALTER COLUMN id SET DEFAULT nextval('public.contact_departments_id_seq'::regclass);


--
-- Name: contact_titles id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_titles ALTER COLUMN id SET DEFAULT nextval('public.contact_titles_id_seq'::regclass);


--
-- Name: csv_import_profiles id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_profiles ALTER COLUMN id SET DEFAULT nextval('public.csv_import_profiles_id_seq'::regclass);


--
-- Name: csv_import_report_rows id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_report_rows ALTER COLUMN id SET DEFAULT nextval('public.csv_import_report_rows_id_seq'::regclass);


--
-- Name: csv_import_report_status id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_report_status ALTER COLUMN id SET DEFAULT nextval('public.csv_import_report_status_id_seq'::regclass);


--
-- Name: currencies id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.currencies ALTER COLUMN id SET DEFAULT nextval('public.currencies_id_seq'::regclass);


--
-- Name: custom_data_export_queries id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_data_export_queries ALTER COLUMN id SET DEFAULT nextval('public.custom_data_export_queries_id_seq'::regclass);


--
-- Name: custom_data_export_query_parameters id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_data_export_query_parameters ALTER COLUMN id SET DEFAULT nextval('public.custom_data_export_query_parameters_id_seq'::regclass);


--
-- Name: datev id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.datev ALTER COLUMN id SET DEFAULT nextval('public.datev_id_seq'::regclass);


--
-- Name: defaults id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults ALTER COLUMN id SET DEFAULT nextval('public.defaults_id_seq'::regclass);


--
-- Name: email_journal id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.email_journal ALTER COLUMN id SET DEFAULT nextval('public.email_journal_id_seq'::regclass);


--
-- Name: email_journal_attachments id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.email_journal_attachments ALTER COLUMN id SET DEFAULT nextval('public.email_journal_attachments_id_seq'::regclass);


--
-- Name: exchangerate id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchangerate ALTER COLUMN id SET DEFAULT nextval('public.exchangerate_id_seq'::regclass);


--
-- Name: files id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.files ALTER COLUMN id SET DEFAULT nextval('public.files_id_seq'::regclass);


--
-- Name: finanzamt id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.finanzamt ALTER COLUMN id SET DEFAULT nextval('public.finanzamt_id_seq'::regclass);


--
-- Name: follow_up_access id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_up_access ALTER COLUMN id SET DEFAULT nextval('public.follow_up_access_id_seq'::regclass);


--
-- Name: generic_translations id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.generic_translations ALTER COLUMN id SET DEFAULT nextval('public.generic_translations_id_seq'::regclass);


--
-- Name: greetings id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.greetings ALTER COLUMN id SET DEFAULT nextval('public.greetings_id_seq'::regclass);


--
-- Name: inventory id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory ALTER COLUMN id SET DEFAULT nextval('public.inventory_id_seq'::regclass);


--
-- Name: part_classifications id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.part_classifications ALTER COLUMN id SET DEFAULT nextval('public.part_classifications_id_seq'::regclass);


--
-- Name: part_customer_prices id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.part_customer_prices ALTER COLUMN id SET DEFAULT nextval('public.part_customer_prices_id_seq'::regclass);


--
-- Name: parts_price_history id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts_price_history ALTER COLUMN id SET DEFAULT nextval('public.parts_price_history_id_seq'::regclass);


--
-- Name: price_rule_items id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_rule_items ALTER COLUMN id SET DEFAULT nextval('public.price_rule_items_id_seq'::regclass);


--
-- Name: price_rules id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_rules ALTER COLUMN id SET DEFAULT nextval('public.price_rules_id_seq'::regclass);


--
-- Name: prices id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.prices ALTER COLUMN id SET DEFAULT nextval('public.prices_id_seq'::regclass);


--
-- Name: project_participants id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_participants ALTER COLUMN id SET DEFAULT nextval('public.project_participants_id_seq'::regclass);


--
-- Name: project_phase_participants id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phase_participants ALTER COLUMN id SET DEFAULT nextval('public.project_phase_participants_id_seq'::regclass);


--
-- Name: project_phases id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phases ALTER COLUMN id SET DEFAULT nextval('public.project_phases_id_seq'::regclass);


--
-- Name: project_roles id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_roles ALTER COLUMN id SET DEFAULT nextval('public.project_roles_id_seq'::regclass);


--
-- Name: project_statuses id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_statuses ALTER COLUMN id SET DEFAULT nextval('public.project_status_id_seq'::regclass);


--
-- Name: project_types id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_types ALTER COLUMN id SET DEFAULT nextval('public.project_types_id_seq'::regclass);


--
-- Name: record_links id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_links ALTER COLUMN id SET DEFAULT nextval('public.record_links_id_seq'::regclass);


--
-- Name: record_template_items id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_template_items ALTER COLUMN id SET DEFAULT nextval('public.record_template_items_id_seq'::regclass);


--
-- Name: record_templates id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates ALTER COLUMN id SET DEFAULT nextval('public.record_templates_id_seq'::regclass);


--
-- Name: requirement_spec_acceptance_statuses id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_acceptance_statuses ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_acceptance_statuses_id_seq'::regclass);


--
-- Name: requirement_spec_complexities id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_complexities ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_complexities_id_seq'::regclass);


--
-- Name: requirement_spec_items id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_items_id_seq'::regclass);


--
-- Name: requirement_spec_orders id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_orders ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_orders_id_seq'::regclass);


--
-- Name: requirement_spec_parts id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_parts ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_parts_id_seq'::regclass);


--
-- Name: requirement_spec_pictures id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_pictures ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_pictures_id_seq'::regclass);


--
-- Name: requirement_spec_predefined_texts id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_predefined_texts ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_predefined_texts_id_seq'::regclass);


--
-- Name: requirement_spec_risks id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_risks ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_risks_id_seq'::regclass);


--
-- Name: requirement_spec_statuses id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_statuses ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_statuses_id_seq'::regclass);


--
-- Name: requirement_spec_text_blocks id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_text_blocks ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_text_blocks_id_seq'::regclass);


--
-- Name: requirement_spec_types id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_types ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_types_id_seq'::regclass);


--
-- Name: requirement_spec_versions id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_versions ALTER COLUMN id SET DEFAULT nextval('public.requirement_spec_versions_id_seq'::regclass);


--
-- Name: requirement_specs id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs ALTER COLUMN id SET DEFAULT nextval('public.requirement_specs_id_seq'::regclass);


--
-- Name: sepa_export_message_ids id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sepa_export_message_ids ALTER COLUMN id SET DEFAULT nextval('public.sepa_export_message_ids_id_seq'::regclass);


--
-- Name: shop_images id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_images ALTER COLUMN id SET DEFAULT nextval('public.shop_images_id_seq'::regclass);


--
-- Name: shop_order_items id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_order_items ALTER COLUMN id SET DEFAULT nextval('public.shop_order_items_id_seq'::regclass);


--
-- Name: shop_parts id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_parts ALTER COLUMN id SET DEFAULT nextval('public.shop_parts_id_seq'::regclass);


--
-- Name: status id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.status ALTER COLUMN id SET DEFAULT nextval('public.status_id_seq'::regclass);


--
-- Name: taxzone_charts id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxzone_charts ALTER COLUMN id SET DEFAULT nextval('public.taxzone_charts_id_seq'::regclass);


--
-- Name: todo_user_config id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.todo_user_config ALTER COLUMN id SET DEFAULT nextval('public.todo_user_config_id_seq'::regclass);


--
-- Name: translation id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.translation ALTER COLUMN id SET DEFAULT nextval('public.translation_id_seq'::regclass);


--
-- Name: units id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units ALTER COLUMN id SET DEFAULT nextval('public.units_id_seq'::regclass);


--
-- Name: units_language id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units_language ALTER COLUMN id SET DEFAULT nextval('public.units_language_id_seq'::regclass);


--
-- Data for Name: acc_trans; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.acc_trans (acc_trans_id, trans_id, chart_id, amount, transdate, gldate, source, cleared, fx_transaction, ob_transaction, cb_transaction, project_id, memo, taxkey, itime, mtime, chart_link, tax_id) FROM stdin;
600	183	45	2300705.00000	2018-01-18	2018-01-18		f	f	f	f	\N		0	2012-09-14 11:39:33.140067	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
601	184	302	-1500.00000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-09-14 11:43:46.20216	2017-12-06 10:30:11.172365	AP_amount	0
602	184	44	1500.00000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-09-14 11:43:46.20216	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
603	185	219	-8911.78000	2018-12-31	2018-12-31		f	f	f	f	\N		0	2012-09-14 15:15:43.512224	2017-12-06 10:30:11.172365		0
604	185	4	8911.78000	2018-12-31	2018-12-31		f	f	f	f	\N		0	2012-09-14 15:15:43.512224	2017-12-06 10:30:11.172365	AP_amount	0
605	186	14	1361.34000	2018-12-31	2018-12-31		f	f	f	f	\N		0	2012-09-14 15:39:03.186572	2017-12-06 10:30:11.172365	AP_amount	0
606	186	1664	-1361.34000	2018-12-31	2018-12-31		f	f	f	f	\N		0	2012-09-14 15:39:03.186572	2017-12-06 10:30:11.172365		0
607	187	192	-52273.00000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-14 16:01:30.340884	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	0
608	187	38	-109250.00000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-14 16:01:30.340884	2017-12-06 10:30:11.172365		0
609	187	45	161523.00000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-14 16:01:30.340884	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
610	188	31	-342000.00000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-17 10:49:21.617425	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
611	188	64	342000.00000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-17 10:49:21.617425	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
614	190	316	-58.30000	2018-01-06	2018-01-06		f	f	f	f	\N		0	2012-09-17 13:54:38.544742	2017-12-06 10:30:11.172365		0
615	190	45	58.30000	2018-01-06	2018-01-06		f	f	f	f	\N		0	2012-09-17 13:54:38.544742	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
6	3	45	-50000000.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:37:59.674835	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
716	224	57	-142800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-10-08 15:30:57.901724	2017-12-06 10:30:11.172365	AP	0
717	224	168	120000.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	9	2012-10-08 15:30:57.901724	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
718	224	33	22800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-10-08 15:30:57.901724	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
743	227	1234	-12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-08 15:56:31.038748	2017-12-06 10:30:11.172365		0
744	227	45	12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-08 15:56:31.038748	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
587	179	45	200000.00000	2018-11-22	2018-11-22		f	f	f	f	1020		0	2012-09-12 14:41:19.85977	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
8	4	44	-30000.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:39:53.166922	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
15	7	6	-10527271.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:50:35.740764	2017-12-06 10:30:11.172365	AP_amount	0
17	8	4	-89117833.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:52:44.225147	2017-12-06 10:30:11.172365	AP_amount	0
548	172	168	-3907563.03000	2018-09-10	2018-09-10	\N	f	f	f	f	1020	\N	9	2012-09-12 14:14:06.926166	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
549	172	33	-742436.97000	2018-09-10	2018-09-10	\N	f	f	f	f	1020	\N	0	2012-09-12 14:14:06.926166	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
616	191	316	-52.30000	2018-02-03	2018-02-03		f	f	f	f	\N		0	2012-09-17 13:55:40.08567	2017-12-06 10:30:11.172365		0
617	191	45	52.30000	2018-02-03	2018-02-03		f	f	f	f	\N		0	2012-09-17 13:55:40.08567	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
618	192	316	-78.75000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-09-17 13:56:16.130118	2017-12-06 10:30:11.172365		0
619	192	45	78.75000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-09-17 13:56:16.130118	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
620	193	316	-88.50000	2018-04-06	2018-04-06		f	f	f	f	\N		0	2012-09-17 13:56:47.06526	2017-12-06 10:30:11.172365		0
621	193	45	88.50000	2018-04-06	2018-04-06		f	f	f	f	\N		0	2012-09-17 13:56:47.06526	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
622	194	316	-64.25000	2018-05-04	2018-05-04		f	f	f	f	\N		0	2012-09-17 13:57:25.354312	2017-12-06 10:30:11.172365		0
623	194	45	64.25000	2018-05-04	2018-05-04		f	f	f	f	\N		0	2012-09-17 13:57:25.354312	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
624	195	316	-66.20000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-17 13:57:57.706063	2017-12-06 10:30:11.172365		0
19	9	15	-2024660.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:54:32.928509	2017-12-06 10:30:11.172365	IC	0
24	11	1228	129315022.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:25:40.212878	2017-12-06 10:30:11.172365		0
26	12	54	5800500.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:27:10.303141	2017-12-06 10:30:11.172365		0
28	13	1230	2300705.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:28:11.552002	2017-12-06 10:30:11.172365		0
30	14	1234	12836179.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:29:02.562595	2017-12-06 10:30:11.172365		0
31	15	303	-781.51261	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 13:57:08.242206	2017-12-06 10:30:11.172365	AP_amount	389
32	15	33	-148.48739	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 13:57:08.242206	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
33	15	45	930.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 13:57:08.242206	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
34	16	306	-114.90654	2018-01-01	2018-01-01		f	f	f	f	\N		8	2012-08-30 13:57:10.113343	2017-12-06 10:30:11.172365	AP_amount	377
35	16	28	-8.04346	2018-01-01	2018-01-01		f	f	f	f	\N		8	2012-08-30 13:57:10.113343	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	377
36	16	45	122.95000	2018-01-01	2018-01-01		f	f	f	f	\N		0	2012-08-30 13:57:10.113343	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
37	17	255	-99500.00000	2018-01-01	2018-01-01		f	f	f	f	\N		0	2012-08-30 13:57:41.638499	2017-12-06 10:30:11.172365	AP_amount	0
38	17	45	99500.00000	2018-01-01	2018-01-01		f	f	f	f	\N		0	2012-08-30 13:57:41.638499	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
39	18	244	-5798.31933	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 13:58:35.010203	2017-12-06 10:30:11.172365	AP_amount	389
40	18	33	-1101.68067	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 13:58:35.010203	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
41	18	45	6900.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 13:58:35.010203	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
42	19	303	-781.51261	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 13:58:42.785234	2017-12-06 10:30:11.172365	AP_amount	389
43	19	33	-148.48739	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 13:58:42.785234	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
44	19	45	930.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 13:58:42.785234	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
45	20	244	-5798.31933	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 13:59:12.001294	2017-12-06 10:30:11.172365	AP_amount	389
46	20	33	-1101.68067	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 13:59:12.001294	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
47	20	45	6900.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 13:59:12.001294	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
49	21	33	-148.48739	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 13:59:13.571963	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
50	21	45	930.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 13:59:13.571963	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
51	22	244	-5798.31933	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:00:11.608811	2017-12-06 10:30:11.172365	AP_amount	389
52	22	33	-1101.68067	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:00:11.608811	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
53	22	45	6900.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:00:11.608811	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
54	23	303	-781.51261	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:00:23.879965	2017-12-06 10:30:11.172365	AP_amount	389
55	23	33	-148.48739	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:00:23.879965	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
56	23	45	930.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:00:23.879965	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
57	24	244	-5630.25210	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:00:39.503505	2017-12-06 10:30:11.172365	AP_amount	389
58	24	33	-1069.74790	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:00:39.503505	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
48	21	303	-781.51261	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 13:59:13.571963	2017-12-06 10:30:11.172365	AP_amount	389
59	24	45	6700.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:00:39.503505	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
60	25	303	-781.51261	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:01:01.68727	2017-12-06 10:30:11.172365	AP_amount	389
61	25	33	-148.48739	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:01:01.68727	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
62	25	45	930.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:01:01.68727	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
63	26	244	-5798.31933	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:01:26.509661	2017-12-06 10:30:11.172365	AP_amount	389
64	26	33	-1101.68067	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:01:26.509661	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
65	26	45	6900.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:01:26.509661	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
66	27	303	-781.51261	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:01:39.489868	2017-12-06 10:30:11.172365	AP_amount	389
67	27	33	-148.48739	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:01:39.489868	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
68	27	45	930.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:01:39.489868	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
72	29	303	-781.51261	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:02:41.459301	2017-12-06 10:30:11.172365	AP_amount	389
73	29	33	-148.48739	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:02:41.459301	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
74	29	45	930.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:02:41.459301	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
75	30	244	-4369.74790	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:05:11.020766	2017-12-06 10:30:11.172365	AP_amount	389
76	30	33	-830.25210	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:05:11.020766	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
77	30	45	5200.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:05:11.020766	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
78	31	244	-4369.74790	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:05:45.396049	2017-12-06 10:30:11.172365	AP_amount	389
79	31	33	-830.25210	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:05:45.396049	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
80	31	45	5200.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:05:45.396049	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
81	32	238	-48.04202	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:07:59.966575	2017-12-06 10:30:11.172365	AP_amount	389
82	32	33	-9.12798	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:07:59.966575	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
83	32	45	57.17000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:07:59.966575	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
84	33	245	-16605.04202	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:08:17.739565	2017-12-06 10:30:11.172365	AP_amount	389
85	33	33	-3154.95798	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:08:17.739565	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
86	33	45	19760.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:08:17.739565	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
87	34	238	-48.04202	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:08:29.678496	2017-12-06 10:30:11.172365	AP_amount	389
88	34	33	-9.12798	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:08:29.678496	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
89	34	45	57.17000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:08:29.678496	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
90	35	245	-16689.07563	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:08:58.811817	2017-12-06 10:30:11.172365	AP_amount	389
91	35	33	-3170.92437	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:08:58.811817	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
92	35	45	19860.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:08:58.811817	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
93	36	238	-48.04202	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:09:00.348871	2017-12-06 10:30:11.172365	AP_amount	389
94	36	33	-9.12798	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:09:00.348871	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
95	36	45	57.17000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:09:00.348871	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
96	37	238	-48.04202	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:09:33.388886	2017-12-06 10:30:11.172365	AP_amount	389
97	37	33	-9.12798	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:09:33.388886	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
5	2	53	130000000.00000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-08-30 11:07:21.63752	2017-12-06 10:30:11.172365		0
7	3	368	50000000.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:37:59.674835	2017-12-06 10:30:11.172365		0
98	37	45	57.17000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:09:33.388886	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
99	38	245	-16605.04202	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:09:41.483389	2017-12-06 10:30:11.172365	AP_amount	389
100	38	33	-3154.95798	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:09:41.483389	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
101	38	45	19760.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:09:41.483389	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
102	39	238	-48.04202	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:09:50.809317	2017-12-06 10:30:11.172365	AP_amount	389
103	39	33	-9.12798	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:09:50.809317	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
104	39	45	57.17000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:09:50.809317	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
105	40	238	-48.04202	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:10:10.039075	2017-12-06 10:30:11.172365	AP_amount	389
106	40	33	-9.12798	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:10:10.039075	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
107	40	45	57.17000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:10:10.039075	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
108	41	238	-48.04202	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:10:25.370291	2017-12-06 10:30:11.172365	AP_amount	389
22	10	1226	75000000.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:24:23.521796	2017-12-06 10:30:11.172365		0
109	41	33	-9.12798	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:10:25.370291	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
110	41	45	57.17000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:10:25.370291	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
111	42	245	-16521.00840	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:10:28.969769	2017-12-06 10:30:11.172365	AP_amount	389
112	42	33	-3138.99160	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:10:28.969769	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
113	42	45	19660.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:10:28.969769	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
114	43	245	-16436.97479	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:12:02.996916	2017-12-06 10:30:11.172365	AP_amount	389
115	43	33	-3123.02521	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:12:02.996916	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
116	43	45	19560.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:12:02.996916	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
117	44	245	-16689.07563	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:12:55.60813	2017-12-06 10:30:11.172365	AP_amount	389
118	44	33	-3170.92437	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:12:55.60813	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
119	44	45	19860.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:12:55.60813	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
120	45	199	-6000000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:13:30.796015	2017-12-06 10:30:11.172365		0
121	45	45	3711792.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:13:30.796015	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
122	45	1195	1103208.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:13:30.796015	2017-12-06 10:30:11.172365		0
123	45	1196	1185000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:13:30.796015	2017-12-06 10:30:11.172365		0
124	46	245	-16857.14286	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:13:54.080095	2017-12-06 10:30:11.172365	AP_amount	389
125	46	33	-3202.85714	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:13:54.080095	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
126	46	45	20060.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:13:54.080095	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
127	47	199	-6000000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:13:55.34856	2017-12-06 10:30:11.172365		0
128	47	45	3711792.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:13:55.34856	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
129	47	1195	1103208.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:13:55.34856	2017-12-06 10:30:11.172365		0
130	47	1196	1185000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:13:55.34856	2017-12-06 10:30:11.172365		0
131	48	303	-781.51261	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:14:34.736875	2017-12-06 10:30:11.172365	AP_amount	389
132	48	33	-148.48739	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:14:34.736875	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
133	48	45	930.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:14:34.736875	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
134	49	238	-48.04202	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:14:55.695843	2017-12-06 10:30:11.172365	AP_amount	389
135	49	33	-9.12798	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:14:55.695843	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
136	49	45	57.17000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:14:55.695843	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
137	50	244	-5882.35294	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:15:06.672014	2017-12-06 10:30:11.172365	AP_amount	389
138	50	33	-1117.64706	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:15:06.672014	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
139	50	45	7000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:15:06.672014	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
140	51	199	-6000000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:15:18.22019	2017-12-06 10:30:11.172365		0
141	51	45	3711792.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:15:18.22019	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
142	51	1195	1103208.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:15:18.22019	2017-12-06 10:30:11.172365		0
143	51	1196	1185000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:15:18.22019	2017-12-06 10:30:11.172365		0
144	52	199	-6000000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:15:40.726513	2017-12-06 10:30:11.172365		0
145	52	45	3711792.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:15:40.726513	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
146	52	1195	1103208.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:15:40.726513	2017-12-06 10:30:11.172365		0
147	52	1196	1185000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:15:40.726513	2017-12-06 10:30:11.172365		0
148	53	245	-16773.10924	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:15:43.953206	2017-12-06 10:30:11.172365	AP_amount	389
149	53	33	-3186.89076	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:15:43.953206	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
150	53	45	19960.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:15:43.953206	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
151	54	199	-6000000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:15:58.219481	2017-12-06 10:30:11.172365		0
152	54	45	3711792.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:15:58.219481	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
153	54	1195	1103208.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:15:58.219481	2017-12-06 10:30:11.172365		0
154	54	1196	1185000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:15:58.219481	2017-12-06 10:30:11.172365		0
155	55	199	-6000000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:16:28.400973	2017-12-06 10:30:11.172365		0
156	55	45	3711792.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:16:28.400973	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
157	55	1195	1103208.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:16:28.400973	2017-12-06 10:30:11.172365		0
158	55	1196	1185000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:16:28.400973	2017-12-06 10:30:11.172365		0
159	56	199	-6000000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:16:51.326535	2017-12-06 10:30:11.172365		0
160	56	45	3711792.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:16:51.326535	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
161	56	1195	1103208.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:16:51.326535	2017-12-06 10:30:11.172365		0
162	56	1196	1185000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:16:51.326535	2017-12-06 10:30:11.172365		0
163	57	246	-645.37815	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:16:53.838506	2017-12-06 10:30:11.172365	AP_amount	389
164	57	33	-122.62185	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:16:53.838506	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
165	57	45	768.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:16:53.838506	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
166	58	199	-6000000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:17:12.83903	2017-12-06 10:30:11.172365		0
167	58	45	3711792.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:17:12.83903	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
168	58	1195	1103208.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:17:12.83903	2017-12-06 10:30:11.172365		0
169	58	1196	1185000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:17:12.83903	2017-12-06 10:30:11.172365		0
170	59	246	-645.37815	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:17:18.968113	2017-12-06 10:30:11.172365	AP_amount	389
171	59	33	-122.62185	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:17:18.968113	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
172	59	45	768.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:17:18.968113	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
173	60	246	-645.37815	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:17:41.512612	2017-12-06 10:30:11.172365	AP_amount	389
174	60	33	-122.62185	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:17:41.512612	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
175	60	45	768.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:17:41.512612	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
176	61	211	-1254000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:17:50.203132	2017-12-06 10:30:11.172365		0
177	61	1196	1254000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:17:50.203132	2017-12-06 10:30:11.172365		0
178	62	246	-645.37815	2018-04-03	2018-04-03		f	f	f	f	\N		9	2012-08-30 14:18:11.107015	2017-12-06 10:30:11.172365	AP_amount	389
179	62	33	-122.62185	2018-04-03	2018-04-03		f	f	f	f	\N		9	2012-08-30 14:18:11.107015	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
180	62	45	768.00000	2018-04-03	2018-04-03		f	f	f	f	\N		0	2012-08-30 14:18:11.107015	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
181	63	211	-1254000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:18:11.475386	2017-12-06 10:30:11.172365		0
182	63	1196	1254000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:18:11.475386	2017-12-06 10:30:11.172365		0
183	64	211	-1254000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:18:35.235861	2017-12-06 10:30:11.172365		0
184	64	1196	1254000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:18:35.235861	2017-12-06 10:30:11.172365		0
672	208	17	-416500000.00000	2018-11-23	2018-11-23	\N	f	f	f	f	\N	\N	0	2012-09-21 15:31:12.755264	2017-12-06 10:30:11.172365	AR	0
185	65	246	-645.37815	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:18:42.077607	2017-12-06 10:30:11.172365	AP_amount	389
186	65	33	-122.62185	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:18:42.077607	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
187	65	45	768.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:18:42.077607	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
188	66	211	-1254000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:18:53.182157	2017-12-06 10:30:11.172365		0
189	66	1196	1254000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:18:53.182157	2017-12-06 10:30:11.172365		0
190	67	246	-645.37815	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:19:10.765487	2017-12-06 10:30:11.172365	AP_amount	389
191	67	33	-122.62185	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:19:10.765487	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
192	67	45	768.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:19:10.765487	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
193	68	246	-645.37815	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:19:37.9525	2017-12-06 10:30:11.172365	AP_amount	389
194	68	33	-122.62185	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:19:37.9525	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
195	68	45	768.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:19:37.9525	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
196	69	246	-645.37815	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:19:59.928917	2017-12-06 10:30:11.172365	AP_amount	389
197	69	33	-122.62185	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:19:59.928917	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
198	69	45	768.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:19:59.928917	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
199	70	211	-1254000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:20:39.046737	2017-12-06 10:30:11.172365		0
200	70	1196	1254000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:20:39.046737	2017-12-06 10:30:11.172365		0
201	71	211	-1254000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:20:58.928577	2017-12-06 10:30:11.172365		0
202	71	1196	1254000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:20:58.928577	2017-12-06 10:30:11.172365		0
203	72	211	-1254000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:21:24.091362	2017-12-06 10:30:11.172365		0
204	72	1196	1254000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:21:24.091362	2017-12-06 10:30:11.172365		0
205	73	270	-34243.69748	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:21:33.318243	2017-12-06 10:30:11.172365	AP_amount	389
206	73	33	-6506.30252	2018-01-02	2018-01-02		f	f	f	f	\N		9	2012-08-30 14:21:33.318243	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
207	73	45	40750.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:21:33.318243	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
208	74	211	-1254000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:21:40.580583	2017-12-06 10:30:11.172365		0
209	74	1196	1254000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:21:40.580583	2017-12-06 10:30:11.172365		0
210	75	270	-34243.69748	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:22:26.592586	2017-12-06 10:30:11.172365	AP_amount	389
211	75	33	-6506.30252	2018-02-02	2018-02-02		f	f	f	f	\N		9	2012-08-30 14:22:26.592586	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
212	75	45	40750.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:22:26.592586	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
213	76	1196	-810000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:22:38.80826	2017-12-06 10:30:11.172365		0
214	76	45	810000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:22:38.80826	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
215	77	270	-34243.69748	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:22:51.90226	2017-12-06 10:30:11.172365	AP_amount	389
216	77	33	-6506.30252	2018-03-02	2018-03-02		f	f	f	f	\N		9	2012-08-30 14:22:51.90226	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
217	77	45	40750.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:22:51.90226	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
218	78	1196	-810000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:23:10.990421	2017-12-06 10:30:11.172365		0
219	78	45	810000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:23:10.990421	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
220	79	270	-34243.69748	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:23:14.920897	2017-12-06 10:30:11.172365	AP_amount	389
221	79	33	-6506.30252	2018-04-02	2018-04-02		f	f	f	f	\N		9	2012-08-30 14:23:14.920897	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
222	79	45	40750.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:23:14.920897	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
223	80	1196	-810000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:23:36.489436	2017-12-06 10:30:11.172365		0
224	80	45	810000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:23:36.489436	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
225	81	270	-34243.69748	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:23:39.360874	2017-12-06 10:30:11.172365	AP_amount	389
226	81	33	-6506.30252	2018-05-02	2018-05-02		f	f	f	f	\N		9	2012-08-30 14:23:39.360874	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
227	81	45	40750.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:23:39.360874	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
228	82	1196	-810000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:24:03.271422	2017-12-06 10:30:11.172365		0
229	82	45	810000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:24:03.271422	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
230	83	270	-34243.69748	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:24:08.522961	2017-12-06 10:30:11.172365	AP_amount	389
231	83	33	-6506.30252	2018-06-04	2018-06-04		f	f	f	f	\N		9	2012-08-30 14:24:08.522961	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
232	83	45	40750.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:24:08.522961	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
233	84	1196	-810000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:24:21.167344	2017-12-06 10:30:11.172365		0
234	84	45	810000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:24:21.167344	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
235	85	270	-34243.69748	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:24:32.565411	2017-12-06 10:30:11.172365	AP_amount	389
236	85	33	-6506.30252	2018-07-02	2018-07-02		f	f	f	f	\N		9	2012-08-30 14:24:32.565411	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
237	85	45	40750.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:24:32.565411	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
238	86	1196	-810000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:24:38.818809	2017-12-06 10:30:11.172365		0
239	86	45	810000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:24:38.818809	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
240	87	1196	-810000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:24:56.488009	2017-12-06 10:30:11.172365		0
241	87	45	810000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:24:56.488009	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
242	88	270	-34243.69748	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:24:56.6316	2017-12-06 10:30:11.172365	AP_amount	389
243	88	33	-6506.30252	2018-08-02	2018-08-02		f	f	f	f	\N		9	2012-08-30 14:24:56.6316	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
244	88	45	40750.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:24:56.6316	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
245	89	1196	-810000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:25:19.309855	2017-12-06 10:30:11.172365		0
246	89	45	810000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:25:19.309855	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
247	90	1195	-1103208.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:26:28.74811	2017-12-06 10:30:11.172365		0
248	90	1196	-1629000.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:26:28.74811	2017-12-06 10:30:11.172365		0
249	90	45	2732208.00000	2018-01-02	2018-01-02		f	f	f	f	\N		0	2012-08-30 14:26:28.74811	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
250	91	1195	-1103208.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:26:51.298831	2017-12-06 10:30:11.172365		0
251	91	1196	-1629000.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:26:51.298831	2017-12-06 10:30:11.172365		0
252	91	45	2732208.00000	2018-02-02	2018-02-02		f	f	f	f	\N		0	2012-08-30 14:26:51.298831	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
253	92	1195	-1103208.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:27:15.375472	2017-12-06 10:30:11.172365		0
254	92	1196	-1629000.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:27:15.375472	2017-12-06 10:30:11.172365		0
255	92	45	2732208.00000	2018-03-02	2018-03-02		f	f	f	f	\N		0	2012-08-30 14:27:15.375472	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
257	93	1196	-1629000.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:27:40.506306	2017-12-06 10:30:11.172365		0
258	93	45	2732208.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:27:40.506306	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
295	105	56	389.00000	2018-01-05	2018-01-05	\N	f	f	f	f	\N	\N	0	2012-08-30 15:26:07.829581	2017-12-06 10:30:11.172365	AP	0
259	94	1195	-1103208.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:28:01.807576	2017-12-06 10:30:11.172365		0
260	94	1196	-1629000.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:28:01.807576	2017-12-06 10:30:11.172365		0
261	94	45	2732208.00000	2018-05-02	2018-05-02		f	f	f	f	\N		0	2012-08-30 14:28:01.807576	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
262	95	1195	-1103208.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:28:30.459147	2017-12-06 10:30:11.172365		0
263	95	1196	-1629000.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:28:30.459147	2017-12-06 10:30:11.172365		0
264	95	45	2732208.00000	2018-06-04	2018-06-04		f	f	f	f	\N		0	2012-08-30 14:28:30.459147	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
265	96	1195	-1103208.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:28:55.727384	2017-12-06 10:30:11.172365		0
266	96	1196	-1629000.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:28:55.727384	2017-12-06 10:30:11.172365		0
267	96	45	2732208.00000	2018-07-02	2018-07-02		f	f	f	f	\N		0	2012-08-30 14:28:55.727384	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
268	97	1195	-1103208.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:29:14.554387	2017-12-06 10:30:11.172365		0
269	97	1196	-1629000.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:29:14.554387	2017-12-06 10:30:11.172365		0
270	97	45	2732208.00000	2018-08-02	2018-08-02		f	f	f	f	\N		0	2012-08-30 14:29:14.554387	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
291	103	275	-5000000.00000	2018-07-20	2018-07-20		f	f	f	f	\N		0	2012-08-30 15:19:46.615715	2017-12-06 10:30:11.172365	AP_amount	0
292	103	45	5000000.00000	2018-07-20	2018-07-20		f	f	f	f	\N		0	2012-08-30 15:19:46.615715	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
293	105	305	-326.89000	2018-01-05	2018-01-05	\N	f	f	f	f	\N	\N	9	2012-08-30 15:26:07.829581	2017-12-06 10:30:11.172365	AP_amount	389
294	105	33	-62.11000	2018-01-05	2018-01-05	\N	f	f	f	f	\N	\N	9	2012-08-30 15:26:07.829581	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
296	105	56	-389.00000	2018-01-20	2018-01-20	\N	f	f	f	f	\N	\N	0	2012-08-30 15:26:07.829581	2017-12-06 10:30:11.172365	AP	0
297	105	45	389.00000	2018-01-20	2018-01-20		f	f	f	f	\N		0	2012-08-30 15:26:07.829581	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
298	106	305	-326.89000	2018-04-05	2018-04-05	\N	f	f	f	f	\N	\N	9	2012-08-30 15:27:17.515737	2017-12-06 10:30:11.172365	AP_amount	389
299	106	33	-62.11000	2018-04-05	2018-04-05	\N	f	f	f	f	\N	\N	9	2012-08-30 15:27:17.515737	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
300	106	56	389.00000	2018-04-05	2018-04-05	\N	f	f	f	f	\N	\N	0	2012-08-30 15:27:17.515737	2017-12-06 10:30:11.172365	AP	0
301	106	56	-389.00000	2018-04-20	2018-04-20	\N	f	f	f	f	\N	\N	0	2012-08-30 15:27:17.515737	2017-12-06 10:30:11.172365	AP	0
302	106	45	389.00000	2018-04-20	2018-04-20		f	f	f	f	\N		0	2012-08-30 15:27:17.515737	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
308	108	305	-326.89000	2018-08-03	2018-08-03	\N	f	f	f	f	\N	\N	9	2012-08-30 15:32:52.50715	2017-12-06 10:30:11.172365	AP_amount	389
309	108	33	-62.11000	2018-08-03	2018-08-03	\N	f	f	f	f	\N	\N	9	2012-08-30 15:32:52.50715	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
310	108	56	389.00000	2018-08-03	2018-08-03	\N	f	f	f	f	\N	\N	0	2012-08-30 15:32:52.50715	2017-12-06 10:30:11.172365	AP	0
311	108	56	-389.00000	2018-08-21	2018-08-21	\N	f	f	f	f	\N	\N	0	2012-08-30 15:32:52.50715	2017-12-06 10:30:11.172365	AP	0
312	108	45	389.00000	2018-08-21	2018-08-21		f	f	f	f	\N		0	2012-08-30 15:32:52.50715	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
313	109	305	-2352.94118	2018-01-03	2018-01-03		f	f	f	f	\N		9	2012-08-30 15:34:57.348977	2017-12-06 10:30:11.172365	AP_amount	389
314	109	33	-447.05882	2018-01-03	2018-01-03		f	f	f	f	\N		9	2012-08-30 15:34:57.348977	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
315	109	44	2800.00000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-08-30 15:34:57.348977	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
316	110	14	-6806.72000	2018-03-02	2018-03-02	\N	f	f	f	f	\N	\N	9	2012-09-03 11:39:52.615662	2017-12-06 10:30:11.172365	AP_amount	389
317	110	33	-1293.28000	2018-03-02	2018-03-02	\N	f	f	f	f	\N	\N	9	2012-09-03 11:39:52.615662	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
318	110	56	8100.00000	2018-03-02	2018-03-02	\N	f	f	f	f	\N	\N	0	2012-09-03 11:39:52.615662	2017-12-06 10:30:11.172365	AP	0
319	110	56	-8100.00000	2018-04-13	2018-04-13	\N	f	f	f	f	\N	\N	0	2012-09-03 11:41:21.47004	2017-12-06 10:30:11.172365	AP	0
320	110	45	8100.00000	2018-04-13	2018-04-13		f	f	f	f	\N		0	2012-09-03 11:41:21.47004	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
321	111	280	-113.05000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-09-03 13:52:32.403679	2017-12-06 10:30:11.172365	AP_amount	0
322	111	282	-48.45000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-09-03 13:52:32.403679	2017-12-06 10:30:11.172365	AP_amount	0
323	111	33	-28.50000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-09-03 13:52:32.403679	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
324	111	44	190.00000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-09-03 13:52:32.403679	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
325	112	280	-133.56000	2018-03-16	2018-03-16		f	f	f	f	\N		0	2012-09-03 14:08:11.269131	2017-12-06 10:30:11.172365	AP_amount	0
326	112	282	-57.24000	2018-03-16	2018-03-16		f	f	f	f	\N		0	2012-09-03 14:08:11.269131	2017-12-06 10:30:11.172365	AP_amount	0
327	112	213	-120.00000	2018-03-16	2018-03-16		f	f	f	f	\N		0	2012-09-03 14:08:11.269131	2017-12-06 10:30:11.172365		0
328	112	238	-7.20000	2018-03-16	2018-03-16		f	f	f	f	\N		0	2012-09-03 14:08:11.269131	2017-12-06 10:30:11.172365	AP_amount	0
329	112	33	-57.00000	2018-03-16	2018-03-16		f	f	f	f	\N		0	2012-09-03 14:08:11.269131	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
330	112	44	375.00000	2018-03-16	2018-03-16		f	f	f	f	\N		0	2012-09-03 14:08:11.269131	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
331	113	290	-151.26050	2018-04-09	2018-04-09		f	f	f	f	\N		9	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_amount	389
332	113	33	-28.73950	2018-04-09	2018-04-09		f	f	f	f	\N		9	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
333	113	292	-672.89720	2018-04-09	2018-04-09		f	f	f	f	\N		8	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_amount	377
334	113	28	-47.10280	2018-04-09	2018-04-09		f	f	f	f	\N		8	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	377
335	113	307	-1277.31092	2018-04-09	2018-04-09		f	f	f	f	\N		9	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_amount	389
336	113	33	-242.68908	2018-04-09	2018-04-09		f	f	f	f	\N		9	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
337	113	289	-25.21008	2018-04-09	2018-04-09		f	f	f	f	\N		9	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_amount	389
338	113	33	-4.78992	2018-04-09	2018-04-09		f	f	f	f	\N		9	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
339	113	45	2450.00000	2018-04-09	2018-04-09		f	f	f	f	\N		0	2012-09-03 15:41:51.843265	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
344	114	291	-132.00000	2018-04-16	2018-04-16	\N	f	f	f	f	\N	\N	0	2012-09-03 15:53:54.354204	2017-12-06 10:30:11.172365	AP_amount	0
345	114	290	-18.69000	2018-04-16	2018-04-16	\N	f	f	f	f	\N	\N	8	2012-09-03 15:53:54.354204	2017-12-06 10:30:11.172365	AP_amount	377
346	114	28	-1.30830	2018-04-16	2018-04-16	\N	f	f	f	f	\N	\N	8	2012-09-03 15:53:54.354204	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	377
347	114	56	151.99830	2018-04-16	2018-04-16	\N	f	f	f	f	\N	\N	0	2012-09-03 15:53:54.354204	2017-12-06 10:30:11.172365	AP	0
350	114	56	-152.00000	2018-04-20	2018-04-20	\N	f	f	f	f	\N	\N	0	2012-09-04 10:24:40.551011	2017-12-06 10:30:11.172365	AP	0
351	114	44	152.00000	2018-04-20	2018-04-20		f	f	f	f	\N		0	2012-09-04 10:24:40.551011	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
352	115	199	-6000000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:12:37.937712	2017-12-06 10:30:11.172365		0
353	115	45	3711792.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:12:37.937712	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
354	115	1195	1103208.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:12:37.937712	2017-12-06 10:30:11.172365		0
355	115	1196	1185000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:12:37.937712	2017-12-06 10:30:11.172365		0
356	116	199	-6000000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:13:13.572412	2017-12-06 10:30:11.172365		0
357	116	45	3711792.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:13:13.572412	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
358	116	1195	1103208.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:13:13.572412	2017-12-06 10:30:11.172365		0
359	116	1196	1185000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:13:13.572412	2017-12-06 10:30:11.172365		0
360	117	199	-6000000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:13:38.838168	2017-12-06 10:30:11.172365		0
361	117	45	3711792.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:13:38.838168	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
362	117	1195	1103208.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:13:38.838168	2017-12-06 10:30:11.172365		0
363	117	1196	1185000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:13:38.838168	2017-12-06 10:30:11.172365		0
364	118	199	-6000000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:14:21.318575	2017-12-06 10:30:11.172365		0
365	118	45	3711792.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:14:21.318575	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
366	118	1195	1103208.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:14:21.318575	2017-12-06 10:30:11.172365		0
367	118	1196	1185000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:14:21.318575	2017-12-06 10:30:11.172365		0
368	119	211	-1254000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:15:04.011787	2017-12-06 10:30:11.172365		0
369	119	1196	1254000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:15:04.011787	2017-12-06 10:30:11.172365		0
370	120	211	-1254000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:15:26.007829	2017-12-06 10:30:11.172365		0
371	120	1196	1254000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:15:26.007829	2017-12-06 10:30:11.172365		0
372	121	211	-1254000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:15:52.458026	2017-12-06 10:30:11.172365		0
373	121	1196	1254000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:15:52.458026	2017-12-06 10:30:11.172365		0
374	122	211	-1254000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:16:13.747741	2017-12-06 10:30:11.172365		0
375	122	1196	1254000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:16:13.747741	2017-12-06 10:30:11.172365		0
376	123	1196	-810000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:16:44.937331	2017-12-06 10:30:11.172365		0
377	123	45	810000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:16:44.937331	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
378	124	1196	-810000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:17:09.017573	2017-12-06 10:30:11.172365		0
379	124	45	810000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:17:09.017573	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
380	125	1196	-810000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:17:32.185448	2017-12-06 10:30:11.172365		0
381	125	45	810000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:17:32.185448	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
382	126	1196	-810000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:18:02.849303	2017-12-06 10:30:11.172365		0
383	126	45	810000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:18:02.849303	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
384	127	1195	-1103208.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:18:29.044068	2017-12-06 10:30:11.172365		0
385	127	1196	-1629000.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:18:29.044068	2017-12-06 10:30:11.172365		0
386	127	45	2732208.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:18:29.044068	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
390	129	1195	-1103208.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:19:15.533662	2017-12-06 10:30:11.172365		0
391	129	1196	-1629000.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:19:15.533662	2017-12-06 10:30:11.172365		0
392	129	45	2732208.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:19:15.533662	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
393	130	1195	-1103208.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:19:36.880097	2017-12-06 10:30:11.172365		0
394	130	1196	-1629000.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:19:36.880097	2017-12-06 10:30:11.172365		0
395	130	45	2732208.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:19:36.880097	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
396	131	270	-34243.69748	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:19:58.528336	2017-12-06 10:30:11.172365	AP_amount	389
397	131	33	-6506.30252	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:19:58.528336	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
398	131	45	40750.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:19:58.528336	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
399	132	270	-34243.69748	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:20:23.165061	2017-12-06 10:30:11.172365	AP_amount	389
400	132	33	-6506.30252	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:20:23.165061	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
401	132	45	40750.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:20:23.165061	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
402	133	270	-34243.69748	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:20:47.521783	2017-12-06 10:30:11.172365	AP_amount	389
403	133	33	-6506.30252	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:20:47.521783	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
404	133	45	40750.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:20:47.521783	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
405	134	270	-34243.69748	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:21:07.713027	2017-12-06 10:30:11.172365	AP_amount	389
406	134	33	-6506.30252	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:21:07.713027	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
407	134	45	40750.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:21:07.713027	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
408	135	246	-645.37815	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:21:29.099351	2017-12-06 10:30:11.172365	AP_amount	389
409	135	33	-122.62185	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:21:29.099351	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
410	135	45	768.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:21:29.099351	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
411	136	246	-645.37815	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:21:46.496475	2017-12-06 10:30:11.172365	AP_amount	389
412	136	33	-122.62185	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:21:46.496475	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
413	136	45	768.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:21:46.496475	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
414	137	246	-645.37815	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:22:02.828217	2017-12-06 10:30:11.172365	AP_amount	389
415	137	33	-122.62185	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:22:02.828217	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
416	137	45	768.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:22:02.828217	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
417	138	246	-645.37815	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:22:29.777103	2017-12-06 10:30:11.172365	AP_amount	389
418	138	33	-122.62185	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:22:29.777103	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
419	138	45	768.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:22:29.777103	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
420	139	303	-781.51261	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:22:48.816382	2017-12-06 10:30:11.172365	AP_amount	389
421	139	33	-148.48739	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:22:48.816382	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
422	139	45	930.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:22:48.816382	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
423	140	303	-781.51261	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:23:12.940129	2017-12-06 10:30:11.172365	AP_amount	389
424	140	33	-148.48739	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:23:12.940129	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
425	140	45	930.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:23:12.940129	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
426	141	303	-781.51261	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:23:28.769878	2017-12-06 10:30:11.172365	AP_amount	389
427	141	33	-148.48739	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:23:28.769878	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
428	141	45	930.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:23:28.769878	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
429	142	303	-781.51261	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:23:47.157906	2017-12-06 10:30:11.172365	AP_amount	389
430	142	33	-148.48739	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:23:47.157906	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
431	142	45	930.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:23:47.157906	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
432	143	238	-48.04202	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:24:10.009285	2017-12-06 10:30:11.172365	AP_amount	389
433	143	33	-9.12798	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:24:10.009285	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
434	143	45	57.17000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:24:10.009285	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
435	144	238	-48.04202	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:24:33.718978	2017-12-06 10:30:11.172365	AP_amount	389
436	144	33	-9.12798	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:24:33.718978	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
437	144	45	57.17000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:24:33.718978	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
438	145	238	-48.04202	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:24:55.528835	2017-12-06 10:30:11.172365	AP_amount	389
439	145	33	-9.12798	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:24:55.528835	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
440	145	45	57.17000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:24:55.528835	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
441	146	238	-48.04202	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:25:13.04833	2017-12-06 10:30:11.172365	AP_amount	389
442	146	33	-9.12798	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:25:13.04833	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
443	146	45	57.17000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:25:13.04833	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
444	147	244	-5380.67227	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:25:55.905909	2017-12-06 10:30:11.172365	AP_amount	389
445	147	33	-1022.32773	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:25:55.905909	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
446	147	45	6403.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:25:55.905909	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
447	148	244	-5294.95798	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:27:16.467774	2017-12-06 10:30:11.172365	AP_amount	389
448	148	33	-1006.04202	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:27:16.467774	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
449	148	45	6301.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:27:16.467774	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
450	149	244	-5630.25210	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:27:50.010807	2017-12-06 10:30:11.172365	AP_amount	389
451	149	33	-1069.74790	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:27:50.010807	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
452	149	45	6700.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:27:50.010807	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
453	150	244	-5756.30252	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:28:33.222593	2017-12-06 10:30:11.172365	AP_amount	389
454	150	33	-1093.69748	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:28:33.222593	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
455	150	45	6850.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:28:33.222593	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
456	151	245	-16689.07563	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:29:07.396039	2017-12-06 10:30:11.172365	AP_amount	389
457	151	33	-3170.92437	2018-09-03	2018-09-03		f	f	f	f	\N		9	2012-09-04 11:29:07.396039	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
458	151	45	19860.00000	2018-09-03	2018-09-03		f	f	f	f	\N		0	2012-09-04 11:29:07.396039	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
459	152	245	-16607.56303	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:29:34.190884	2017-12-06 10:30:11.172365	AP_amount	389
460	152	33	-3155.43697	2018-10-02	2018-10-02		f	f	f	f	\N		9	2012-09-04 11:29:34.190884	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
461	152	45	19763.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:29:34.190884	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
462	153	245	-16487.39496	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:30:02.925771	2017-12-06 10:30:11.172365	AP_amount	389
463	153	33	-3132.60504	2018-11-02	2018-11-02		f	f	f	f	\N		9	2012-09-04 11:30:02.925771	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
464	153	45	19620.00000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-04 11:30:02.925771	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
465	154	245	-16739.49580	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:30:25.840343	2017-12-06 10:30:11.172365	AP_amount	389
466	154	33	-3180.50420	2018-12-03	2018-12-03		f	f	f	f	\N		9	2012-09-04 11:30:25.840343	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
467	154	45	19920.00000	2018-12-03	2018-12-03		f	f	f	f	\N		0	2012-09-04 11:30:25.840343	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
468	155	1195	-1103208.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:42:50.790799	2017-12-06 10:30:11.172365		0
469	155	1196	-1629000.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:42:50.790799	2017-12-06 10:30:11.172365		0
470	155	45	2732208.00000	2018-10-02	2018-10-02		f	f	f	f	\N		0	2012-09-04 11:42:50.790799	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
471	156	305	-326.89000	2018-11-02	2018-11-02	\N	f	f	f	f	\N	\N	9	2012-09-04 11:46:08.253302	2017-12-06 10:30:11.172365	AP_amount	389
472	156	33	-62.11000	2018-11-02	2018-11-02	\N	f	f	f	f	\N	\N	9	2012-09-04 11:46:08.253302	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
473	156	56	389.00000	2018-11-02	2018-11-02	\N	f	f	f	f	\N	\N	0	2012-09-04 11:46:08.253302	2017-12-06 10:30:11.172365	AP	0
474	156	56	-389.00000	2018-11-13	2018-11-13	\N	f	f	f	f	\N	\N	0	2012-09-04 11:46:08.253302	2017-12-06 10:30:11.172365	AP	0
475	156	45	389.00000	2018-11-13	2018-11-13		f	f	f	f	\N		0	2012-09-04 11:46:08.253302	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
476	157	305	-4369.74790	2018-10-12	2018-10-12		f	f	f	f	\N		9	2012-09-04 12:00:21.679317	2017-12-06 10:30:11.172365	AP_amount	389
477	157	33	-830.25210	2018-10-12	2018-10-12		f	f	f	f	\N		9	2012-09-04 12:00:21.679317	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
478	157	44	5200.00000	2018-10-12	2018-10-12		f	f	f	f	\N		0	2012-09-04 12:00:21.679317	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
479	158	28	-1962.62000	2018-01-02	2018-01-02	\N	f	f	f	f	1020	\N	0	2012-09-12 11:31:38.368947	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
480	158	56	30000.00000	2018-01-02	2018-01-02	\N	f	f	f	f	1020	\N	0	2012-09-12 11:31:38.368947	2017-12-06 10:30:11.172365	AP	0
481	158	167	-28037.38000	2018-01-02	2018-01-02	\N	f	f	f	f	1020	\N	8	2012-09-12 11:31:38.368947	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	377
482	158	56	-30000.00000	2018-01-06	2018-01-06	\N	f	f	f	f	1020	\N	0	2012-09-12 11:31:38.368947	2017-12-06 10:30:11.172365	AP	0
483	158	45	30000.00000	2018-01-06	2018-01-06		f	f	f	f	1020		0	2012-09-12 11:31:38.368947	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
484	159	168	-1890756.30000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	9	2012-09-12 11:46:35.764079	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
485	159	33	-359243.70000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	0	2012-09-12 11:46:35.764079	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
486	159	56	2250000.00000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	0	2012-09-12 11:46:35.764079	2017-12-06 10:30:11.172365	AP	0
487	159	56	-2250000.00000	2018-01-16	2018-01-16	\N	f	f	f	f	1020	\N	0	2012-09-12 11:46:35.764079	2017-12-06 10:30:11.172365	AP	0
488	159	45	2250000.00000	2018-01-16	2018-01-16		f	f	f	f	1020		0	2012-09-12 11:46:35.764079	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
489	160	168	-1176470.59000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	9	2012-09-12 11:51:00.529905	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
490	160	33	-223529.41000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	0	2012-09-12 11:51:00.529905	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
491	160	56	1400000.00000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	0	2012-09-12 11:51:00.529905	2017-12-06 10:30:11.172365	AP	0
492	160	56	-1400000.00000	2018-01-18	2018-01-18	\N	f	f	f	f	1020	\N	0	2012-09-12 11:51:00.529905	2017-12-06 10:30:11.172365	AP	0
493	160	45	1400000.00000	2018-01-18	2018-01-18		f	f	f	f	1020		0	2012-09-12 11:51:00.529905	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
494	161	168	-823529.41000	2018-05-01	2018-05-01	\N	f	f	f	f	1020	\N	9	2012-09-12 11:55:21.123487	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
495	161	33	-156470.59000	2018-05-01	2018-05-01	\N	f	f	f	f	1020	\N	0	2012-09-12 11:55:21.123487	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
496	161	56	980000.00000	2018-05-01	2018-05-01	\N	f	f	f	f	1020	\N	0	2012-09-12 11:55:21.123487	2017-12-06 10:30:11.172365	AP	0
497	161	56	-980000.00000	2018-05-04	2018-05-04	\N	f	f	f	f	1020	\N	0	2012-09-12 11:55:21.123487	2017-12-06 10:30:11.172365	AP	0
498	161	45	980000.00000	2018-05-04	2018-05-04		f	f	f	f	1020		0	2012-09-12 11:55:21.123487	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
499	162	168	-2250084.03000	2018-05-01	2018-05-01	\N	f	f	f	f	1020	\N	9	2012-09-12 12:00:50.338662	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
500	162	33	-427515.97000	2018-05-01	2018-05-01	\N	f	f	f	f	1020	\N	0	2012-09-12 12:00:50.338662	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
502	162	56	-2677600.00000	2018-05-09	2018-05-09	\N	f	f	f	f	1020	\N	0	2012-09-12 12:00:50.338662	2017-12-06 10:30:11.172365	AP	0
503	162	45	2677600.00000	2018-05-09	2018-05-09		f	f	f	f	1020		0	2012-09-12 12:00:50.338662	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
504	163	168	-16806722.69000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	9	2012-09-12 12:11:50.790617	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
505	163	33	-3193277.31000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	0	2012-09-12 12:11:50.790617	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
506	163	56	20000000.00000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	0	2012-09-12 12:11:50.790617	2017-12-06 10:30:11.172365	AP	0
507	163	56	-20000000.00000	2018-05-18	2018-05-18	\N	f	f	f	f	1020	\N	0	2012-09-12 12:11:50.790617	2017-12-06 10:30:11.172365	AP	0
508	163	45	20000000.00000	2018-05-18	2018-05-18		f	f	f	f	1020		0	2012-09-12 12:11:50.790617	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
509	164	168	-1579831.93000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	9	2012-09-12 12:16:58.361196	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
510	164	33	-300168.07000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	0	2012-09-12 12:16:58.361196	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
511	164	56	1880000.00000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	0	2012-09-12 12:16:58.361196	2017-12-06 10:30:11.172365	AP	0
512	164	56	-1880000.00000	2018-05-22	2018-05-22	\N	f	f	f	f	1020	\N	0	2012-09-12 12:16:58.361196	2017-12-06 10:30:11.172365	AP	0
513	164	45	1880000.00000	2018-05-22	2018-05-22		f	f	f	f	1020		0	2012-09-12 12:16:58.361196	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
514	165	168	-13445378.15000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	9	2012-09-12 12:17:13.904978	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
515	165	33	-2554621.85000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	0	2012-09-12 12:17:13.904978	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
516	165	56	16000000.00000	2018-05-14	2018-05-14	\N	f	f	f	f	1020	\N	0	2012-09-12 12:17:13.904978	2017-12-06 10:30:11.172365	AP	0
517	165	56	-16000000.00000	2018-05-18	2018-05-18	\N	f	f	f	f	1020	\N	0	2012-09-12 12:17:13.904978	2017-12-06 10:30:11.172365	AP	0
518	165	45	16000000.00000	2018-05-18	2018-05-18		f	f	f	f	1020		0	2012-09-12 12:17:13.904978	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
519	166	168	-4237008.40000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	9	2012-09-12 12:34:31.518335	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
520	166	33	-805031.60000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	0	2012-09-12 12:34:31.518335	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
521	166	56	5042040.00000	2018-01-13	2018-01-13	\N	f	f	f	f	1020	\N	0	2012-09-12 12:34:31.518335	2017-12-06 10:30:11.172365	AP	0
522	166	56	-5042040.00000	2018-01-18	2018-01-18	\N	f	f	f	f	1020	\N	0	2012-09-12 12:34:31.518335	2017-12-06 10:30:11.172365	AP	0
523	166	45	5042040.00000	2018-01-18	2018-01-18		f	f	f	f	1020		0	2012-09-12 12:34:31.518335	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
524	167	168	-193277.31000	2018-06-11	2018-06-11	\N	f	f	f	f	1020	\N	9	2012-09-12 12:40:21.584179	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
525	167	33	-36722.69000	2018-06-11	2018-06-11	\N	f	f	f	f	1020	\N	0	2012-09-12 12:40:21.584179	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
526	167	56	230000.00000	2018-06-11	2018-06-11	\N	f	f	f	f	1020	\N	0	2012-09-12 12:40:21.584179	2017-12-06 10:30:11.172365	AP	0
527	167	56	-230000.00000	2018-06-15	2018-06-15	\N	f	f	f	f	1020	\N	0	2012-09-12 12:40:21.584179	2017-12-06 10:30:11.172365	AP	0
528	167	45	230000.00000	2018-06-15	2018-06-15		f	f	f	f	1020		0	2012-09-12 12:40:21.584179	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
529	168	56	70000.00000	2018-07-09	2018-07-09	\N	f	f	f	f	1020	\N	0	2012-09-12 12:51:04.811484	2017-12-06 10:30:11.172365	AP	0
531	168	56	-70000.00000	2018-07-12	2018-07-12	\N	f	f	f	f	1020	\N	0	2012-09-12 12:51:04.811484	2017-12-06 10:30:11.172365	AP	0
532	168	45	70000.00000	2018-07-12	2018-07-12		f	f	f	f	1020		0	2012-09-12 12:51:04.811484	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
533	169	168	-294117.65000	2018-08-08	2018-08-08	\N	f	f	f	f	1020	\N	9	2012-09-12 14:03:23.525778	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
534	169	33	-55882.35000	2018-08-08	2018-08-08	\N	f	f	f	f	1020	\N	0	2012-09-12 14:03:23.525778	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
535	169	56	350000.00000	2018-08-08	2018-08-08	\N	f	f	f	f	1020	\N	0	2012-09-12 14:03:23.525778	2017-12-06 10:30:11.172365	AP	0
536	169	56	-350000.00000	2018-08-15	2018-08-15	\N	f	f	f	f	1020	\N	0	2012-09-12 14:03:23.525778	2017-12-06 10:30:11.172365	AP	0
537	169	45	350000.00000	2018-08-15	2018-08-15		f	f	f	f	1020		0	2012-09-12 14:03:23.525778	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
538	170	168	-840336.13000	2018-08-13	2018-08-13	\N	f	f	f	f	1020	\N	9	2012-09-12 14:07:26.811402	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
539	170	33	-159663.87000	2018-08-13	2018-08-13	\N	f	f	f	f	1020	\N	0	2012-09-12 14:07:26.811402	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
540	170	56	1000000.00000	2018-08-13	2018-08-13	\N	f	f	f	f	1020	\N	0	2012-09-12 14:07:26.811402	2017-12-06 10:30:11.172365	AP	0
541	170	56	-1000000.00000	2018-08-17	2018-08-17	\N	f	f	f	f	1020	\N	0	2012-09-12 14:07:26.811402	2017-12-06 10:30:11.172365	AP	0
542	170	45	1000000.00000	2018-08-17	2018-08-17		f	f	f	f	1020		0	2012-09-12 14:07:26.811402	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
543	171	168	-804201.68000	2018-08-13	2018-08-13	\N	f	f	f	f	1020	\N	9	2012-09-12 14:08:20.092458	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
544	171	33	-152798.32000	2018-08-13	2018-08-13	\N	f	f	f	f	1020	\N	0	2012-09-12 14:08:20.092458	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
545	171	56	957000.00000	2018-08-13	2018-08-13	\N	f	f	f	f	1020	\N	0	2012-09-12 14:08:20.092458	2017-12-06 10:30:11.172365	AP	0
546	171	56	-957000.00000	2018-08-20	2018-08-20	\N	f	f	f	f	1020	\N	0	2012-09-12 14:08:20.092458	2017-12-06 10:30:11.172365	AP	0
547	171	45	957000.00000	2018-08-20	2018-08-20		f	f	f	f	1020		0	2012-09-12 14:08:20.092458	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
550	172	56	4650000.00000	2018-09-10	2018-09-10	\N	f	f	f	f	1020	\N	0	2012-09-12 14:14:06.926166	2017-12-06 10:30:11.172365	AP	0
551	172	56	-4650000.00000	2018-09-14	2018-09-14	\N	f	f	f	f	1020	\N	0	2012-09-12 14:14:06.926166	2017-12-06 10:30:11.172365	AP	0
552	172	45	4650000.00000	2018-09-14	2018-09-14		f	f	f	f	1020		0	2012-09-12 14:14:06.926166	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
553	173	168	-952722.69000	2018-09-10	2018-09-10	\N	f	f	f	f	1020	\N	9	2012-09-12 14:16:01.336668	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
554	173	33	-181017.31000	2018-09-10	2018-09-10	\N	f	f	f	f	1020	\N	0	2012-09-12 14:16:01.336668	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
555	173	56	1133740.00000	2018-09-10	2018-09-10	\N	f	f	f	f	1020	\N	0	2012-09-12 14:16:01.336668	2017-12-06 10:30:11.172365	AP	0
556	173	56	-1133740.00000	2018-09-18	2018-09-18	\N	f	f	f	f	1020	\N	0	2012-09-12 14:16:01.336668	2017-12-06 10:30:11.172365	AP	0
557	173	45	1133740.00000	2018-09-18	2018-09-18		f	f	f	f	1020		0	2012-09-12 14:16:01.336668	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
563	175	168	-4453781.51000	2018-11-05	2018-11-05	\N	f	f	f	f	1020	\N	9	2012-09-12 14:26:50.138796	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
564	175	33	-846218.49000	2018-11-05	2018-11-05	\N	f	f	f	f	1020	\N	0	2012-09-12 14:26:50.138796	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
565	175	56	5300000.00000	2018-11-05	2018-11-05	\N	f	f	f	f	1020	\N	0	2012-09-12 14:26:50.138796	2017-12-06 10:30:11.172365	AP	0
566	175	56	-5300000.00000	2018-11-09	2018-11-09	\N	f	f	f	f	1020	\N	0	2012-09-12 14:26:50.138796	2017-12-06 10:30:11.172365	AP	0
567	175	45	5300000.00000	2018-11-09	2018-11-09		f	f	f	f	1020		0	2012-09-12 14:26:50.138796	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
568	176	168	-1764705.88000	2018-11-23	2018-11-23	\N	f	f	f	f	1020	\N	9	2012-09-12 14:30:44.163604	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
569	176	33	-335294.12000	2018-11-23	2018-11-23	\N	f	f	f	f	1020	\N	0	2012-09-12 14:30:44.163604	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
570	176	56	2100000.00000	2018-11-23	2018-11-23	\N	f	f	f	f	1020	\N	0	2012-09-12 14:30:44.163604	2017-12-06 10:30:11.172365	AP	0
571	176	56	-2100000.00000	2018-12-07	2018-12-07	\N	f	f	f	f	1020	\N	0	2012-09-12 14:30:44.163604	2017-12-06 10:30:11.172365	AP	0
530	168	170	-70000.00000	2018-07-09	2018-07-09	\N	f	f	f	f	1020	\N	0	2012-09-12 12:51:04.811484	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	0
572	176	45	2100000.00000	2018-12-07	2018-12-07		f	f	f	f	1020		0	2012-09-12 14:30:44.163604	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
573	177	168	-54621.85000	2018-11-26	2018-11-26	\N	f	f	f	f	1020	\N	9	2012-09-12 14:34:33.16189	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
574	177	33	-10378.15000	2018-11-26	2018-11-26	\N	f	f	f	f	1020	\N	0	2012-09-12 14:34:33.16189	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
575	177	56	65000.00000	2018-11-26	2018-11-26	\N	f	f	f	f	1020	\N	0	2012-09-12 14:34:33.16189	2017-12-06 10:30:11.172365	AP	0
576	177	56	-65000.00000	2018-11-30	2018-11-30	\N	f	f	f	f	1020	\N	0	2012-09-12 14:34:33.16189	2017-12-06 10:30:11.172365	AP	0
577	177	45	65000.00000	2018-11-30	2018-11-30		f	f	f	f	1020		0	2012-09-12 14:34:33.16189	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
578	178	168	-1411764.71000	2018-11-29	2018-11-29	\N	f	f	f	f	1020	\N	9	2012-09-12 14:38:20.675653	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
579	178	33	-268235.29000	2018-11-29	2018-11-29	\N	f	f	f	f	1020	\N	0	2012-09-12 14:38:20.675653	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
580	178	56	1680000.00000	2018-11-29	2018-11-29	\N	f	f	f	f	1020	\N	0	2012-09-12 14:38:20.675653	2017-12-06 10:30:11.172365	AP	0
581	178	56	-1680000.00000	2018-12-04	2018-12-04	\N	f	f	f	f	1020	\N	0	2012-09-12 14:38:20.675653	2017-12-06 10:30:11.172365	AP	0
582	178	45	1680000.00000	2018-12-04	2018-12-04		f	f	f	f	1020		0	2012-09-12 14:38:20.675653	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
583	179	168	-168067.23000	2018-11-14	2018-11-14	\N	f	f	f	f	1020	\N	9	2012-09-12 14:41:19.85977	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
584	179	33	-31932.77000	2018-11-14	2018-11-14	\N	f	f	f	f	1020	\N	0	2012-09-12 14:41:19.85977	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
585	179	56	200000.00000	2018-11-14	2018-11-14	\N	f	f	f	f	1020	\N	0	2012-09-12 14:41:19.85977	2017-12-06 10:30:11.172365	AP	0
586	179	56	-200000.00000	2018-11-22	2018-11-22	\N	f	f	f	f	1020	\N	0	2012-09-12 14:41:19.85977	2017-12-06 10:30:11.172365	AP	0
588	180	28	-1654.88000	2018-11-30	2018-11-30	\N	f	f	f	f	1020	\N	0	2012-09-12 14:44:44.722246	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
589	180	56	25296.00000	2018-11-30	2018-11-30	\N	f	f	f	f	1020	\N	0	2012-09-12 14:44:44.722246	2017-12-06 10:30:11.172365	AP	0
590	180	167	-23641.12000	2018-11-30	2018-11-30	\N	f	f	f	f	1020	\N	8	2012-09-12 14:44:44.722246	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	377
591	180	56	-25296.00000	2018-12-04	2018-12-04	\N	f	f	f	f	1020	\N	0	2012-09-12 14:44:44.722246	2017-12-06 10:30:11.172365	AP	0
592	180	45	25296.00000	2018-12-04	2018-12-04		f	f	f	f	1020		0	2012-09-12 14:44:44.722246	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
593	181	56	1800000.00000	2018-06-11	2018-06-11	\N	f	f	f	f	1020	\N	0	2012-09-12 14:56:01.117455	2017-12-06 10:30:11.172365	AP	0
595	181	56	-1800000.00000	2018-06-20	2018-06-20	\N	f	f	f	f	1020	\N	0	2012-09-12 14:56:01.117455	2017-12-06 10:30:11.172365	AP	0
596	181	45	1800000.00000	2018-06-20	2018-06-20		f	f	f	f	1020		0	2012-09-12 14:56:01.117455	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
4	2	45	-130000000.00000	2018-01-03	2018-01-03		f	f	f	f	\N		0	2012-08-30 11:07:21.63752	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
594	181	170	-1800000.00000	2018-06-11	2018-06-11	\N	f	f	f	f	1020	\N	0	2012-09-12 14:56:01.117455	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	0
9	4	368	30000.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:39:53.166922	2017-12-06 10:30:11.172365		0
16	7	368	10527271.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:50:35.740764	2017-12-06 10:30:11.172365		0
18	8	368	89117833.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:52:44.225147	2017-12-06 10:30:11.172365		0
625	195	45	66.20000	2018-06-01	2018-06-01		f	f	f	f	\N		0	2012-09-17 13:57:57.706063	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
626	196	316	-58.89000	2018-07-06	2018-07-06		f	f	f	f	\N		0	2012-09-17 13:58:19.052965	2017-12-06 10:30:11.172365		0
627	196	45	58.89000	2018-07-06	2018-07-06		f	f	f	f	\N		0	2012-09-17 13:58:19.052965	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
628	197	316	-73.98000	2018-08-03	2018-08-03		f	f	f	f	\N		0	2012-09-17 13:58:54.160665	2017-12-06 10:30:11.172365		0
629	197	45	73.98000	2018-08-03	2018-08-03		f	f	f	f	\N		0	2012-09-17 13:58:54.160665	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
630	198	316	-62.52000	2018-09-07	2018-09-07		f	f	f	f	\N		0	2012-09-17 13:59:30.899808	2017-12-06 10:30:11.172365		0
631	198	45	62.52000	2018-09-07	2018-09-07		f	f	f	f	\N		0	2012-09-17 13:59:30.899808	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
632	199	316	-59.63000	2018-10-05	2018-10-05		f	f	f	f	\N		0	2012-09-17 14:00:08.471779	2017-12-06 10:30:11.172365		0
633	199	45	59.63000	2018-10-05	2018-10-05		f	f	f	f	\N		0	2012-09-17 14:00:08.471779	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
634	200	316	-49.74000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-17 14:00:39.482533	2017-12-06 10:30:11.172365		0
635	200	45	49.74000	2018-11-02	2018-11-02		f	f	f	f	\N		0	2012-09-17 14:00:39.482533	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
636	201	316	-98.35000	2018-12-07	2018-12-07		f	f	f	f	\N		0	2012-09-17 14:01:09.693627	2017-12-06 10:30:11.172365		0
637	201	45	98.35000	2018-12-07	2018-12-07		f	f	f	f	\N		0	2012-09-17 14:01:09.693627	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
658	206	57	522730.00000	2018-06-01	2018-06-01	\N	f	f	f	f	1020	\N	0	2012-09-21 14:43:12.462592	2017-12-06 10:30:11.172365	AP	0
659	206	173	-522730.00000	2018-06-01	2018-06-01	\N	f	f	f	f	1020	\N	0	2012-09-21 14:43:12.462592	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	0
660	206	57	-522730.00000	2018-06-08	2018-06-08	\N	f	f	f	f	1020	\N	0	2012-09-21 14:43:12.462592	2017-12-06 10:30:11.172365	AP	0
661	206	45	650000.00000	2018-06-08	2018-06-08		f	f	f	f	1020		0	2012-09-21 14:43:12.462592	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
662	206	45	-130650.00000	2018-06-08	2018-06-08	\N	f	t	f	f	1020	\N	0	2012-09-21 14:43:12.462592	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
663	206	142	3380.00000	2018-06-08	2018-06-08	\N	f	t	f	f	1020	\N	0	2012-09-21 14:43:12.462592	2017-12-06 10:30:11.172365		0
21	10	368	-75000000.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:24:23.521796	2017-12-06 10:30:11.172365		0
702	218	336	-8450000.00000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:45:37.123643	2017-12-06 10:30:11.172365		0
703	218	53	8450000.00000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:45:37.123643	2017-12-06 10:30:11.172365		0
704	219	336	-377032.50000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:47:20.17199	2017-12-06 10:30:11.172365		0
705	219	54	377032.50000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:47:20.17199	2017-12-06 10:30:11.172365		0
706	220	54	-6177532.50000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:48:26.110156	2017-12-06 10:30:11.172365		0
707	220	45	6177532.50000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:48:26.110156	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
708	221	53	-138450000.00000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:49:36.816497	2017-12-06 10:30:11.172365		0
709	221	45	138450000.00000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-09-21 15:49:36.816497	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
13	6	1217	-73552642.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:49:30.509822	2017-12-06 10:30:11.172365	AP_amount	0
14	6	368	73552642.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:49:30.509822	2017-12-06 10:30:11.172365		0
719	225	61	8.40000	2018-12-08	2018-12-08	\N	f	f	f	f	\N	\N	0	2012-10-08 15:34:13.374781	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
720	225	17	-128.40000	2018-12-08	2018-12-08	\N	f	f	f	f	\N	\N	0	2012-10-08 15:34:13.374781	2017-12-06 10:30:11.172365	AR	0
721	225	84	120.00000	2018-12-08	2018-12-08	\N	f	f	f	f	\N	\N	2	2012-10-08 15:34:13.374781	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	374
722	226	61	-8.40000	2018-12-08	2018-12-08	\N	f	f	f	f	\N	\N	0	2012-10-08 15:34:30.042286	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
723	226	17	128.40000	2018-12-08	2018-12-08	\N	f	f	f	f	\N	\N	0	2012-10-08 15:34:30.042286	2017-12-06 10:30:11.172365	AR	0
724	226	84	-120.00000	2018-12-08	2018-12-08	\N	f	f	f	f	\N	\N	2	2012-10-08 15:34:30.042286	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	374
670	208	90	350000000.00000	2018-11-23	2018-11-23	\N	f	f	f	f	\N	\N	3	2012-09-21 15:31:12.755264	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
671	208	66	66500000.00000	2018-11-23	2018-11-23	\N	f	f	f	f	\N	\N	0	2012-09-21 15:31:12.755264	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
675	209	90	20000.00000	2018-01-02	2018-01-02	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:32.645385	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
676	209	66	3800.00000	2018-01-02	2018-01-02	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:32.645385	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
677	209	17	-23800.00000	2018-01-02	2018-01-02	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:32.645385	2017-12-06 10:30:11.172365	AR	0
678	210	90	20000.00000	2018-02-01	2018-02-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.068754	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
679	210	66	3800.00000	2018-02-01	2018-02-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.068754	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
680	210	17	-23800.00000	2018-02-01	2018-02-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.068754	2017-12-06 10:30:11.172365	AR	0
681	211	90	20000.00000	2018-03-01	2018-03-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.265917	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
682	211	66	3800.00000	2018-03-01	2018-03-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.265917	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
683	211	17	-23800.00000	2018-03-01	2018-03-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.265917	2017-12-06 10:30:11.172365	AR	0
684	212	90	20000.00000	2018-04-01	2018-04-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.365752	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
685	212	66	3800.00000	2018-04-01	2018-04-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.365752	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
686	212	17	-23800.00000	2018-04-01	2018-04-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.365752	2017-12-06 10:30:11.172365	AR	0
687	213	90	20000.00000	2018-05-01	2018-05-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.491077	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
688	213	66	3800.00000	2018-05-01	2018-05-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.491077	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
689	213	17	-23800.00000	2018-05-01	2018-05-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.491077	2017-12-06 10:30:11.172365	AR	0
690	214	90	20000.00000	2018-06-01	2018-06-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.596295	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
691	214	66	3800.00000	2018-06-01	2018-06-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.596295	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
692	214	17	-23800.00000	2018-06-01	2018-06-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.596295	2017-12-06 10:30:11.172365	AR	0
693	215	90	20000.00000	2018-07-01	2018-07-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.715663	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
694	215	66	3800.00000	2018-07-01	2018-07-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.715663	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
695	215	17	-23800.00000	2018-07-01	2018-07-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.715663	2017-12-06 10:30:11.172365	AR	0
696	216	90	20000.00000	2018-08-01	2018-08-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:33.819959	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
697	216	66	3800.00000	2018-08-01	2018-08-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.819959	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
698	216	17	-23800.00000	2018-08-01	2018-08-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:33.819959	2017-12-06 10:30:11.172365	AR	0
699	217	90	20000.00000	2018-09-01	2018-09-01	\N	f	f	f	f	\N	\N	3	2012-09-21 15:36:34.018694	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
700	217	66	3800.00000	2018-09-01	2018-09-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:34.018694	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
701	217	17	-23800.00000	2018-09-01	2018-09-01	\N	f	f	f	f	\N	\N	0	2012-09-21 15:36:34.018694	2017-12-06 10:30:11.172365	AR	0
710	222	90	20000.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	3	2012-09-21 16:20:17.548256	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
711	222	66	3800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-09-21 16:20:17.548256	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
712	222	17	-23800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-09-21 16:20:17.548256	2017-12-06 10:30:11.172365	AR	0
745	228	90	20000.00000	2018-10-01	2018-10-01	\N	f	f	f	f	\N	\N	3	2012-10-09 08:49:39.436806	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
746	228	66	3800.00000	2018-10-01	2018-10-01	\N	f	f	f	f	\N	\N	0	2012-10-09 08:49:39.436806	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
747	228	17	-23800.00000	2018-10-01	2018-10-01	\N	f	f	f	f	\N	\N	0	2012-10-09 08:49:39.436806	2017-12-06 10:30:11.172365	AR	0
748	229	90	20000.00000	2018-11-01	2018-11-01	\N	f	f	f	f	\N	\N	3	2012-12-12 12:48:18.476016	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
749	229	66	3800.00000	2018-11-01	2018-11-01	\N	f	f	f	f	\N	\N	0	2012-12-12 12:48:18.476016	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
750	229	17	-23800.00000	2018-11-01	2018-11-01	\N	f	f	f	f	\N	\N	0	2012-12-12 12:48:18.476016	2017-12-06 10:30:11.172365	AR	0
751	230	90	20000.00000	2018-12-01	2018-12-01	\N	f	f	f	f	\N	\N	3	2012-12-12 12:48:18.77791	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
752	230	66	3800.00000	2018-12-01	2018-12-01	\N	f	f	f	f	\N	\N	0	2012-12-12 12:48:18.77791	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
753	230	17	-23800.00000	2018-12-01	2018-12-01	\N	f	f	f	f	\N	\N	0	2012-12-12 12:48:18.77791	2017-12-06 10:30:11.172365	AR	0
754	231	90	-20000.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	3	2012-10-09 08:58:55.226341	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
755	231	66	-3800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-10-09 08:58:55.226341	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
756	231	17	23800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-10-09 08:58:55.226341	2017-12-06 10:30:11.172365	AR	0
766	232	10	-1000.00000	2018-02-06	2018-02-06	\N	f	f	f	f	\N	\N	9	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP_amount	389
767	232	33	-190.00000	2018-02-06	2018-02-06	\N	f	f	f	f	\N	\N	9	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	389
768	232	56	1190.00000	2018-02-06	2018-02-06	\N	f	f	f	f	\N	\N	0	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP	0
769	232	56	-1166.20000	2018-02-10	2018-02-10	\N	f	f	f	f	\N	\N	0	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP	0
770	232	45	1166.20000	2018-02-10	2018-02-10		f	f	f	f	\N		0	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
771	232	56	-20.00000	2018-02-10	2018-02-10	\N	f	f	f	f	\N	\N	0	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP	0
772	232	183	20.00000	2018-02-10	2018-02-10		f	f	f	f	\N		9	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP_paid	389
773	232	56	-3.80000	2018-02-10	2018-02-10	\N	f	f	f	f	\N	\N	0	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP	0
774	232	36	3.80000	2018-02-10	2018-02-10		f	f	f	f	\N		0	2012-10-09 10:36:16.300764	2017-12-06 10:30:11.172365	AP_paid:IC_taxpart:IC_taxservice	0
775	233	36	-3.80000	2018-02-28	2018-02-28		f	f	f	f	\N		0	2012-10-09 12:33:16.675643	2017-12-06 10:30:11.172365	AP_paid:IC_taxpart:IC_taxservice	0
776	233	33	3.80000	2018-02-28	2018-02-28		f	f	f	f	\N		0	2012-10-09 12:33:16.675643	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
597	182	31	-13300.00000	2018-07-12	2018-07-12		f	f	f	f	\N		0	2012-09-12 16:56:01.548386	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
598	182	64	13300.00000	2018-07-12	2018-07-12		f	f	f	f	\N		0	2012-09-12 16:56:01.548386	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
777	208	17	403663821.00000	2018-11-23	2018-11-23	\N	f	f	f	f	\N	\N	0	2012-10-09 15:31:42.138763	2017-12-06 10:30:11.172365	AR	0
778	208	45	-403663821.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-09 15:31:42.138763	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
779	208	17	12836179.00000	2018-11-23	2018-11-23	\N	f	f	f	f	\N	\N	0	2012-10-09 15:31:42.138763	2017-12-06 10:30:11.172365	AR	0
781	234	1855	12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-09 15:35:42.440863	2017-12-06 10:30:11.172365	AR_paid	0
782	234	1234	-12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-09 15:35:42.440863	2017-12-06 10:30:11.172365		0
788	237	45	-1397604.12000	2018-02-13	2018-02-13		f	f	f	f	\N		0	2012-10-09 16:53:05.064453	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
789	237	68	1397604.12000	2018-02-13	2018-02-13		f	f	f	f	\N		0	2012-10-09 16:53:05.064453	2017-12-06 10:30:11.172365		0
790	238	45	-7429.38000	2018-03-12	2018-03-12		f	f	f	f	\N		0	2012-10-09 16:55:22.095412	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
791	238	68	7429.38000	2018-03-12	2018-03-12		f	f	f	f	\N		0	2012-10-09 16:55:22.095412	2017-12-06 10:30:11.172365		0
792	239	45	-8609.42000	2018-04-16	2018-04-16		f	f	f	f	\N		0	2012-10-09 16:56:19.153922	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
793	239	68	8609.42000	2018-04-16	2018-04-16		f	f	f	f	\N		0	2012-10-09 16:56:19.153922	2017-12-06 10:30:11.172365		0
794	240	45	-7629.92000	2018-05-14	2018-05-14		f	f	f	f	\N		0	2012-10-09 16:57:23.354414	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
795	240	68	7629.92000	2018-05-14	2018-05-14		f	f	f	f	\N		0	2012-10-09 16:57:23.354414	2017-12-06 10:30:11.172365		0
796	241	45	-6639249.07000	2018-06-18	2018-06-18		f	f	f	f	\N		0	2012-10-09 16:58:47.50797	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
797	241	68	6639249.07000	2018-06-18	2018-06-18		f	f	f	f	\N		0	2012-10-09 16:58:47.50797	2017-12-06 10:30:11.172365		0
713	223	57	142800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-10-08 15:29:43.023031	2017-12-06 10:30:11.172365	AP	0
714	223	168	-120000.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	9	2012-10-08 15:29:43.023031	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
715	223	33	-22800.00000	2018-09-21	2018-09-21	\N	f	f	f	f	\N	\N	0	2012-10-08 15:29:43.023031	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
20	9	368	2024660.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 12:54:32.928509	2017-12-06 10:30:11.172365		0
23	11	368	-129315022.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:25:40.212878	2017-12-06 10:30:11.172365		0
25	12	368	-5800500.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:27:10.303141	2017-12-06 10:30:11.172365		0
27	13	368	-2300705.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:28:11.552002	2017-12-06 10:30:11.172365		0
29	14	368	-12836179.00000	2018-01-01	2018-01-01		f	f	t	f	\N		0	2012-08-30 13:29:02.562595	2017-12-06 10:30:11.172365		0
599	183	1230	-2300705.00000	2018-01-18	2018-01-18		f	f	f	f	\N		0	2012-09-14 11:39:33.140067	2017-12-06 10:30:11.172365		0
735	214	17	23800.00000	2018-06-01	2018-06-01	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:40:13.313536	2017-12-06 10:30:11.172365	AR	0
736	214	45	-23800.00000	2018-06-01	2018-06-01		f	f	f	f	\N		\N	2012-10-08 15:40:13.313536	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
256	93	1195	-1103208.00000	2018-04-02	2018-04-02		f	f	f	f	\N		0	2012-08-30 14:27:40.506306	2017-12-06 10:30:11.172365		0
814	249	17	-21420.00000	2018-11-15	2018-11-15	\N	f	f	f	f	\N	\N	0	2012-11-15 14:31:30.163919	2017-12-06 10:30:11.172365	AR	0
798	242	45	-153183.94000	2018-07-16	2018-07-16		f	f	f	f	\N		0	2012-10-09 16:59:54.002626	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
799	242	68	153183.94000	2018-07-16	2018-07-16		f	f	f	f	\N		0	2012-10-09 16:59:54.002626	2017-12-06 10:30:11.172365		0
800	243	45	-6987.71000	2018-08-13	2018-08-13		f	f	f	f	\N		0	2012-10-09 17:01:15.212281	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
734	213	45	-23800.00000	2018-05-04	2018-05-04		f	f	f	f	\N		\N	2012-10-08 15:39:43.761473	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
757	228	17	23800.00000	2018-10-05	2018-10-05	\N	f	f	f	f	\N	\N	\N	2012-10-09 09:52:10.414821	2017-12-06 10:30:11.172365	AR	0
758	228	45	-23800.00000	2018-10-05	2018-10-05		f	f	f	f	\N		\N	2012-10-09 09:52:10.414821	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
759	229	17	23800.00000	2018-11-02	2018-11-02	\N	f	f	f	f	\N	\N	\N	2012-10-09 09:52:37.754799	2017-12-06 10:30:11.172365	AR	0
760	229	45	-23800.00000	2018-11-02	2018-11-02		f	f	f	f	\N		\N	2012-10-09 09:52:37.754799	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
761	230	17	23800.00000	2018-12-07	2018-12-07	\N	f	f	f	f	\N	\N	\N	2012-10-09 09:53:01.875368	2017-12-06 10:30:11.172365	AR	0
762	230	45	-23800.00000	2018-12-07	2018-12-07		f	f	f	f	\N		\N	2012-10-09 09:53:01.875368	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
780	208	1855	-12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		\N	2012-10-09 15:31:42.138763	2017-12-06 10:30:11.172365	AR_paid	0
818	251	90	163.79000	2018-11-15	2023-11-15	\N	f	f	f	f	1020	\N	5	2017-11-15 07:47:57.357788	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	376
819	251	65	26.21000	2018-11-15	2023-11-15	\N	f	f	f	f	1020	\N	5	2017-11-15 07:47:57.357788	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	376
820	251	17	-190.00000	2018-11-15	2023-11-15	\N	f	f	f	f	\N	\N	0	2017-11-15 07:47:57.357788	2017-12-06 10:30:11.172365	AR	0
823	252	168	-75.00000	2018-11-15	2023-11-15	\N	f	f	f	f	\N	\N	9	2017-11-15 10:26:00.183822	2017-12-06 10:30:11.172365	AP_amount:IC_cogs	389
824	252	33	-14.25000	2018-11-15	2023-11-15	\N	f	f	f	f	\N	\N	0	2017-11-15 10:26:00.183822	2017-12-06 10:30:11.172365	AP_tax:IC_taxpart:IC_taxservice	0
825	252	57	89.25000	2018-11-15	2023-11-15	\N	f	f	f	f	\N	\N	0	2017-11-15 10:26:00.183822	2017-12-06 10:30:11.172365	AP	0
501	162	56	2677600.00000	2018-05-01	2018-05-01	\N	f	f	f	f	1020	\N	0	2012-09-12 12:00:50.338662	2017-12-06 10:30:11.172365	AP	0
801	243	68	6987.71000	2018-08-13	2018-08-13		f	f	f	f	\N		0	2012-10-09 17:01:15.212281	2017-12-06 10:30:11.172365		0
802	244	45	-375426.30000	2018-09-17	2018-09-17		f	f	f	f	\N		0	2012-10-09 17:02:19.987038	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
803	244	68	375426.30000	2018-09-17	2018-09-17		f	f	f	f	\N		0	2012-10-09 17:02:19.987038	2017-12-06 10:30:11.172365		0
804	245	45	-930634.08000	2018-10-15	2018-10-15		f	f	f	f	\N		0	2012-10-09 17:03:28.013251	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
805	245	68	930634.08000	2018-10-15	2018-10-15		f	f	f	f	\N		0	2012-10-09 17:03:28.013251	2017-12-06 10:30:11.172365		0
806	246	45	-7978.27000	2018-11-19	2018-11-19		f	f	f	f	\N		0	2012-10-09 17:11:10.372906	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
807	246	68	7978.27000	2018-11-19	2018-11-19		f	f	f	f	\N		0	2012-10-09 17:11:10.372906	2017-12-06 10:30:11.172365		0
808	247	68	-64999035.29000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-10-09 17:13:16.376938	2017-12-06 10:30:11.172365		0
809	247	45	64999035.29000	2018-12-17	2018-12-17		f	f	f	f	\N		0	2012-10-09 17:13:16.376938	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
810	248	1234	12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-09 21:06:02.040213	2017-12-06 10:30:11.172365		0
811	248	45	-12836179.00000	2018-11-23	2018-11-23		f	f	f	f	\N		0	2012-10-09 21:06:02.040213	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
812	249	90	18000.00000	2018-11-15	2018-11-15	\N	f	f	f	f	\N	\N	3	2012-11-15 14:31:30.163919	2017-12-06 10:30:11.172365	AR_amount:IC_sale:IC_income	388
813	249	66	3420.00000	2018-11-15	2018-11-15	\N	f	f	f	f	\N	\N	0	2012-11-15 14:31:30.163919	2017-12-06 10:30:11.172365	AR_tax:IC_taxpart:IC_taxservice	0
737	215	17	23800.00000	2018-07-06	2018-07-06	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:40:41.145792	2017-12-06 10:30:11.172365	AR	0
738	215	45	-23800.00000	2018-07-06	2018-07-06		f	f	f	f	\N		\N	2012-10-08 15:40:41.145792	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
739	216	17	23800.00000	2018-08-03	2018-08-03	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:41:08.87364	2017-12-06 10:30:11.172365	AR	0
740	216	45	-23800.00000	2018-08-03	2018-08-03		f	f	f	f	\N		\N	2012-10-08 15:41:08.87364	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
741	217	17	23800.00000	2018-09-07	2018-09-07	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:41:36.984951	2017-12-06 10:30:11.172365	AR	0
742	217	45	-23800.00000	2018-09-07	2018-09-07		f	f	f	f	\N		\N	2012-10-08 15:41:36.984951	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
725	209	17	23800.00000	2018-01-05	2018-01-05	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:36:40.883908	2017-12-06 10:30:11.172365	AR	0
726	209	45	-23800.00000	2018-01-05	2018-01-05		f	f	f	f	\N		\N	2012-10-08 15:36:40.883908	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
727	210	17	23800.00000	2018-02-07	2018-02-07	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:37:08.466191	2017-12-06 10:30:11.172365	AR	0
728	210	45	-23800.00000	2018-02-07	2018-02-07		f	f	f	f	\N		\N	2012-10-08 15:37:08.466191	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
729	211	17	23800.00000	2018-03-02	2018-03-02	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:38:38.869707	2017-12-06 10:30:11.172365	AR	0
730	211	45	-23800.00000	2018-03-02	2018-03-02		f	f	f	f	\N		\N	2012-10-08 15:38:38.869707	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
731	212	17	23800.00000	2018-04-06	2018-04-06	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:39:05.516751	2017-12-06 10:30:11.172365	AR	0
732	212	45	-23800.00000	2018-04-06	2018-04-06		f	f	f	f	\N		\N	2012-10-08 15:39:05.516751	2017-12-06 10:30:11.172365	AR_paid:AP_paid	0
733	213	17	23800.00000	2018-05-04	2018-05-04	\N	f	f	f	f	\N	\N	\N	2012-10-08 15:39:43.761473	2017-12-06 10:30:11.172365	AR	0
\.


--
-- Data for Name: ap; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ap (id, invnumber, transdate, gldate, vendor_id, taxincluded, amount, netamount, paid, datepaid, duedate, invoice, ordnumber, notes, employee_id, quonumber, intnotes, department_id, itime, mtime, shipvia, cp_id, language_id, payment_id, storno, taxzone_id, type, orddate, quodate, globalproject_id, storno_id, transaction_description, direct_debit, deliverydate, delivery_term_id, currency_id) FROM stdin;
206	APSXT400012	2018-06-01	2018-06-01	1397	f	522730.00000	522730.00000	522730.00000	2012-06-08	2012-07-02	t	201211		1213	\N		\N	2012-09-21 14:43:12.462592	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	3	\N	2012-05-18	\N	1020	\N	\N	f	\N	\N	2
181	RB485373	2018-06-11	2018-06-11	1401	f	1800000.00000	1800000.00000	1800000.00000	2012-06-20	2012-06-25	t	201205		1213	\N		\N	2012-09-12 14:56:01.117455	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	1	\N	2012-04-11	\N	1020	\N	\N	f	\N	\N	1
168	nsoy2314	2018-07-09	2018-07-09	1401	f	70000.00000	70000.00000	70000.00000	2012-07-12	2012-07-23	t	201211		938	\N		\N	2012-09-12 12:51:04.811484	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	1	\N	2012-07-02	\N	1020	\N	\N	f	\N	\N	1
158	201201	2018-01-02	2018-01-02	1190	t	30000.00000	28037.38000	30000.00000	2012-01-06	2012-01-16	t	201201		938	\N		\N	2012-09-12 11:31:38.368947	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2011-12-19	\N	1020	\N	\N	f	\N	\N	1
161	i784363	2018-05-01	2018-05-01	1139	t	980000.00000	823529.41000	980000.00000	2012-05-04	2012-05-15	t	201204		938	\N		\N	2012-09-12 11:55:21.123487	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-04-23	\N	1020	\N	\N	f	\N	\N	1
165	siemann213	2018-05-14	2018-05-14	1022	t	16000000.00000	13445378.15000	16000000.00000	2012-05-18	2012-05-28	t	201208		938	\N		\N	2012-09-12 12:17:13.904978	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-05-07	\N	1020	\N	\N	f	\N	\N	1
160	R201243	2018-01-13	2018-01-13	1076	t	1400000.00000	1176470.59000	1400000.00000	2012-01-18	2012-01-26	t	201204		1213	\N		\N	2012-09-12 11:51:00.529905	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-01-04	\N	1020	\N	\N	f	\N	\N	1
166	KS547843	2018-01-13	2018-01-13	1028	t	5042040.00000	4237008.40000	5042040.00000	2012-01-18	2012-01-26	t	201202		1213	\N		\N	2012-09-12 12:34:31.518335	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-01-04	\N	1020	\N	\N	f	\N	\N	1
159	kr20120113	2018-01-13	2018-01-13	1024	t	2250000.00000	1890756.30000	2250000.00000	2012-01-16	2012-01-27	t	201203		938	\N		\N	2012-09-12 11:46:35.764079	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-01-04	\N	1020	\N	\N	f	\N	\N	1
162	KBL42348	2018-05-01	2018-05-01	1030	t	2677600.00000	2250084.03000	2677600.00000	2012-05-09	2012-05-15	t	201207		1213	\N		\N	2012-09-12 12:00:50.338662	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-04-23	\N	1020	\N	\N	f	\N	\N	1
164	PSR45325	2018-05-14	2018-05-14	1074	t	1880000.00000	1579831.93000	1880000.00000	2012-05-22	2012-05-28	t	201210		1213	\N		\N	2012-09-12 12:16:58.361196	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-05-07	\N	1020	\N	\N	f	\N	\N	1
163	dog13498	2018-05-14	2018-05-14	1032	t	20000000.00000	16806722.69000	20000000.00000	2012-05-18	2012-05-28	t	201207		938	\N		\N	2012-09-12 12:11:50.790617	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-05-07	\N	1020	\N	\N	f	\N	\N	1
224	Storno zu 65780	2018-09-21	2018-09-21	1821	f	-142800.00000	-120000.00000	-142800.00000	\N	2012-09-21	t			1473	\N		\N	2012-10-08 15:30:57.901724	2017-12-06 10:30:35.188056	\N	\N	\N	\N	t	4	\N	\N	\N	\N	223	\N	f	\N	\N	1
167	B123St	2018-06-11	2018-06-11	1078	t	230000.00000	193277.31000	230000.00000	2012-06-15	2012-06-25	t	201212		938	\N		\N	2012-09-12 12:40:21.584179	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-06-01	\N	1020	\N	\N	f	\N	\N	1
169	BC54895	2018-08-08	2018-08-08	1035	t	350000.00000	294117.65000	350000.00000	2012-08-15	2012-08-22	t	201214		1213	\N		\N	2012-09-12 14:03:23.525778	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-08-01	\N	1020	\N	\N	f	\N	\N	1
171	UM438947	2018-08-13	2018-08-13	1082	t	957000.00000	804201.68000	957000.00000	2012-08-20	2012-08-27	t	201215		1213	\N		\N	2012-09-12 14:08:20.092458	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-08-06	\N	1020	\N	\N	f	\N	\N	1
170	Kule14314	2018-08-13	2018-08-13	1050	t	1000000.00000	840336.13000	1000000.00000	2012-08-17	2012-08-27	t	201216		938	\N		\N	2012-09-12 14:07:26.811402	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-08-06	\N	1020	\N	\N	f	\N	\N	1
172	sbi542534	2018-09-10	2018-09-10	1082	t	4650000.00000	3907563.03000	4650000.00000	2012-09-14	2012-09-24	t	201217		938	\N		\N	2012-09-12 14:14:06.926166	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-08-27	\N	1020	\N	\N	f	\N	\N	1
173	PH480956	2018-09-10	2018-09-10	1062	t	1133740.00000	952722.69000	1133740.00000	2012-09-18	2012-09-24	t	201218		1213	\N		\N	2012-09-12 14:16:01.336668	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-09-03	\N	1020	\N	\N	f	\N	\N	1
175	Reiter05543	2018-11-05	2018-11-05	1041	t	5300000.00000	4453781.51000	5300000.00000	2012-11-09	2012-11-19	t	201219		938	\N		\N	2012-09-12 14:26:50.138796	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-09-03	\N	1020	\N	\N	f	\N	\N	1
179	BR54574567	2018-11-14	2018-11-14	1080	t	200000.00000	168067.23000	200000.00000	2012-11-22	2012-11-28	t	201222		1213	\N		\N	2012-09-12 14:41:19.85977	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-09-27	\N	1020	\N	\N	f	\N	\N	1
176	IPG38765	2018-11-23	2018-11-23	1059	t	2100000.00000	1764705.88000	2100000.00000	2012-12-07	2012-12-10	t	201220		1213	\N		\N	2012-09-12 14:30:44.163604	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-09-03	\N	1020	\N	\N	f	\N	\N	1
177	MA05987078	2018-11-26	2018-11-26	1052	t	65000.00000	54621.85000	65000.00000	2012-11-30	2012-12-03	t	201221		1213	\N		\N	2012-09-12 14:34:33.16189	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-09-12	\N	1020	\N	\N	f	\N	\N	1
178	ICL654667	2018-11-29	2018-11-29	1043	t	1680000.00000	1411764.71000	1680000.00000	2012-12-04	2012-12-13	t	201223		1213	\N		\N	2012-09-12 14:38:20.675653	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-09-27	\N	1020	\N	\N	f	\N	\N	1
105	29100	2018-01-05	2018-01-05	1323	t	389.00000	326.89000	389.00000	2012-01-20	2012-02-27	f			1213	\N	\N	\N	2012-08-30 15:26:07.829581	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
106	35743	2018-04-05	2018-04-05	1323	t	389.00000	326.89000	389.00000	2012-04-20	2012-05-30	f			1213	\N	\N	\N	2012-08-30 15:27:17.515737	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
108	41568	2018-08-03	2018-08-03	1323	t	389.00000	326.89000	389.00000	2012-08-21	2012-09-28	f			1213	\N	\N	\N	2012-08-30 15:32:52.50715	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
114	114	2018-04-16	2018-04-16	1349	f	151.99830	150.69000	152.00000	2012-04-20	2012-04-30	f			938	\N	\N	\N	2012-09-03 15:52:54.919564	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
156	63415	2018-11-02	2018-11-02	1323	t	389.00000	326.89000	389.00000	2012-11-13	2012-11-23	f			938	\N	\N	\N	2012-09-04 11:46:08.253302	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
180	fkidsg93	2018-11-30	2018-11-30	1085	t	25296.00000	23641.12000	25296.00000	2012-12-04	2012-12-14	t	201222		938	\N		\N	2012-09-12 14:44:44.722246	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	2012-11-15	\N	1020	\N	\N	f	\N	\N	1
223	65780	2018-09-21	2018-09-21	1821	f	142800.00000	120000.00000	142800.00000	\N	2012-09-21	t			1473	\N	Rechnung storniert am 21.09.2012 	\N	2012-10-08 15:29:43.023031	2017-12-06 10:30:35.188056	\N	\N	\N	\N	t	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
110	d201206400	2018-03-02	2018-03-02	1343	t	8100.00000	6806.72000	8100.00000	2012-04-13	2012-04-30	f		10 Pc für Mitarbeiter	938	\N	\N	\N	2012-09-03 11:39:52.615662	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
232	oat528	2018-02-06	2018-02-06	1323	f	1190.00000	1000.00000	1190.00000	2012-02-10	2012-02-20	f		Konferenztisch 1. OG	938	\N	\N	\N	2012-10-09 10:02:59.773129	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
252	12	2018-11-15	2023-11-15	1323	f	89.25000	75.00000	0.00000	\N	2012-11-15	t			1473	\N		\N	2017-11-15 10:26:00.183822	2017-12-06 10:30:35.188056	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	f	\N	\N	1
\.


--
-- Data for Name: ar; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ar (id, invnumber, transdate, gldate, customer_id, taxincluded, amount, netamount, paid, datepaid, duedate, deliverydate, invoice, shippingpoint, notes, ordnumber, employee_id, quonumber, cusordnumber, intnotes, department_id, shipvia, itime, mtime, cp_id, language_id, payment_id, delivery_customer_id, delivery_vendor_id, storno, taxzone_id, shipto_id, type, dunning_config_id, orddate, quodate, globalproject_id, salesman_id, marge_total, marge_percent, storno_id, transaction_description, donumber, invnumber_for_credit_note, direct_debit, delivery_term_id, currency_id) FROM stdin;
208	13	2018-11-23	2018-11-23	1037	f	416500000.00000	350000000.00000	416500000.00000	2012-11-23	2012-11-30	2012-11-30	t				938				\N		2012-09-21 15:31:12.755264	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	\N	\N	\N	938	350000000.00000	100.00000	\N		ste20121	\N	f	\N	1
225	15	2018-12-08	2018-12-08	1037	f	128.40000	120.00000	128.40000	\N	2012-12-25	\N	t				1473			Rechnung storniert am 08.12.2012 Nachbestellung Palme	\N		2012-10-08 15:34:13.374781	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	t	4	\N	invoice	\N	\N	\N	\N	1473	-114.11000	-95.09167	\N			\N	f	\N	1
226	Storno zu 15	2018-12-08	2018-12-08	1037	f	-128.40000	-120.00000	-128.40000	\N	2012-12-25	\N	t				1473			Nachbestellung Palme	\N		2012-10-08 15:34:30.042286	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	t	4	\N	invoice	\N	\N	\N	\N	1473	114.11000	-95.09167	225			\N	f	\N	1
249	16	2018-11-15	2018-11-15	1754	f	21420.00000	18000.00000	0.00000	\N	2012-11-15	2012-11-15	t			1	1871				\N		2012-11-15 14:31:30.163919	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2012-11-15	\N	\N	1871	18000.00000	100.00000	\N		1	\N	f	\N	1
217	9	2018-09-01	2018-09-01	1754	f	23800.00000	20000.00000	23800.00000	2012-09-07	2012-09-21	2012-09-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:34.018694	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
231	Storno zu 10	2018-09-21	2018-09-21	1754	f	-23800.00000	-20000.00000	-23800.00000	\N	2012-09-21	2012-09-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-10-09 08:58:55.226341	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	t	4	\N	invoice	\N	2011-12-02	\N	\N	938	-20000.00000	100.00000	222		\N	\N	f	\N	1
210	2	2018-02-01	2018-02-01	1754	f	23800.00000	20000.00000	23800.00000	2012-02-07	2012-09-21	2012-02-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.068754	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
211	3	2018-03-01	2018-03-01	1754	f	23800.00000	20000.00000	23800.00000	2012-03-02	2012-09-21	2012-03-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.265917	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
251	18	2018-11-15	2023-11-15	1754	t	190.00000	163.79000	0.00000	\N	2017-11-15	\N	f	\N			1473	\N	\N	\N	\N	\N	2017-11-15 07:47:57.357788	2017-12-06 10:31:41.678604	\N	\N	\N	\N	\N	f	4	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	1
212	4	2018-04-01	2018-04-01	1754	f	23800.00000	20000.00000	23800.00000	2012-04-06	2012-09-21	2012-04-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.365752	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
213	5	2018-05-01	2018-05-01	1754	f	23800.00000	20000.00000	23800.00000	2012-05-04	2012-09-21	2012-05-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.491077	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
214	6	2018-06-01	2018-06-01	1754	f	23800.00000	20000.00000	23800.00000	2012-06-01	2012-09-21	2012-06-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.596295	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
209	1	2018-01-02	2018-01-02	1754	f	23800.00000	20000.00000	23800.00000	2012-01-05	2012-09-21	2012-01-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:32.645385	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
228	11	2018-10-01	2018-10-01	1754	f	23800.00000	20000.00000	23800.00000	2012-10-05	2012-10-09	2012-10-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	201126	938			Automatisch am 09.10.12 erzeugte Rechnung	\N		2012-10-09 08:49:39.436806	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
229	12	2018-11-01	2018-11-01	1754	f	23800.00000	20000.00000	23800.00000	2012-11-02	2012-12-12	2012-11-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	201126	938			Automatisch am 12.12.12 erzeugte Rechnung	\N		2012-12-12 12:48:18.476016	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
230	14	2018-12-01	2018-12-01	1754	f	23800.00000	20000.00000	23800.00000	2012-12-07	2012-12-12	2012-12-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	201126	938			Automatisch am 12.12.12 erzeugte Rechnung	\N		2012-12-12 12:48:18.77791	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
215	7	2018-07-01	2018-07-01	1754	f	23800.00000	20000.00000	23800.00000	2012-07-06	2012-09-21	2012-07-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.715663	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
216	8	2018-08-01	2018-08-01	1754	f	23800.00000	20000.00000	23800.00000	2012-08-03	2012-09-21	2012-08-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 15:36:33.819959	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	f	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
222	10	2018-09-21	2018-09-21	1754	f	23800.00000	20000.00000	23800.00000	\N	2012-09-21	2012-09-02	t		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	022012	938			Rechnung storniert am 21.09.2012 Automatisch am 21.09.12 erzeugte Rechnung	\N		2012-09-21 16:20:17.548256	2017-12-06 10:30:24.667837	\N	\N	\N	\N	\N	t	4	\N	invoice	\N	2011-12-02	\N	\N	938	20000.00000	100.00000	\N		\N	\N	f	\N	1
\.


--
-- Data for Name: assembly; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.assembly (id, parts_id, qty, bom, itime, mtime, assembly_id, "position") FROM stdin;
\.


--
-- Data for Name: assortment_items; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.assortment_items (assortment_id, parts_id, itime, mtime, qty, "position", unit, charge) FROM stdin;
\.


--
-- Data for Name: background_job_histories; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.background_job_histories (id, package_name, run_at, status, result, error, data) FROM stdin;
1	CreatePeriodicInvoices	2012-09-21 15:29:57	success	1	\N	\N
2	CreatePeriodicInvoices	2012-09-21 15:30:26	success	1	\N	\N
3	CreatePeriodicInvoices	2012-09-21 15:36:32	success	1	\N	\N
4	CreatePeriodicInvoices	2012-09-21 16:20:17	success	1	\N	\N
5	CreatePeriodicInvoices	2012-09-21 16:22:39	success	1	\N	\N
6	CreatePeriodicInvoices	2012-09-21 16:31:23	success	1	\N	\N
7	CreatePeriodicInvoices	2012-10-09 08:49:39	success	1	\N	\N
8	CreatePeriodicInvoices	2012-12-12 12:48:18	success	1	\N	\N
\.


--
-- Data for Name: background_jobs; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.background_jobs (id, type, package_name, last_run_at, next_run_at, data, active, cron_spec, node_id) FROM stdin;
1	interval	CleanBackgroundJobHistory	\N	2012-11-01 03:00:00	\N	t	0 3 * * *	\N
3	interval	SelfTest	\N	2012-11-01 03:00:00	\N	t	20 2 * * *	\N
4	interval	BackgroundJobCleanup	\N	2014-11-09 03:00:00	\N	t	0 3 * * *	\N
2	interval	CreatePeriodicInvoices	2012-12-12 12:48:18	2014-11-09 03:00:00	\N	t	0 3 * * *	\N
5	interval	CleanAuthSessions	\N	2015-02-02 06:30:00	\N	t	30 6 * * *	\N
\.


--
-- Data for Name: bank_transaction_acc_trans; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bank_transaction_acc_trans (bank_transaction_id, acc_trans_id, ar_id, ap_id, gl_id, itime, mtime) FROM stdin;
\.


--
-- Data for Name: bank_transactions; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bank_transactions (id, transaction_id, remote_bank_code, remote_account_number, transdate, valutadate, amount, remote_name, purpose, invoice_amount, local_bank_account_id, currency_id, cleared, itime, transaction_code, transaction_text) FROM stdin;
\.


--
-- Data for Name: bin; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bin (id, warehouse_id, description, itime, mtime) FROM stdin;
957	956	Halle1	2012-08-17 12:54:39.431761	\N
959	958	Lagerplatz1	2012-08-17 12:55:17.503286	\N
960	958	Lagerplatz2	2012-08-17 12:55:17.503286	\N
961	958	Lagerplatz3	2012-08-17 12:55:17.503286	\N
962	958	Lagerplatz4	2012-08-17 12:55:17.503286	\N
963	958	Lagerplatz5	2012-08-17 12:55:17.503286	\N
964	958	Lagerplatz6	2012-08-17 12:55:17.503286	\N
965	958	Lagerplatz7	2012-08-17 12:55:17.503286	\N
966	958	Lagerplatz8	2012-08-17 12:55:17.503286	\N
967	958	Lagerplatz9	2012-08-17 12:55:17.503286	\N
968	958	Lagerplatz10	2012-08-17 12:55:17.503286	\N
970	969	Lagerplatz1	2012-08-17 12:55:48.385448	\N
971	969	Lagerplatz2	2012-08-17 12:55:48.385448	\N
972	969	Lagerplatz3	2012-08-17 12:55:48.385448	\N
973	969	Lagerplatz4	2012-08-17 12:55:48.385448	\N
974	969	Lagerplatz5	2012-08-17 12:55:48.385448	\N
975	969	Lagerplatz6	2012-08-17 12:55:48.385448	\N
976	969	Lagerplatz7	2012-08-17 12:55:48.385448	\N
977	969	Lagerplatz8	2012-08-17 12:55:48.385448	\N
978	969	Lagerplatz9	2012-08-17 12:55:48.385448	\N
979	969	Lagerplatz10	2012-08-17 12:55:48.385448	\N
980	969	Lagerplatz11	2012-08-17 12:55:48.385448	\N
981	969	Lagerplatz12	2012-08-17 12:55:48.385448	\N
982	969	Lagerplatz13	2012-08-17 12:55:48.385448	\N
983	969	Lagerplatz14	2012-08-17 12:55:48.385448	\N
984	969	Lagerplatz15	2012-08-17 12:55:48.385448	\N
985	969	Lagerplatz16	2012-08-17 12:55:48.385448	\N
986	969	Lagerplatz17	2012-08-17 12:55:48.385448	\N
987	969	Lagerplatz18	2012-08-17 12:55:48.385448	\N
988	969	Lagerplatz19	2012-08-17 12:55:48.385448	\N
989	969	Lagerplatz20	2012-08-17 12:55:48.385448	\N
990	969	Lagerplatz21	2012-08-17 12:55:48.385448	\N
991	969	Lagerplatz22	2012-08-17 12:55:48.385448	\N
992	969	Lagerplatz23	2012-08-17 12:55:48.385448	\N
993	969	Lagerplatz24	2012-08-17 12:55:48.385448	\N
994	969	Lagerplatz25	2012-08-17 12:55:48.385448	\N
995	969	Lagerplatz26	2012-08-17 12:55:48.385448	\N
996	969	Lagerplatz27	2012-08-17 12:55:48.385448	\N
997	969	Lagerplatz28	2012-08-17 12:55:48.385448	\N
998	969	Lagerplatz29	2012-08-17 12:55:48.385448	\N
999	969	Lagerplatz30	2012-08-17 12:55:48.385448	\N
1000	969	Lagerplatz31	2012-08-17 12:55:48.385448	\N
1001	969	Lagerplatz32	2012-08-17 12:55:48.385448	\N
1002	969	Lagerplatz33	2012-08-17 12:55:48.385448	\N
1003	969	Lagerplatz34	2012-08-17 12:55:48.385448	\N
1004	969	Lagerplatz35	2012-08-17 12:55:48.385448	\N
1005	969	Lagerplatz36	2012-08-17 12:55:48.385448	\N
1006	969	Lagerplatz37	2012-08-17 12:55:48.385448	\N
1007	969	Lagerplatz38	2012-08-17 12:55:48.385448	\N
1008	969	Lagerplatz39	2012-08-17 12:55:48.385448	\N
1009	969	Lagerplatz40	2012-08-17 12:55:48.385448	\N
1010	969	Lagerplatz41	2012-08-17 12:55:48.385448	\N
1011	969	Lagerplatz42	2012-08-17 12:55:48.385448	\N
1012	969	Lagerplatz43	2012-08-17 12:55:48.385448	\N
1013	969	Lagerplatz44	2012-08-17 12:55:48.385448	\N
1014	969	Lagerplatz45	2012-08-17 12:55:48.385448	\N
1015	969	Lagerplatz46	2012-08-17 12:55:48.385448	\N
1016	969	Lagerplatz47	2012-08-17 12:55:48.385448	\N
1017	969	Lagerplatz48	2012-08-17 12:55:48.385448	\N
1018	969	Lagerplatz49	2012-08-17 12:55:48.385448	\N
1019	969	Lagerplatz50	2012-08-17 12:55:48.385448	\N
\.


--
