--
--

\restrict Cqo3frk0rKaGxs7IO1hW8xjfl1Px5iKhK5TpA9aYOMstco3d6Wea7NjD4BXg8ng


SET transaction_timeout = 0;
SELECT pg_catalog.set_config('search_path', '', false);

--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: pg_database_owner
--

COMMENT ON SCHEMA public IS '';




--
-- Name: account_mappings; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.account_mappings (
    id integer NOT NULL,
    mapping_code character varying(50) NOT NULL,
    mapping_name character varying(100) NOT NULL,
    account_id integer NOT NULL,
    description text,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.account_mappings OWNER TO itresources;

--
-- Name: account_mappings_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.account_mappings ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.account_mappings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: account_transactions; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.account_transactions (
    id integer NOT NULL,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    sale_id integer,
    account_type character varying(50) NOT NULL,
    account_id integer,
    cheque_id integer,
    card_type_id integer,
    card_last_four character varying(4),
    card_transaction_ref character varying(100),
    is_reconciled boolean DEFAULT false NOT NULL,
    amount numeric(10,2) NOT NULL,
    tip_amount numeric(10,2) DEFAULT 0.00,
    description character varying(255),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.account_transactions OWNER TO itresources;

--
-- Name: account_transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.account_transactions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.account_transactions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: account_types; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.account_types (
    id integer NOT NULL,
    type_code character varying(10) NOT NULL,
    type_name character varying(50) NOT NULL,
    default_side character varying(255) NOT NULL,
    description text,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.account_types OWNER TO itresources;

--
-- Name: account_types_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.account_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.account_types_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: bank_access; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.bank_access (
    user_id integer NOT NULL,
    bank_account_id integer NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    created_by integer
);


ALTER TABLE public.bank_access OWNER TO itresources;

--
-- Name: bank_accounts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.bank_accounts (
    id integer NOT NULL,
    bank_name character varying(100) NOT NULL,
    account_title character varying(150) NOT NULL,
    chart_of_account_id integer,
    mapped_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    mapped_by integer,
    account_number character varying(50) NOT NULL,
    iban character varying(50),
    branch_name character varying(100),
    branch_code character varying(50),
    swift_code character varying(50),
    address text,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.bank_accounts OWNER TO itresources;

--
-- Name: bank_accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.bank_accounts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.bank_accounts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: bom_components; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.bom_components (
    id integer NOT NULL,
    bom_id integer NOT NULL,
    component_item_id integer NOT NULL,
    quantity numeric(12,6) NOT NULL
);


ALTER TABLE public.bom_components OWNER TO itresources;

--
-- Name: bom_components_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.bom_components ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.bom_components_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: bom_master; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.bom_master (
    id integer NOT NULL,
    item_id integer NOT NULL,
    description text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.bom_master OWNER TO itresources;

--
-- Name: bom_master_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.bom_master ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.bom_master_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: branch_access; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.branch_access (
    user_id integer NOT NULL,
    branch_id integer NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    created_by integer
);


ALTER TABLE public.branch_access OWNER TO itresources;

--
-- Name: branch_info; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.branch_info (
    id integer NOT NULL,
    default_store_id integer,
    branch_name character varying(255),
    branch_code character varying(20),
    branch_address text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    ntn character varying(30),
    strn character varying(30),
    branch_phone character varying(50),
    facebook_url character varying(255),
    instagram_url character varying(255),
    youtube_url character varying(255),
    province character varying(100) DEFAULT 'Punjab'::character varying,
    is_active boolean DEFAULT true,
    branch_type character varying(255) DEFAULT 'branch'::character varying,
    is_default boolean DEFAULT false
);


ALTER TABLE public.branch_info OWNER TO itresources;

--
-- Name: branch_info_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.branch_info ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.branch_info_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: card_types; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.card_types (
    id integer NOT NULL,
    card_code character varying(50) NOT NULL,
    card_name character varying(100) NOT NULL,
    display_name character varying(100),
    icon_class character varying(100) DEFAULT 'fas fa-credit-card'::character varying,
    color_class character varying(100) DEFAULT 'btn-outline-primary'::character varying,
    default_charge_rate numeric(5,2) DEFAULT 0.00,
    sort_order integer DEFAULT 0,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    revenue_account_id integer
);


ALTER TABLE public.card_types OWNER TO itresources;

--
-- Name: COLUMN card_types.revenue_account_id; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.card_types.revenue_account_id IS 'Chart of accounts revenue line for this card type; NULL = use rev_CardSale mapping';


--
-- Name: card_types_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.card_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.card_types_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: categories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.categories (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    icon character varying(255) DEFAULT 'assets/img/categories/category-01.png'::character varying,
    is_active boolean DEFAULT true NOT NULL
);


ALTER TABLE public.categories OWNER TO itresources;

--
-- Name: categories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.categories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: chart_of_accounts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.chart_of_accounts (
    id integer NOT NULL,
    account_code character varying(20) NOT NULL,
    account_name character varying(100) NOT NULL,
    account_type character varying(255) NOT NULL,
    account_category character varying(255) NOT NULL,
    parent_account_id integer,
    account_level integer DEFAULT 1,
    is_active boolean DEFAULT true,
    description text,
    opening_balance numeric(15,2) DEFAULT 0.00,
    current_balance numeric(15,2) DEFAULT 0.00,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.chart_of_accounts OWNER TO itresources;

--
-- Name: chart_of_accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.chart_of_accounts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.chart_of_accounts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: cheque_books; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.cheque_books (
    id integer NOT NULL,
    bank_account_id integer NOT NULL,
    branch_id integer DEFAULT 1 NOT NULL,
    first_cheque_number character(6) NOT NULL,
    last_cheque_number character(6) NOT NULL,
    cheque_count integer DEFAULT 0 NOT NULL,
    notes character varying(255),
    created_by integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.cheque_books OWNER TO itresources;

--
-- Name: cheque_books_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.cheque_books ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.cheque_books_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: cheques; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.cheques (
    id integer NOT NULL,
    cheque_book_id integer NOT NULL,
    bank_account_id integer NOT NULL,
    branch_id integer DEFAULT 1 NOT NULL,
    cheque_number character(6) NOT NULL,
    status character varying(255) DEFAULT 'unused'::character varying NOT NULL,
    amount numeric(12,2),
    sale_id integer,
    payee_name character varying(255),
    issue_date date,
    cleared_date date,
    bounced_date date,
    memo character varying(500),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.cheques OWNER TO itresources;

--
-- Name: cheques_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.cheques ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.cheques_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: cus_outstanding; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.cus_outstanding (
    id integer NOT NULL,
    sale_id integer NOT NULL,
    customer_id integer NOT NULL,
    amount numeric(10,2) NOT NULL,
    status character varying(255) DEFAULT 'unpaid'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.cus_outstanding OWNER TO itresources;

--
-- Name: cus_outstanding_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.cus_outstanding ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.cus_outstanding_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: cus_payments; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.cus_payments (
    id integer NOT NULL,
    store_id integer,
    customer_id integer NOT NULL,
    sale_id integer,
    balance_entry_id integer,
    amount_paid numeric(10,2) NOT NULL,
    payment_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    remarks character varying(255)
);


ALTER TABLE public.cus_payments OWNER TO itresources;

--
-- Name: cus_payments_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.cus_payments ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.cus_payments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: customer_balance_entries; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.customer_balance_entries (
    id integer NOT NULL,
    entry_number character varying(30) NOT NULL,
    customer_id integer NOT NULL,
    store_id integer DEFAULT 1,
    entry_type character varying(255) DEFAULT 'receivable'::character varying NOT NULL,
    amount numeric(12,2) NOT NULL,
    remaining_amount numeric(12,2) NOT NULL,
    reference_no character varying(50),
    remarks character varying(255),
    map_account_id integer,
    journal_entry_id integer,
    status character varying(255) DEFAULT 'posted'::character varying NOT NULL,
    created_by integer NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.customer_balance_entries OWNER TO itresources;

--
-- Name: customer_balance_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.customer_balance_entries ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.customer_balance_entries_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: customer_categories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.customer_categories (
    id integer NOT NULL,
    category_name character varying(100) NOT NULL,
    description text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.customer_categories OWNER TO itresources;

--
-- Name: customer_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.customer_categories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.customer_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: customer_subscription_invoices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.customer_subscription_invoices (
    id integer NOT NULL,
    subscription_id integer NOT NULL,
    sale_id integer NOT NULL,
    period_start date NOT NULL,
    period_end date NOT NULL,
    amount numeric(12,2) DEFAULT 0.00 NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.customer_subscription_invoices OWNER TO itresources;

--
-- Name: customer_subscription_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.customer_subscription_invoices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.customer_subscription_invoices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: customer_subscriptions; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.customer_subscriptions (
    id integer NOT NULL,
    store_id integer,
    customer_id integer NOT NULL,
    item_id integer NOT NULL,
    subscription_plan_id integer,
    status character varying(255) DEFAULT 'active'::character varying NOT NULL,
    start_date date NOT NULL,
    current_period_end date NOT NULL,
    next_renewal_date date,
    amount numeric(12,2) DEFAULT 0.00 NOT NULL,
    auto_renew boolean DEFAULT false NOT NULL,
    notes text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.customer_subscriptions OWNER TO itresources;

--
-- Name: customer_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.customer_subscriptions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.customer_subscriptions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: customers; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.customers (
    id integer NOT NULL,
    primary_store_id integer,
    name character varying(100) NOT NULL,
    phone character varying(20),
    email character varying(100),
    address text,
    is_walk_in boolean DEFAULT false,
    ntn character varying(20),
    province character varying(100) DEFAULT 'Punjab'::character varying,
    active boolean DEFAULT true NOT NULL,
    discount_applied character varying(255) DEFAULT 'N'::character varying,
    discount_rate numeric(5,2) DEFAULT 0.00,
    withholding_rate numeric(5,2) DEFAULT 0.00,
    category_id integer,
    customer_type character varying(255) DEFAULT 'retail'::character varying NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.customers OWNER TO itresources;

--
-- Name: customers_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.customers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.customers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: deal_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.deal_items (
    id integer NOT NULL,
    deal_id integer NOT NULL,
    selection_type character varying(255) NOT NULL,
    category_id integer,
    sub_category_id integer,
    item_id integer,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    min_selection integer DEFAULT 1,
    max_selection integer DEFAULT 1
);


ALTER TABLE public.deal_items OWNER TO itresources;

--
-- Name: deal_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.deal_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.deal_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: deals; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.deals (
    id integer NOT NULL,
    item_id integer NOT NULL,
    deal_name character varying(100) NOT NULL,
    deal_price numeric(10,2) NOT NULL,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.deals OWNER TO itresources;

--
-- Name: deals_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.deals ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.deals_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


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

CREATE TABLE public.delivery_orders (
    id integer NOT NULL,
    store_id integer,
    sale_id integer NOT NULL,
    customer_id integer NOT NULL,
    rider_id integer,
    delivery_status character varying(255) DEFAULT 'pending'::character varying,
    delivery_address text,
    delivery_time timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.delivery_orders OWNER TO itresources;

--
-- Name: delivery_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.delivery_orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.delivery_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: delivery_riders; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.delivery_riders (
    id integer NOT NULL,
    assigned_store_id integer,
    name character varying(100) NOT NULL,
    phone character varying(20),
    email character varying(100),
    vehicle_number character varying(50),
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.delivery_riders OWNER TO itresources;

--
-- Name: delivery_riders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.delivery_riders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.delivery_riders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: dinein_floors; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.dinein_floors (
    id integer NOT NULL,
    store_id integer,
    name character varying(100) NOT NULL,
    description text,
    is_active boolean DEFAULT true,
    background_image character varying(255),
    layout_canvas_width integer DEFAULT 1200 NOT NULL,
    layout_canvas_height integer DEFAULT 800 NOT NULL,
    CONSTRAINT dinein_floors_layout_canvas_height_check CHECK (((layout_canvas_height >= 300) AND (layout_canvas_height <= 3000))),
    CONSTRAINT dinein_floors_layout_canvas_width_check CHECK (((layout_canvas_width >= 400) AND (layout_canvas_width <= 4000)))
);


ALTER TABLE public.dinein_floors OWNER TO itresources;

--
-- Name: COLUMN dinein_floors.background_image; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_floors.background_image IS 'Relative path to floor plan background template image (uploaded from Dine-In Setup)';


--
-- Name: COLUMN dinein_floors.layout_canvas_width; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_floors.layout_canvas_width IS 'Floor plan editor canvas width in pixels (layout positions are stored as % of this size)';


--
-- Name: COLUMN dinein_floors.layout_canvas_height; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_floors.layout_canvas_height IS 'Floor plan editor canvas height in pixels (layout positions are stored as % of this size)';


--
-- Name: dinein_floors_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.dinein_floors ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.dinein_floors_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: dinein_tables; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.dinein_tables (
    id integer NOT NULL,
    store_id integer,
    floor_id integer NOT NULL,
    table_name character varying(50) NOT NULL,
    seats integer DEFAULT 4,
    status character varying(255) DEFAULT 'available'::character varying,
    is_active boolean DEFAULT true,
    table_shape character varying(20) DEFAULT 'square'::character varying NOT NULL,
    layout_x numeric(6,3),
    layout_y numeric(6,3),
    layout_w numeric(6,3) DEFAULT 8.000 NOT NULL,
    layout_h numeric(6,3) DEFAULT 8.000 NOT NULL,
    layout_rotation smallint DEFAULT 0 NOT NULL,
    is_layout_placed boolean DEFAULT false NOT NULL,
    color character varying(7) DEFAULT '#3b82f6'::character varying NOT NULL,
    CONSTRAINT dinein_tables_layout_h_check CHECK (((layout_h > (0)::numeric) AND (layout_h <= (100)::numeric))),
    CONSTRAINT dinein_tables_layout_rotation_check CHECK (((layout_rotation >= 0) AND (layout_rotation <= 359))),
    CONSTRAINT dinein_tables_layout_w_check CHECK (((layout_w > (0)::numeric) AND (layout_w <= (100)::numeric))),
    CONSTRAINT dinein_tables_layout_x_check CHECK (((layout_x IS NULL) OR ((layout_x >= (0)::numeric) AND (layout_x <= (100)::numeric)))),
    CONSTRAINT dinein_tables_layout_y_check CHECK (((layout_y IS NULL) OR ((layout_y >= (0)::numeric) AND (layout_y <= (100)::numeric)))),
    CONSTRAINT dinein_tables_table_shape_check CHECK (((table_shape)::text = ANY ((ARRAY['square'::character varying, 'round'::character varying])::text[])))
);


ALTER TABLE public.dinein_tables OWNER TO itresources;

--
-- Name: COLUMN dinein_tables.layout_x; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.layout_x IS 'Table left position on floor plan as % of floor layout_canvas_width (NULL = not placed yet)';


--
-- Name: COLUMN dinein_tables.layout_y; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.layout_y IS 'Table top position on floor plan as % of floor layout_canvas_height (NULL = not placed yet)';


--
-- Name: COLUMN dinein_tables.layout_w; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.layout_w IS 'Table width on floor plan as % of floor layout_canvas_width';


--
-- Name: COLUMN dinein_tables.layout_h; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.layout_h IS 'Table height on floor plan as % of floor layout_canvas_height';


--
-- Name: COLUMN dinein_tables.layout_rotation; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.layout_rotation IS 'Table rotation on floor plan in degrees (0–359)';


--
-- Name: COLUMN dinein_tables.is_layout_placed; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.is_layout_placed IS 'True when table has been positioned on the floor plan editor; false = POS may use auto grid';


--
-- Name: COLUMN dinein_tables.color; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.dinein_tables.color IS 'Hex color for table tile on dine-in floor plan (e.g. #3b82f6)';


--
-- Name: dinein_tables_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.dinein_tables ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.dinein_tables_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: discount_categories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.discount_categories (
    id integer NOT NULL,
    category_name character varying(100) NOT NULL,
    display_order integer DEFAULT 0,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.discount_categories OWNER TO itresources;

--
-- Name: discount_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.discount_categories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.discount_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: discounts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.discounts (
    id integer NOT NULL,
    discount_name character varying(100) NOT NULL,
    discount_code character varying(20),
    discount_type character varying(255) NOT NULL,
    discount_rate numeric(10,2) NOT NULL,
    discount_cap numeric(10,2),
    category_id integer,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.discounts OWNER TO itresources;

--
-- Name: discounts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.discounts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.discounts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: expense_accounts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.expense_accounts (
    id integer NOT NULL,
    category_id integer NOT NULL,
    subcategory_id integer NOT NULL,
    name character varying(100) NOT NULL,
    chart_of_account_id integer,
    mapped_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    mapped_by integer
);


ALTER TABLE public.expense_accounts OWNER TO itresources;

--
-- Name: expense_accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.expense_accounts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.expense_accounts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: expense_categories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.expense_categories (
    id integer NOT NULL,
    name character varying(100) NOT NULL
);


ALTER TABLE public.expense_categories OWNER TO itresources;

--
-- Name: expense_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.expense_categories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.expense_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: expense_subcategories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.expense_subcategories (
    id integer NOT NULL,
    category_id integer NOT NULL,
    name character varying(100) NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.expense_subcategories OWNER TO itresources;

--
-- Name: expense_subcategories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.expense_subcategories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.expense_subcategories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: expenses; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.expenses (
    id integer NOT NULL,
    store_id integer,
    branch_id integer,
    shift_id integer,
    expense_payment_group_id character varying(36),
    account_id integer NOT NULL,
    remarks text,
    amount numeric(10,2) NOT NULL,
    expense_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    payment_method character varying(255) DEFAULT 'cash'::character varying,
    bank_account_id integer,
    journal_entry_id integer,
    status character varying(255) DEFAULT 'approved'::character varying,
    approved_by integer,
    approved_at timestamp without time zone,
    reversal_date date,
    reversal_reason text,
    reversal_journal_id integer,
    rejection_reason text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.expenses OWNER TO itresources;

--
-- Name: expenses_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.expenses ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.expenses_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_config; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_config (
    id integer NOT NULL,
    is_enabled boolean,
    display_name character varying(255) DEFAULT 'FBR'::character varying NOT NULL,
    api_url character varying(255),
    pos_id bigint,
    usin character varying(50)
);


ALTER TABLE public.fbr_config OWNER TO itresources;

--
-- Name: fbr_config_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_config ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_config_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_digital; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_digital (
    id integer NOT NULL,
    is_enabled boolean DEFAULT false,
    api_url character varying(255),
    token text,
    mode character varying(255) DEFAULT 'sandbox'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    validate_api_url character varying(255),
    sandbox_token text,
    production_token text,
    post_api_url_sandbox character varying(255) DEFAULT 'https://gw.fbr.gov.pk/di_data/v1/di/postinvoicedata_sb'::character varying,
    post_api_url_production character varying(255) DEFAULT 'https://gw.fbr.gov.pk/di_data/v1/di/postinvoicedata'::character varying,
    validate_api_url_sandbox character varying(255) DEFAULT 'https://gw.fbr.gov.pk/di_data/v1/di/validateinvoicedata_sb'::character varying,
    validate_api_url_production character varying(255) DEFAULT 'https://gw.fbr.gov.pk/di_data/v1/di/validateinvoicedata'::character varying,
    business_activity character varying(100) DEFAULT 'Manufacturer'::character varying,
    business_sector character varying(100) DEFAULT 'All Other Sectors'::character varying,
    eligible_scenario_ids text,
    block_sale_on_failure boolean DEFAULT true
);


ALTER TABLE public.fbr_digital OWNER TO itresources;

--
-- Name: fbr_digital_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_digital ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_digital_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_digital_invoices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_digital_invoices (
    id integer NOT NULL,
    sale_id integer NOT NULL,
    fbr_invoice_number character varying(100) NOT NULL,
    qr_code text,
    scenario_id character varying(20),
    response_status character varying(50) DEFAULT 'success'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.fbr_digital_invoices OWNER TO itresources;

--
-- Name: fbr_digital_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_digital_invoices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_digital_invoices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_digital_logs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_digital_logs (
    id integer NOT NULL,
    sale_id integer,
    scenario_id character varying(20),
    endpoint character varying(255),
    request_data text,
    response_data text,
    http_status integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.fbr_digital_logs OWNER TO itresources;

--
-- Name: fbr_digital_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_digital_logs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_digital_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_digital_scenarios; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_digital_scenarios (
    id integer NOT NULL,
    scenario_id character varying(20) NOT NULL,
    status character varying(20) DEFAULT 'pending'::character varying,
    request_data text,
    response_data text,
    fbr_invoice_number character varying(100),
    error_message text,
    tested_at timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.fbr_digital_scenarios OWNER TO itresources;

--
-- Name: fbr_digital_scenarios_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_digital_scenarios ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_digital_scenarios_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_invoices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_invoices (
    id integer NOT NULL,
    sale_id integer NOT NULL,
    fbr_invoice_number character varying(100) NOT NULL,
    qr_code text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.fbr_invoices OWNER TO itresources;

--
-- Name: fbr_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_invoices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_invoices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fbr_logs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fbr_logs (
    id integer NOT NULL,
    sale_id integer,
    response text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.fbr_logs OWNER TO itresources;

--
-- Name: fbr_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fbr_logs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fbr_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: fiscal_period_setup; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fiscal_period_setup (
    start_year character varying(50) NOT NULL,
    start_month integer,
    start_day integer,
    month_count integer,
    open_year integer
);


ALTER TABLE public.fiscal_period_setup OWNER TO itresources;

--
-- Name: fiscal_periods; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.fiscal_periods (
    id integer NOT NULL,
    period_code character varying(50),
    period_name character varying(50) NOT NULL,
    period_year integer,
    start_date date NOT NULL,
    end_date date NOT NULL,
    is_closed boolean DEFAULT false,
    period_status character varying(50) DEFAULT 'Open'::character varying,
    closed_by integer,
    closed_at timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.fiscal_periods OWNER TO itresources;

--
-- Name: fiscal_periods_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.fiscal_periods ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.fiscal_periods_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: hold_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.hold_items (
    id integer NOT NULL,
    store_id integer,
    hold_id integer,
    item_id integer,
    item_name character varying(100),
    quantity numeric(12,3),
    unit_price numeric(10,2),
    original_unit_price numeric(10,2),
    discount_type character varying(255) DEFAULT 'none'::character varying NOT NULL,
    discount_value numeric(10,2) DEFAULT 0.00 NOT NULL,
    discount_per_unit numeric(10,2) DEFAULT 0.00 NOT NULL,
    discount_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    tax_rate numeric(5,2),
    modifiers text,
    remarks text,
    void_status character varying(255) DEFAULT 'active'::character varying NOT NULL,
    template_id integer,
    is_deal boolean DEFAULT false,
    deal_selections text,
    serial_ids text
);


ALTER TABLE public.hold_items OWNER TO itresources;

--
-- Name: hold_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.hold_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.hold_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: hold_orders; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.hold_orders (
    id integer NOT NULL,
    token_number integer,
    shift_id integer,
    store_id integer,
    customer_name character varying(100),
    customer_id integer,
    table_id integer,
    order_mode character varying(50),
    rider_id integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_amount numeric(10,2) DEFAULT 0.00,
    discount_id integer,
    discount_type character varying(255) DEFAULT 'none'::character varying,
    discount_value numeric(10,2) DEFAULT 0.00,
    discount_amount numeric(10,2) DEFAULT 0.00,
    order_taker_id integer,
    number_of_guests integer,
    reserved_invoice_number character varying(20)
);


ALTER TABLE public.hold_orders OWNER TO itresources;

--
-- Name: hold_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.hold_orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.hold_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: inventory_lots; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.inventory_lots (
    id integer NOT NULL,
    item_id integer NOT NULL,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    purchase_id integer,
    purchase_item_id integer,
    lot_number character varying(50),
    expiry_date date NOT NULL,
    mfg_date date,
    qty_received numeric(12,3) NOT NULL,
    qty_on_hand numeric(12,3) NOT NULL,
    unit_cost numeric(10,2),
    status_code character varying(20) DEFAULT 'active'::character varying NOT NULL,
    remarks text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    CONSTRAINT inventory_lots_qty_on_hand_check CHECK ((qty_on_hand >= (0)::numeric)),
    CONSTRAINT inventory_lots_qty_on_hand_lte_received_check CHECK ((qty_on_hand <= qty_received)),
    CONSTRAINT inventory_lots_qty_received_check CHECK ((qty_received > (0)::numeric)),
    CONSTRAINT inventory_lots_status_code_check CHECK (((status_code)::text = ANY ((ARRAY['active'::character varying, 'depleted'::character varying, 'expired'::character varying, 'written_off'::character varying])::text[])))
);


ALTER TABLE public.inventory_lots OWNER TO itresources;

--
-- Name: TABLE inventory_lots; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON TABLE public.inventory_lots IS 'Per-batch stock for expiry-tracked items. Created on purchase; qty_on_hand reduced on sale (FEFO) in a later phase.';


--
-- Name: COLUMN inventory_lots.lot_number; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.inventory_lots.lot_number IS 'Optional supplier batch / lot number from purchase.';


--
-- Name: COLUMN inventory_lots.expiry_date; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.inventory_lots.expiry_date IS 'Product expiry date for this batch.';


--
-- Name: COLUMN inventory_lots.mfg_date; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.inventory_lots.mfg_date IS 'Optional manufacturing date; expiry may be derived from shelf life in a later phase.';


--
-- Name: COLUMN inventory_lots.status_code; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.inventory_lots.status_code IS 'active = has stock; depleted = qty 0; expired = past expiry; written_off = manual disposal.';


--
-- Name: inventory_lots_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.inventory_lots ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.inventory_lots_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: inventory_movements; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.inventory_movements (
    id integer NOT NULL,
    item_id integer NOT NULL,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    movement_type character varying(255) NOT NULL,
    reference_type character varying(255) DEFAULT 'manual'::character varying,
    reference_id integer,
    quantity numeric(12,6) NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    lot_id integer
);


ALTER TABLE public.inventory_movements OWNER TO itresources;

--
-- Name: COLUMN inventory_movements.lot_id; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.inventory_movements.lot_id IS 'Optional link to inventory_lots when movement is lot-specific (sale/purchase return/wastage).';


--
-- Name: inventory_movements_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.inventory_movements ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.inventory_movements_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_barcodes; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_barcodes (
    id integer NOT NULL,
    item_id integer NOT NULL,
    barcode character varying(100) NOT NULL,
    barcode_label character varying(100),
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    scan_mode character varying(10) DEFAULT 'loose'::character varying NOT NULL
);


ALTER TABLE public.item_barcodes OWNER TO itresources;

--
-- Name: item_barcodes_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_barcodes ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_barcodes_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_line_discounts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_line_discounts (
    id integer NOT NULL,
    item_id integer NOT NULL,
    discount_type character varying(255) NOT NULL,
    discount_value numeric(10,2) DEFAULT 0.00 NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    starts_at date,
    expires_at date,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE public.item_line_discounts OWNER TO itresources;

--
-- Name: item_line_discounts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_line_discounts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_line_discounts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_modifier_group_assignments; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_modifier_group_assignments (
    id integer NOT NULL,
    item_id integer NOT NULL,
    modifier_group_id integer NOT NULL,
    is_required boolean DEFAULT false,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.item_modifier_group_assignments OWNER TO itresources;

--
-- Name: item_modifier_group_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_modifier_group_assignments ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_modifier_group_assignments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_modifier_groups; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_modifier_groups (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    display_name character varying(100) NOT NULL,
    description text,
    is_required boolean DEFAULT false,
    is_multiple_choice boolean DEFAULT false,
    max_selections integer,
    min_selections integer DEFAULT 1,
    is_active boolean DEFAULT true,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.item_modifier_groups OWNER TO itresources;

--
-- Name: item_modifier_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_modifier_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_modifier_groups_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_modifiers; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_modifiers (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    short_name character varying(50),
    price_adjustment numeric(10,2) DEFAULT 0.00,
    cost_adjustment numeric(10,2) DEFAULT 0.00,
    is_default boolean DEFAULT false,
    is_active boolean DEFAULT true,
    sort_order integer DEFAULT 0,
    prep_time_adjustment integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.item_modifiers OWNER TO itresources;

--
-- Name: item_modifiers_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_modifiers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_modifiers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_serial_transactions; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_serial_transactions (
    id bigint NOT NULL,
    serial_id bigint NOT NULL,
    item_id integer NOT NULL,
    trans_type character varying(3) NOT NULL,
    doc_type character varying(20) NOT NULL,
    doc_id bigint NOT NULL,
    header_id bigint,
    branch_id integer,
    user_id integer,
    remarks character varying(500),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE public.item_serial_transactions OWNER TO itresources;

--
-- Name: item_serial_transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_serial_transactions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_serial_transactions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: item_serials; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.item_serials (
    id bigint NOT NULL,
    item_id integer NOT NULL,
    serial_no character varying(191) NOT NULL,
    details text,
    cost_price numeric(10,2),
    selling_price numeric(10,2),
    warranty_name character varying(255),
    warranty_expiry date,
    status_code character varying(3) DEFAULT 'SIN'::character varying NOT NULL,
    branch_id integer,
    supplier_id integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE public.item_serials OWNER TO itresources;

--
-- Name: item_serials_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.item_serials ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.item_serials_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.items (
    id integer NOT NULL,
    item_code character varying(50) NOT NULL,
    sku_number character varying(100) NOT NULL,
    name character varying(100) NOT NULL,
    description text,
    retail_price numeric(10,2) NOT NULL,
    wholesale_price numeric(10,2),
    cost_price numeric(10,2) NOT NULL,
    reorder_quantity integer DEFAULT 0,
    reorder_level integer DEFAULT 0,
    tax_type character varying(255) NOT NULL,
    tax_rate_id integer,
    category_id integer,
    sub_category_id integer,
    bulk_qty integer,
    bulk_price numeric(10,2),
    pkg_qty integer,
    uom_id integer NOT NULL,
    item_type character varying(255) DEFAULT 'loose'::character varying NOT NULL,
    product_image character varying(255),
    display_color character varying(50),
    item_role character varying(255) DEFAULT 'stock'::character varying NOT NULL,
    is_serialized boolean DEFAULT false NOT NULL,
    is_third_schedule boolean DEFAULT false NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    supplier_id integer,
    prep_time integer,
    fbr_uom character varying(100),
    fbr_sale_type character varying(150),
    is_scale_item boolean DEFAULT false NOT NULL,
    tracks_expiry boolean DEFAULT false NOT NULL
);


ALTER TABLE public.items OWNER TO itresources;

--
-- Name: COLUMN items.is_scale_item; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.items.is_scale_item IS 'When true, POS parses scale/variable-weight barcodes for this item.';


--
-- Name: COLUMN items.tracks_expiry; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON COLUMN public.items.tracks_expiry IS 'When true, purchase must capture expiry (and optional lot/batch) and stock is tracked in inventory_lots.';


--
-- Name: items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: journal_entries; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.journal_entries (
    id integer NOT NULL,
    entry_number character varying(50) NOT NULL,
    entry_date date NOT NULL,
    period_id integer,
    transaction_date date NOT NULL,
    source_type character varying(255) NOT NULL,
    reference_id integer,
    description text,
    total_debit numeric(15,2) DEFAULT 0.00,
    total_credit numeric(15,2) DEFAULT 0.00,
    status character varying(255) DEFAULT 'draft'::character varying,
    store_id integer DEFAULT 1,
    branch_id integer DEFAULT 1 NOT NULL,
    user_id integer NOT NULL,
    posted_at timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    branch_code character varying(50) NOT NULL,
    source_entry_id integer NOT NULL
);


ALTER TABLE public.journal_entries OWNER TO itresources;

--
-- Name: journal_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.journal_entries ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.journal_entries_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: journal_entry_lines; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.journal_entry_lines (
    id integer NOT NULL,
    journal_entry_id integer NOT NULL,
    account_id integer NOT NULL,
    debit_amount numeric(15,2) DEFAULT 0.00,
    credit_amount numeric(15,2) DEFAULT 0.00,
    description text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    branch_code character varying(50) NOT NULL,
    source_line_id integer NOT NULL
);


ALTER TABLE public.journal_entry_lines OWNER TO itresources;

--
-- Name: journal_entry_lines_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.journal_entry_lines ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.journal_entry_lines_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_activity_log; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_activity_log (
    id integer NOT NULL,
    store_id integer,
    kds_order_id integer,
    kds_order_item_id integer,
    action character varying(50) NOT NULL,
    details text,
    description text,
    user_id integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kds_activity_log OWNER TO itresources;

--
-- Name: kds_activity_log_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_activity_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_activity_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_cleanup_log; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_cleanup_log (
    id integer NOT NULL,
    cleanup_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    retention_days integer DEFAULT 7,
    orders_deleted integer DEFAULT 0,
    order_items_deleted integer DEFAULT 0,
    activity_logs_deleted integer DEFAULT 0,
    total_records_deleted integer DEFAULT 0,
    execution_time_ms integer DEFAULT 0,
    status character varying(255) DEFAULT 'success'::character varying,
    message text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kds_cleanup_log OWNER TO itresources;

--
-- Name: kds_cleanup_log_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_cleanup_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_cleanup_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_order_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_order_items (
    id integer NOT NULL,
    store_id integer,
    kds_order_id integer NOT NULL,
    sale_item_id integer NOT NULL,
    hold_item_id integer,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_price numeric(10,2) NOT NULL,
    total_price numeric(10,2) NOT NULL,
    item_status character varying(255) DEFAULT 'pending'::character varying NOT NULL,
    special_instructions text,
    preparation_notes text,
    prepared_at timestamp without time zone,
    served_at timestamp without time zone,
    prepared_by integer,
    served_by integer,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    item_status_type character varying(255) DEFAULT 'original'::character varying,
    served_quantity numeric(12,3) DEFAULT 0.000,
    total_quantity numeric(12,3) DEFAULT 0.000
);


ALTER TABLE public.kds_order_items OWNER TO itresources;

--
-- Name: kds_order_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_order_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_order_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_orders; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_orders (
    id integer NOT NULL,
    store_id integer,
    sale_id integer NOT NULL,
    hold_id integer,
    invoice_number character varying(50) NOT NULL,
    order_number character varying(50) NOT NULL,
    table_number character varying(20),
    customer_name character varying(100),
    order_type character varying(255) DEFAULT 'dine_in'::character varying NOT NULL,
    order_status character varying(255) DEFAULT 'pending'::character varying NOT NULL,
    priority character varying(255) DEFAULT 'normal'::character varying NOT NULL,
    estimated_time integer,
    notes text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    prepared_at timestamp without time zone,
    served_at timestamp without time zone,
    created_by integer,
    prepared_by integer,
    served_by integer,
    order_taker_id integer,
    order_sequence integer DEFAULT 1,
    parent_order_id integer
);


ALTER TABLE public.kds_orders OWNER TO itresources;

--
-- Name: kds_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_settings; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_settings (
    id integer NOT NULL,
    store_id integer,
    setting_key character varying(100) NOT NULL,
    setting_value text,
    description text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kds_settings OWNER TO itresources;

--
-- Name: kds_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_settings ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_settings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_station_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_station_items (
    id integer NOT NULL,
    store_id integer,
    station_id integer NOT NULL,
    item_id integer NOT NULL,
    preparation_time integer,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kds_station_items OWNER TO itresources;

--
-- Name: kds_station_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_station_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_station_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kds_stations; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kds_stations (
    id integer NOT NULL,
    store_id integer,
    name character varying(100) NOT NULL,
    description text,
    printer_id integer,
    enable_kot_print boolean DEFAULT true,
    color character varying(7) DEFAULT '#007bff'::character varying,
    is_active boolean DEFAULT true,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    preparation_time integer DEFAULT 10
);


ALTER TABLE public.kds_stations OWNER TO itresources;

--
-- Name: kds_stations_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kds_stations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kds_stations_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kpra_config; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kpra_config (
    id integer NOT NULL,
    is_enabled boolean DEFAULT false,
    key character varying(255),
    pos_id character varying(100),
    business_id character varying(50),
    api_url character varying(255) DEFAULT 'http://kpra.gov.pk/rims/integration/'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kpra_config OWNER TO itresources;

--
-- Name: kpra_config_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kpra_config ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kpra_config_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kpra_invoices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kpra_invoices (
    id integer NOT NULL,
    sale_id integer NOT NULL,
    kpra_invoice_number character varying(100) NOT NULL,
    qr_code_url text,
    qr_code_image text,
    response_status character varying(10),
    response_message text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kpra_invoices OWNER TO itresources;

--
-- Name: kpra_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kpra_invoices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kpra_invoices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: kpra_logs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.kpra_logs (
    id integer NOT NULL,
    sale_id integer,
    request_data text,
    response_data text,
    status_code character varying(10),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.kpra_logs OWNER TO itresources;

--
-- Name: kpra_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.kpra_logs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.kpra_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: languages; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.languages (
    id integer NOT NULL,
    code character varying(5) NOT NULL,
    name character varying(50) NOT NULL,
    native_name character varying(50) NOT NULL,
    flag character varying(100),
    rtl boolean DEFAULT false,
    active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.languages OWNER TO itresources;

--
-- Name: languages_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.languages ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.languages_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: line_discount_rules; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.line_discount_rules (
    id integer NOT NULL,
    scope_type character varying(20) NOT NULL,
    scope_id integer NOT NULL,
    discount_type character varying(20) DEFAULT 'percent'::character varying NOT NULL,
    discount_value numeric(10,2) DEFAULT 0.00 NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    starts_at date,
    expires_at date,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    CONSTRAINT line_discount_rules_discount_type_check CHECK (((discount_type)::text = ANY ((ARRAY['percent'::character varying, 'fixed'::character varying])::text[]))),
    CONSTRAINT line_discount_rules_scope_type_check CHECK (((scope_type)::text = ANY ((ARRAY['category'::character varying, 'sub_category'::character varying])::text[])))
);


ALTER TABLE public.line_discount_rules OWNER TO itresources;

--
-- Name: TABLE line_discount_rules; Type: COMMENT; Schema: public; Owner: itresources
--

COMMENT ON TABLE public.line_discount_rules IS 'Default POS line discounts by product category or sub-category. Item-specific rules stay in item_line_discounts. Precedence: item > sub_category > category.';


--
-- Name: line_discount_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.line_discount_rules ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.line_discount_rules_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: modifier_group_assignments; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.modifier_group_assignments (
    id integer NOT NULL,
    modifier_id integer NOT NULL,
    modifier_group_id integer NOT NULL,
    is_required boolean DEFAULT false,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.modifier_group_assignments OWNER TO itresources;

--
-- Name: modifier_group_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.modifier_group_assignments ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.modifier_group_assignments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: modifier_template_options; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.modifier_template_options (
    id integer NOT NULL,
    template_id integer NOT NULL,
    name character varying(100) NOT NULL,
    price_adjustment numeric(10,2) DEFAULT 0.00,
    is_active boolean DEFAULT true,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.modifier_template_options OWNER TO itresources;

--
-- Name: modifier_template_options_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.modifier_template_options ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.modifier_template_options_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: modifier_templates; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.modifier_templates (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    icon character varying(50) DEFAULT 'layers'::character varying,
    is_active boolean DEFAULT true,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.modifier_templates OWNER TO itresources;

--
-- Name: modifier_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.modifier_templates ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.modifier_templates_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: order_takers; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.order_takers (
    id integer NOT NULL,
    assigned_store_id integer,
    name character varying(100) NOT NULL,
    employee_id character varying(50),
    phone character varying(20),
    email character varying(100),
    commission_rate numeric(5,2) DEFAULT 0.00,
    password character varying(255) NOT NULL,
    user_id integer,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.order_takers OWNER TO itresources;

--
-- Name: order_takers_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.order_takers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.order_takers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: payment_method_tax_rates; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.payment_method_tax_rates (
    id integer NOT NULL,
    payment_method character varying(50) NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00 NOT NULL,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.payment_method_tax_rates OWNER TO itresources;

--
-- Name: payment_method_tax_rates_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.payment_method_tax_rates ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.payment_method_tax_rates_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: payment_methods; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.payment_methods (
    id integer NOT NULL,
    method_name character varying(50) NOT NULL,
    display_name character varying(100),
    icon_class character varying(50),
    color_class character varying(50),
    is_active boolean DEFAULT true,
    requires_bank_account boolean DEFAULT false,
    sort_order integer DEFAULT 0,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.payment_methods OWNER TO itresources;

--
-- Name: payment_methods_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.payment_methods ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.payment_methods_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: price_history; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.price_history (
    id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    vendor_id integer,
    old_cost_price numeric(10,2),
    new_cost_price numeric(10,2),
    old_retail_price numeric(10,2),
    new_retail_price numeric(10,2),
    changed_by character varying(100),
    changed_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.price_history OWNER TO itresources;

--
-- Name: price_history_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.price_history ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.price_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: print_devices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.print_devices (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    connection_type character varying(255) NOT NULL,
    print_type character varying(255) DEFAULT 'all'::character varying,
    terminal_id integer,
    printer_name character varying(100),
    printer_type character varying(255) DEFAULT 'thermal'::character varying,
    print_mode character varying(255) DEFAULT 'auto'::character varying,
    copies integer DEFAULT 1 NOT NULL,
    ip_address character varying(100),
    is_active boolean DEFAULT true,
    is_default boolean DEFAULT false,
    auto_detect boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.print_devices OWNER TO itresources;

--
-- Name: print_devices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.print_devices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.print_devices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: production_cost_lines; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.production_cost_lines (
    id integer NOT NULL,
    production_item_id integer NOT NULL,
    cost_type character varying(255) DEFAULT 'other'::character varying NOT NULL,
    description character varying(255),
    quantity numeric(12,4),
    unit_rate numeric(12,4),
    amount numeric(12,2) DEFAULT 0.00 NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.production_cost_lines OWNER TO itresources;

--
-- Name: production_cost_lines_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.production_cost_lines ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.production_cost_lines_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: production_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.production_items (
    id integer NOT NULL,
    production_order_id integer NOT NULL,
    material_store_id integer,
    finish_store_id integer,
    item_id integer NOT NULL,
    quantity numeric(10,2) NOT NULL,
    unit_cost numeric(10,2) DEFAULT 0.00,
    total_cost numeric(10,2) DEFAULT 0.00,
    status character varying(255) DEFAULT 'pending'::character varying NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.production_items OWNER TO itresources;

--
-- Name: production_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.production_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.production_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: production_materials; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.production_materials (
    id integer NOT NULL,
    production_item_id integer NOT NULL,
    material_item_id integer NOT NULL,
    quantity_consumed numeric(10,2) NOT NULL,
    unit_cost numeric(10,2) DEFAULT 0.00,
    total_cost numeric(10,2) DEFAULT 0.00,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.production_materials OWNER TO itresources;

--
-- Name: production_materials_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.production_materials ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.production_materials_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: production_orders; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.production_orders (
    id integer NOT NULL,
    order_number character varying(50) NOT NULL,
    production_date date NOT NULL,
    status character varying(255) DEFAULT 'pending'::character varying NOT NULL,
    remarks text,
    total_cost numeric(10,2) DEFAULT 0.00,
    created_by integer NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.production_orders OWNER TO itresources;

--
-- Name: production_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.production_orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.production_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: purchase_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.purchase_items (
    id integer NOT NULL,
    store_id integer,
    purchase_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_cost numeric(10,2) NOT NULL,
    total_cost numeric(10,2) NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00
);


ALTER TABLE public.purchase_items OWNER TO itresources;

--
-- Name: purchase_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.purchase_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.purchase_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: purchase_order_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.purchase_order_items (
    id integer NOT NULL,
    purchase_order_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    quantity numeric(12,3) NOT NULL,
    quantity_loose numeric(12,3) DEFAULT 0.000 NOT NULL,
    unit_cost numeric(10,2) NOT NULL,
    retail_price numeric(10,2) DEFAULT 0.00 NOT NULL,
    total_cost numeric(10,2) NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00,
    purchase_mode character varying(10) DEFAULT 'loose'::character varying NOT NULL,
    bulk_base_qty numeric(12,3) DEFAULT 0.000 NOT NULL
);


ALTER TABLE public.purchase_order_items OWNER TO itresources;

--
-- Name: purchase_order_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.purchase_order_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.purchase_order_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: purchase_orders; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.purchase_orders (
    id integer NOT NULL,
    po_number character varying(50) NOT NULL,
    vendor_id integer NOT NULL,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    po_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    tax_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    discount_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    net_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    notes text,
    status character varying(20) DEFAULT 'pending'::character varying NOT NULL,
    converted_purchase_id integer,
    converted_at timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.purchase_orders OWNER TO itresources;

--
-- Name: purchase_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.purchase_orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.purchase_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: purchase_return_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.purchase_return_items (
    id integer NOT NULL,
    purchase_return_id integer NOT NULL,
    item_id integer NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_cost numeric(10,2) NOT NULL,
    total_cost numeric(10,2) NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00
);


ALTER TABLE public.purchase_return_items OWNER TO itresources;

--
-- Name: purchase_return_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.purchase_return_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.purchase_return_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: purchase_returns; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.purchase_returns (
    id integer NOT NULL,
    store_id integer,
    purchase_id integer,
    vendor_id integer NOT NULL,
    return_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_amount numeric(10,2) NOT NULL,
    remarks character varying(255),
    customer_remarks character varying(255),
    created_by integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.purchase_returns OWNER TO itresources;

--
-- Name: purchase_returns_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.purchase_returns ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.purchase_returns_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: purchases; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.purchases (
    id integer NOT NULL,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    purchase_number character varying(50) NOT NULL,
    vendor_id integer NOT NULL,
    purchase_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_amount numeric(10,2) NOT NULL,
    tax_amount numeric(10,2) DEFAULT 0.00,
    discount_amount numeric(10,2) DEFAULT 0.00,
    net_amount numeric(10,2) NOT NULL,
    payment_method character varying(255) DEFAULT 'cash'::character varying,
    status character varying(20) DEFAULT 'pending'::character varying,
    source_po_id integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    advance_tax_rate numeric(5,2) DEFAULT 0.00 NOT NULL,
    advance_tax_amount numeric(10,2) DEFAULT 0.00 NOT NULL
);


ALTER TABLE public.purchases OWNER TO itresources;

--
-- Name: purchases_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.purchases ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.purchases_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: quotation_drafts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.quotation_drafts (
    id integer NOT NULL,
    user_id integer NOT NULL,
    store_id integer NOT NULL,
    payload text NOT NULL,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.quotation_drafts OWNER TO itresources;

--
-- Name: quotation_drafts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.quotation_drafts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.quotation_drafts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: quotation_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.quotation_items (
    id integer NOT NULL,
    quotation_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_price numeric(10,2) NOT NULL,
    total_price numeric(10,2) NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00,
    line_discount_percent numeric(5,2) DEFAULT 0.00 NOT NULL,
    remarks text
);


ALTER TABLE public.quotation_items OWNER TO itresources;

--
-- Name: quotation_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.quotation_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.quotation_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: quotations; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.quotations (
    id integer NOT NULL,
    store_id integer,
    quotation_number character varying(50) NOT NULL,
    customer_id integer,
    customer_name character varying(100),
    quotation_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    subtotal numeric(10,2) DEFAULT 0.00 NOT NULL,
    tax_amount numeric(10,2) DEFAULT 0.00,
    discount_amount numeric(10,2) DEFAULT 0.00,
    net_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    status character varying(255) DEFAULT 'draft'::character varying,
    remarks text,
    created_by integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.quotations OWNER TO itresources;

--
-- Name: quotations_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.quotations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.quotations_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: rights; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.rights (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    description text,
    category character varying(100)
);


ALTER TABLE public.rights OWNER TO itresources;

--
-- Name: rights_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.rights ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.rights_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: role_rights; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.role_rights (
    role_id integer NOT NULL,
    right_id integer NOT NULL
);


ALTER TABLE public.role_rights OWNER TO itresources;

--
-- Name: roles; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.roles (
    id integer NOT NULL,
    name character varying(100) NOT NULL
);


ALTER TABLE public.roles OWNER TO itresources;

--
-- Name: roles_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.roles ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.roles_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sale_item_modifiers; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sale_item_modifiers (
    id integer NOT NULL,
    sale_item_id integer NOT NULL,
    modifier_id integer NOT NULL,
    modifier_group_id integer NOT NULL,
    modifier_name character varying(100) NOT NULL,
    price_adjustment numeric(10,2) DEFAULT 0.00,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.sale_item_modifiers OWNER TO itresources;

--
-- Name: sale_item_modifiers_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sale_item_modifiers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sale_item_modifiers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sale_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sale_items (
    id integer NOT NULL,
    store_id integer,
    sale_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_price numeric(10,2) NOT NULL,
    original_unit_price numeric(10,2),
    total_price numeric(10,2) NOT NULL,
    discount_type character varying(255) DEFAULT 'none'::character varying NOT NULL,
    discount_value numeric(10,2) DEFAULT 0.00 NOT NULL,
    discount_per_unit numeric(10,2) DEFAULT 0.00 NOT NULL,
    discount_amount numeric(10,2) DEFAULT 0.00 NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00,
    remarks text,
    is_deal boolean DEFAULT false,
    deal_selections text
);


ALTER TABLE public.sale_items OWNER TO itresources;

--
-- Name: sale_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sale_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sale_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sale_return_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sale_return_items (
    id integer NOT NULL,
    sale_return_id integer NOT NULL,
    item_id integer NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_price numeric(10,2) NOT NULL,
    total_price numeric(10,2) NOT NULL,
    tax_rate numeric(5,2) DEFAULT 0.00
);


ALTER TABLE public.sale_return_items OWNER TO itresources;

--
-- Name: sale_return_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sale_return_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sale_return_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sale_returns; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sale_returns (
    id integer NOT NULL,
    store_id integer,
    sale_id integer,
    return_source character varying(20) DEFAULT 'invoice'::character varying NOT NULL,
    customer_id integer NOT NULL,
    return_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_amount numeric(10,2) NOT NULL,
    remarks character varying(255),
    customer_remarks character varying(255),
    payment_method character varying(255) DEFAULT 'cash'::character varying,
    bank_account_id integer,
    created_by integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    shift_id integer
);


ALTER TABLE public.sale_returns OWNER TO itresources;

--
-- Name: sale_returns_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sale_returns ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sale_returns_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sales; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sales (
    id integer NOT NULL,
    terminal_id integer,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    invoice_number character varying(50) NOT NULL,
    sale_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    customer_name character varying(100),
    customer_id integer,
    total_amount numeric(10,2) NOT NULL,
    tax_amount numeric(10,2) DEFAULT 0.00,
    discount_amount numeric(10,2) DEFAULT 0.00,
    withholding_amount numeric(10,2) DEFAULT 0.00,
    discount_id integer,
    net_amount numeric(10,2) NOT NULL,
    payment_method character varying(50) DEFAULT 'cash'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    shift_id integer,
    is_fbr_enabled boolean DEFAULT false,
    is_kpra_enabled boolean DEFAULT false,
    zatca_phase2_invoice_id bigint,
    table_id integer,
    order_mode character varying(50),
    discount_type character varying(255),
    discount_value numeric(10,2) DEFAULT 0.00,
    service_charges numeric(10,2) DEFAULT 0.00,
    tip_amount numeric(10,2) DEFAULT 0.00,
    order_taker_id integer,
    number_of_guests integer,
    void_id integer,
    is_fbr_digital_enabled boolean DEFAULT false
);


ALTER TABLE public.sales OWNER TO itresources;

--
-- Name: sales_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sales ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sales_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: setting_categories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.setting_categories (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    code character varying(50) NOT NULL
);


ALTER TABLE public.setting_categories OWNER TO itresources;

--
-- Name: setting_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.setting_categories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.setting_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: setting_options; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.setting_options (
    id integer NOT NULL,
    setting_id integer NOT NULL,
    option_label character varying(100),
    option_value character varying(100)
);


ALTER TABLE public.setting_options OWNER TO itresources;

--
-- Name: setting_options_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.setting_options ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.setting_options_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: settings; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.settings (
    id integer NOT NULL,
    store_id integer,
    category_id integer NOT NULL,
    name character varying(100) NOT NULL,
    code character varying(100) NOT NULL,
    type character varying(255),
    value text,
    default_value text,
    description text,
    is_active boolean DEFAULT true
);


ALTER TABLE public.settings OWNER TO itresources;

--
-- Name: settings_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.settings ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.settings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: shift_logs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.shift_logs (
    id integer NOT NULL,
    store_id integer,
    shift_id integer NOT NULL,
    action_type character varying(255) NOT NULL,
    amount numeric(10,2) DEFAULT 0.00,
    note text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.shift_logs OWNER TO itresources;

--
-- Name: shift_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.shift_logs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.shift_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: shifts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.shifts (
    id integer NOT NULL,
    store_id integer,
    branch_id integer DEFAULT 1 NOT NULL,
    user_id integer NOT NULL,
    start_time timestamp without time zone NOT NULL,
    end_time timestamp without time zone,
    opening_cash numeric(10,2) DEFAULT 0.00,
    closing_cash numeric(10,2) DEFAULT 0.00,
    expected_cash numeric(10,2) DEFAULT 0.00,
    actual_cash numeric(10,2) DEFAULT 0.00,
    discrepancy numeric(10,2) DEFAULT 0.00,
    status character varying(255) DEFAULT 'open'::character varying,
    open_journal_entry_id integer,
    close_journal_entry_id integer
);


ALTER TABLE public.shifts OWNER TO itresources;

--
-- Name: shifts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.shifts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.shifts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: site_installation; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.site_installation (
    id integer NOT NULL,
    installation_role character varying(20) DEFAULT 'branch_server'::character varying NOT NULL,
    license_key character varying(100),
    machine_id character varying(255),
    last_verified_at timestamp without time zone,
    license_cache text,
    license_type character varying(20),
    setup_completed_at timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    CONSTRAINT site_installation_role_chk CHECK (((installation_role)::text = ANY (ARRAY[('branch_server'::character varying)::text, ('cloud_hub'::character varying)::text])))
);


ALTER TABLE public.site_installation OWNER TO itresources;

--
-- Name: site_installation_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

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


ALTER SEQUENCE public.site_installation_id_seq OWNER TO itresources;

--
-- Name: site_installation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: itresources
--

ALTER SEQUENCE public.site_installation_id_seq OWNED BY public.site_installation.id;


--
-- Name: stock_adjustment_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.stock_adjustment_items (
    id integer NOT NULL,
    adjustment_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    current_quantity numeric(12,6) NOT NULL,
    adjustment_quantity numeric(12,6) NOT NULL,
    new_quantity numeric(12,6) NOT NULL,
    cost_price numeric(10,2) NOT NULL,
    current_stock_value numeric(12,2) NOT NULL,
    adjustment_value numeric(12,2) NOT NULL,
    new_stock_value numeric(12,2) NOT NULL
);


ALTER TABLE public.stock_adjustment_items OWNER TO itresources;

--
-- Name: stock_adjustment_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.stock_adjustment_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_adjustment_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_adjustments; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.stock_adjustments (
    id integer NOT NULL,
    adjustment_number character varying(50) NOT NULL,
    store_id integer NOT NULL,
    adjustment_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_items integer DEFAULT 0,
    total_adjustment_value numeric(12,2) DEFAULT 0.00,
    total_current_stock_value numeric(12,2) DEFAULT 0.00,
    total_new_stock_value numeric(12,2) DEFAULT 0.00,
    remarks text,
    created_by integer NOT NULL,
    journal_entry_id integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.stock_adjustments OWNER TO itresources;

--
-- Name: stock_adjustments_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.stock_adjustments ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_adjustments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_transfer_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.stock_transfer_items (
    id integer NOT NULL,
    to_store_id integer,
    from_store_id integer,
    transfer_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(100) NOT NULL,
    quantity numeric(12,6) NOT NULL,
    cost_price numeric(10,2),
    remarks text
);


ALTER TABLE public.stock_transfer_items OWNER TO itresources;

--
-- Name: stock_transfer_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.stock_transfer_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_transfer_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_transfers; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.stock_transfers (
    id integer NOT NULL,
    transfer_number character varying(50) NOT NULL,
    from_store_id integer NOT NULL,
    to_store_id integer NOT NULL,
    transfer_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    status character varying(255) DEFAULT 'pending'::character varying,
    total_items integer DEFAULT 0,
    total_quantity numeric(12,6) DEFAULT 0.000000,
    notes text,
    requested_by integer,
    approved_by integer,
    received_by integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.stock_transfers OWNER TO itresources;

--
-- Name: stock_transfers_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.stock_transfers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_transfers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: store_inventory; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.store_inventory (
    id integer NOT NULL,
    store_id integer NOT NULL,
    item_id integer NOT NULL,
    quantity numeric(12,6) DEFAULT 0.000000,
    last_updated timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.store_inventory OWNER TO itresources;

--
-- Name: store_inventory_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.store_inventory ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.store_inventory_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stores; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.stores (
    id integer NOT NULL,
    branch_id integer DEFAULT 1 NOT NULL,
    store_name character varying(100) NOT NULL,
    store_code character varying(20) NOT NULL,
    address text,
    phone character varying(20),
    email character varying(100),
    manager_name character varying(100),
    is_active boolean DEFAULT true,
    is_default boolean DEFAULT false,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.stores OWNER TO itresources;

--
-- Name: stores_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.stores ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stores_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sub_categories; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sub_categories (
    id integer NOT NULL,
    category_id integer NOT NULL,
    name character varying(100) NOT NULL,
    display_color character varying(50),
    is_active boolean DEFAULT true NOT NULL
);


ALTER TABLE public.sub_categories OWNER TO itresources;

--
-- Name: sub_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sub_categories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sub_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: subscription_plans; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.subscription_plans (
    id integer NOT NULL,
    store_id integer,
    name character varying(100) NOT NULL,
    billing_interval character varying(255) NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.subscription_plans OWNER TO itresources;

--
-- Name: subscription_plans_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.subscription_plans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.subscription_plans_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sup_outstanding; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sup_outstanding (
    id integer NOT NULL,
    purchase_id integer,
    vendor_id integer NOT NULL,
    amount numeric(10,2) NOT NULL,
    status character varying(255) DEFAULT 'unpaid'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.sup_outstanding OWNER TO itresources;

--
-- Name: sup_outstanding_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sup_outstanding ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sup_outstanding_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sup_payments; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sup_payments (
    id integer NOT NULL,
    store_id integer,
    vendor_id integer NOT NULL,
    purchase_id integer,
    balance_entry_id integer,
    amount_paid numeric(10,2) NOT NULL,
    discount_amount numeric(10,2) DEFAULT 0.00,
    withholding_rate numeric(5,2) DEFAULT 0.00,
    withholding_amount numeric(10,2) DEFAULT 0.00,
    gross_settlement_amount numeric(10,2) DEFAULT 0.00,
    net_cash_paid numeric(10,2) DEFAULT 0.00,
    payment_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    remarks character varying(255)
);


ALTER TABLE public.sup_payments OWNER TO itresources;

--
-- Name: sup_payments_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sup_payments ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sup_payments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: supplier_balance_entries; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.supplier_balance_entries (
    id integer NOT NULL,
    entry_number character varying(30) NOT NULL,
    vendor_id integer NOT NULL,
    store_id integer DEFAULT 1,
    entry_type character varying(255) DEFAULT 'payable'::character varying NOT NULL,
    amount numeric(12,2) NOT NULL,
    remaining_amount numeric(12,2) NOT NULL,
    reference_no character varying(50),
    remarks character varying(255),
    map_account_id integer,
    journal_entry_id integer,
    status character varying(255) DEFAULT 'posted'::character varying NOT NULL,
    created_by integer NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.supplier_balance_entries OWNER TO itresources;

--
-- Name: supplier_balance_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.supplier_balance_entries ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.supplier_balance_entries_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sync_conflicts; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_conflicts (
    id bigint NOT NULL,
    table_name character varying(100) NOT NULL,
    pk_value text NOT NULL,
    direction character varying(20) NOT NULL,
    branch_code character varying(50),
    conflict_type character varying(50) NOT NULL,
    local_snapshot jsonb,
    remote_snapshot jsonb,
    detected_at timestamp with time zone DEFAULT now() NOT NULL,
    resolved boolean DEFAULT false NOT NULL,
    resolved_by character varying(100),
    resolved_at timestamp with time zone,
    resolution_note text
);


ALTER TABLE public.sync_conflicts OWNER TO itresources;

--
-- Name: sync_conflicts_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

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


ALTER SEQUENCE public.sync_conflicts_id_seq OWNER TO itresources;

--
-- Name: sync_conflicts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: itresources
--

ALTER SEQUENCE public.sync_conflicts_id_seq OWNED BY public.sync_conflicts.id;


--
-- Name: sync_dead_letter; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_dead_letter (
    id bigint NOT NULL,
    job_table_id bigint,
    table_name character varying(100) NOT NULL,
    direction character varying(20) NOT NULL,
    pk_value text,
    payload jsonb,
    error_message text NOT NULL,
    error_code character varying(100),
    first_seen_at timestamp with time zone DEFAULT now() NOT NULL,
    last_seen_at timestamp with time zone DEFAULT now() NOT NULL,
    attempt_count integer DEFAULT 1 NOT NULL,
    status character varying(20) DEFAULT 'pending'::character varying NOT NULL
);


ALTER TABLE public.sync_dead_letter OWNER TO itresources;

--
-- Name: sync_dead_letter_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

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


ALTER SEQUENCE public.sync_dead_letter_id_seq OWNER TO itresources;

--
-- Name: sync_dead_letter_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: itresources
--

ALTER SEQUENCE public.sync_dead_letter_id_seq OWNED BY public.sync_dead_letter.id;


--
-- Name: sync_entity_policies; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_entity_policies (
    entity_name character varying(100) NOT NULL,
    direction_policy character varying(20) NOT NULL,
    source_of_truth character varying(20) NOT NULL,
    conflict_strategy character varying(50) DEFAULT 'upsert_on_unique'::character varying NOT NULL,
    delete_strategy character varying(50) DEFAULT 'none'::character varying NOT NULL,
    notes text,
    is_active boolean DEFAULT true NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT sync_entity_policies_direction_policy_check CHECK (((direction_policy)::text = ANY ((ARRAY['push_only'::character varying, 'pull_only'::character varying, 'bi_directional'::character varying, 'disabled'::character varying])::text[]))),
    CONSTRAINT sync_entity_policies_source_of_truth_check CHECK (((source_of_truth)::text = ANY ((ARRAY['branch'::character varying, 'cloud'::character varying, 'mixed'::character varying, 'none'::character varying])::text[])))
);


ALTER TABLE public.sync_entity_policies OWNER TO itresources;

--
-- Name: sync_job_tables; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_job_tables (
    id bigint NOT NULL,
    job_id bigint NOT NULL,
    table_name character varying(100) NOT NULL,
    direction character varying(20) NOT NULL,
    started_at timestamp with time zone DEFAULT now() NOT NULL,
    finished_at timestamp with time zone,
    rows_read bigint DEFAULT 0,
    rows_upserted bigint DEFAULT 0,
    rows_skipped bigint DEFAULT 0,
    rows_failed bigint DEFAULT 0,
    status character varying(20) DEFAULT 'running'::character varying NOT NULL,
    last_error text
);


ALTER TABLE public.sync_job_tables OWNER TO itresources;

--
-- Name: sync_job_tables_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

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


ALTER SEQUENCE public.sync_job_tables_id_seq OWNER TO itresources;

--
-- Name: sync_job_tables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: itresources
--

ALTER SEQUENCE public.sync_job_tables_id_seq OWNED BY public.sync_job_tables.id;


--
-- Name: sync_jobs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_jobs (
    id bigint NOT NULL,
    started_at timestamp with time zone DEFAULT now() NOT NULL,
    finished_at timestamp with time zone,
    direction character varying(20) NOT NULL,
    mode_label character varying(255),
    branch_code character varying(50),
    status character varying(20) DEFAULT 'running'::character varying NOT NULL,
    error_summary text
);


ALTER TABLE public.sync_jobs OWNER TO itresources;

--
-- Name: sync_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

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


ALTER SEQUENCE public.sync_jobs_id_seq OWNER TO itresources;

--
-- Name: sync_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: itresources
--

ALTER SEQUENCE public.sync_jobs_id_seq OWNED BY public.sync_jobs.id;


--
-- Name: sync_settings; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_settings (
    id integer NOT NULL,
    sync_allow boolean DEFAULT false,
    db_prefix character varying(50),
    sync_mode character varying(255) DEFAULT 'HO'::character varying,
    server_name character varying(100),
    database_name character varying(100),
    username character varying(100),
    password character varying(255),
    last_sync_date timestamp without time zone,
    sync_status character varying(255) DEFAULT 'pending'::character varying,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    is_cloud_hub boolean DEFAULT false
);


ALTER TABLE public.sync_settings OWNER TO itresources;

--
-- Name: sync_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.sync_settings ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.sync_settings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: sync_table_checkpoints; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.sync_table_checkpoints (
    id bigint NOT NULL,
    table_name character varying(100) NOT NULL,
    direction character varying(20) NOT NULL,
    branch_code character varying(50),
    last_sync_at timestamp with time zone,
    last_sync_id bigint,
    extra_cursor jsonb,
    updated_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.sync_table_checkpoints OWNER TO itresources;

--
-- Name: sync_table_checkpoints_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

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


ALTER SEQUENCE public.sync_table_checkpoints_id_seq OWNER TO itresources;

--
-- Name: sync_table_checkpoints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: itresources
--

ALTER SEQUENCE public.sync_table_checkpoints_id_seq OWNED BY public.sync_table_checkpoints.id;


--
-- Name: table_transfer_logs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.table_transfer_logs (
    id integer NOT NULL,
    source_table_id integer,
    target_table_id integer,
    hold_order_id integer,
    transferred_by integer,
    transfer_type character varying(255) DEFAULT 'transfer'::character varying NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.table_transfer_logs OWNER TO itresources;

--
-- Name: table_transfer_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.table_transfer_logs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.table_transfer_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: tax_rates; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.tax_rates (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    rate numeric(5,2) NOT NULL
);


ALTER TABLE public.tax_rates OWNER TO itresources;

--
-- Name: tax_rates_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.tax_rates ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.tax_rates_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: terminals; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.terminals (
    id integer NOT NULL,
    terminal_name character varying(100) NOT NULL,
    computer_name character varying(100),
    ip_address character varying(50),
    terminal_type character varying(50) DEFAULT 'POS'::character varying,
    branch_id integer,
    store_id integer,
    description text,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    updated_at timestamp without time zone
);


ALTER TABLE public.terminals OWNER TO itresources;

--
-- Name: terminals_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.terminals ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.terminals_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: translations; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.translations (
    id integer NOT NULL,
    language_code character varying(5) NOT NULL,
    key character varying(255) NOT NULL,
    value text NOT NULL,
    context character varying(100),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.translations OWNER TO itresources;

--
-- Name: translations_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.translations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.translations_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: uom_groups; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.uom_groups (
    id integer NOT NULL,
    code character varying(10) NOT NULL,
    name character varying(50) NOT NULL
);


ALTER TABLE public.uom_groups OWNER TO itresources;

--
-- Name: uom_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.uom_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.uom_groups_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: uoms; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.uoms (
    id integer NOT NULL,
    name character varying(50) NOT NULL,
    symbol character varying(10) NOT NULL,
    group_id integer NOT NULL,
    base_quantity numeric(10,4) DEFAULT 1.0000,
    is_base boolean DEFAULT false
);


ALTER TABLE public.uoms OWNER TO itresources;

--
-- Name: uoms_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.uoms ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.uoms_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: user_language_preferences; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.user_language_preferences (
    id integer NOT NULL,
    user_id integer NOT NULL,
    language_code character varying(5) NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.user_language_preferences OWNER TO itresources;

--
-- Name: user_language_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.user_language_preferences ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.user_language_preferences_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: users; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.users (
    id integer NOT NULL,
    assigned_store_id integer,
    default_branch_id integer DEFAULT 1 NOT NULL,
    username character varying(100) NOT NULL,
    email character varying(100),
    password character varying(255),
    role_id integer,
    is_active boolean DEFAULT true,
    last_login timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    pin character varying(10),
    profile_picture character varying(255),
    pin_required_for_void boolean DEFAULT true,
    pin_login_enabled boolean DEFAULT false NOT NULL,
    cash_access boolean DEFAULT true NOT NULL
);


ALTER TABLE public.users OWNER TO itresources;

--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.users ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.users_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: vendors; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.vendors (
    id integer NOT NULL,
    primary_store_id integer,
    name character varying(100) NOT NULL,
    contact_number character varying(20),
    email character varying(100),
    address text,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    payable_account_id integer
);


ALTER TABLE public.vendors OWNER TO itresources;

--
-- Name: vendors_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.vendors ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.vendors_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: video_help; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.video_help (
    id integer NOT NULL,
    page_name character varying(100) NOT NULL,
    page_title character varying(255) NOT NULL,
    video_url text NOT NULL,
    video_title character varying(255) NOT NULL,
    description text,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.video_help OWNER TO itresources;

--
-- Name: video_help_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.video_help ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.video_help_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: void_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.void_items (
    id integer NOT NULL,
    source_type character varying(255) NOT NULL,
    source_id integer NOT NULL,
    hold_item_id integer,
    sale_item_id integer,
    item_id integer NOT NULL,
    item_name character varying(255) NOT NULL,
    quantity numeric(12,3) NOT NULL,
    unit_price numeric(10,2) NOT NULL,
    tax_rate numeric(6,2),
    modifiers jsonb,
    remarks character varying(500),
    void_reason_id integer NOT NULL,
    voided_by integer NOT NULL,
    voided_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE public.void_items OWNER TO itresources;

--
-- Name: void_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.void_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.void_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: void_orders; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.void_orders (
    id integer NOT NULL,
    store_id integer,
    sale_id integer NOT NULL,
    void_reason_id integer NOT NULL,
    voided_by integer NOT NULL,
    voided_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    notes text,
    original_amount numeric(10,2)
);


ALTER TABLE public.void_orders OWNER TO itresources;

--
-- Name: void_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.void_orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.void_orders_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: void_reasons; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.void_reasons (
    id integer NOT NULL,
    reason_name character varying(100) NOT NULL,
    description text,
    is_active boolean DEFAULT true,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.void_reasons OWNER TO itresources;

--
-- Name: void_reasons_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.void_reasons ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.void_reasons_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: warranties; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.warranties (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    months integer DEFAULT 0 NOT NULL,
    days integer DEFAULT 0 NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE public.warranties OWNER TO itresources;

--
-- Name: warranties_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.warranties ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.warranties_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: wastage; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.wastage (
    id integer NOT NULL,
    wastage_number character varying(50) NOT NULL,
    store_id integer NOT NULL,
    branch_id integer DEFAULT 1 NOT NULL,
    wastage_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    total_items integer DEFAULT 0,
    total_wastage_value numeric(12,2) DEFAULT 0.00,
    remarks text,
    created_by integer NOT NULL,
    journal_entry_id integer,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.wastage OWNER TO itresources;

--
-- Name: wastage_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.wastage ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.wastage_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: wastage_items; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.wastage_items (
    id integer NOT NULL,
    wastage_id integer NOT NULL,
    item_id integer NOT NULL,
    item_name character varying(255) NOT NULL,
    quantity numeric(12,6) NOT NULL,
    cost_price numeric(12,4) DEFAULT 0.0000 NOT NULL,
    line_value numeric(12,2) NOT NULL,
    loss_reason character varying(100)
);


ALTER TABLE public.wastage_items OWNER TO itresources;

--
-- Name: wastage_items_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.wastage_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.wastage_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_config; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_config (
    id integer NOT NULL,
    is_enabled boolean DEFAULT false,
    invoice_format character varying(255) DEFAULT 'pdf'::character varying,
    qr_code_size integer DEFAULT 150,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_config OWNER TO itresources;

--
-- Name: zatca_config_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_config ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_config_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_invoices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_invoices (
    id integer NOT NULL,
    sale_id integer NOT NULL,
    invoice_number character varying(100) NOT NULL,
    invoice_type character varying(255) DEFAULT 'simplified'::character varying,
    invoice_date timestamp without time zone NOT NULL,
    seller_vat character varying(50),
    buyer_vat character varying(50),
    buyer_name character varying(255),
    total_amount numeric(10,2) NOT NULL,
    tax_amount numeric(10,2) NOT NULL,
    amount_excluding_tax numeric(10,2) NOT NULL,
    qr_code_data text,
    qr_code_image_url text,
    invoice_data text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_invoices OWNER TO itresources;

--
-- Name: zatca_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_invoices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_invoices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_phase2_api_logs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_phase2_api_logs (
    id bigint NOT NULL,
    zatca_phase2_invoice_id bigint,
    endpoint character varying(255) NOT NULL,
    http_method character varying(10) DEFAULT 'POST'::character varying NOT NULL,
    request_headers text,
    request_body text,
    response_status integer,
    response_headers text,
    response_body text,
    duration_ms integer,
    correlation_id character varying(255),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_phase2_api_logs OWNER TO itresources;

--
-- Name: zatca_phase2_api_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_phase2_api_logs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_phase2_api_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_phase2_certificates; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_phase2_certificates (
    id bigint NOT NULL,
    store_id integer,
    environment character varying(255) DEFAULT 'sandbox'::character varying NOT NULL,
    device_identifier character varying(150),
    certificate_type character varying(255) DEFAULT 'compliance_csid'::character varying NOT NULL,
    certificate_serial character varying(255),
    issuer_dn text,
    subject_dn text,
    valid_from timestamp without time zone,
    valid_to timestamp without time zone,
    csr_pem text,
    certificate_pem text,
    private_key_ref character varying(255),
    fingerprint_sha256 character varying(128),
    is_active boolean DEFAULT false NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_phase2_certificates OWNER TO itresources;

--
-- Name: zatca_phase2_certificates_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_phase2_certificates ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_phase2_certificates_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_phase2_device_state; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_phase2_device_state (
    id bigint NOT NULL,
    store_id integer NOT NULL,
    terminal_id integer,
    device_identifier character varying(150) NOT NULL,
    last_icv bigint DEFAULT 0 NOT NULL,
    last_invoice_uuid character(36),
    last_invoice_hash character varying(512),
    last_submission_at timestamp without time zone,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_phase2_device_state OWNER TO itresources;

--
-- Name: zatca_phase2_device_state_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_phase2_device_state ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_phase2_device_state_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_phase2_invoices; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_phase2_invoices (
    id bigint NOT NULL,
    sale_id integer NOT NULL,
    invoice_number character varying(100) NOT NULL,
    invoice_type character varying(255) DEFAULT 'simplified'::character varying NOT NULL,
    uuid character(36) NOT NULL,
    icv bigint,
    previous_invoice_hash character varying(512),
    invoice_hash character varying(512),
    unsigned_xml text,
    signed_xml text,
    canonical_xml_hash character varying(512),
    qr_tlv_base64 text,
    authority_submission_type character varying(255),
    authority_invoice_ref character varying(255),
    authority_status character varying(50),
    authority_response_code character varying(50),
    authority_response_message text,
    status character varying(255) DEFAULT 'draft'::character varying NOT NULL,
    retry_count integer DEFAULT 0 NOT NULL,
    next_retry_at timestamp without time zone,
    last_error_at timestamp without time zone,
    last_error_message text,
    submitted_at timestamp without time zone,
    cleared_at timestamp without time zone,
    reported_at timestamp without time zone,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_phase2_invoices OWNER TO itresources;

--
-- Name: zatca_phase2_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_phase2_invoices ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_phase2_invoices_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_phase2_jobs; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_phase2_jobs (
    id bigint NOT NULL,
    zatca_phase2_invoice_id bigint NOT NULL,
    job_type character varying(255) NOT NULL,
    status character varying(255) DEFAULT 'pending'::character varying NOT NULL,
    attempt_count integer DEFAULT 0 NOT NULL,
    max_attempts integer DEFAULT 8 NOT NULL,
    run_after timestamp without time zone,
    locked_at timestamp without time zone,
    locked_by character varying(100),
    last_error text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_phase2_jobs OWNER TO itresources;

--
-- Name: zatca_phase2_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_phase2_jobs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_phase2_jobs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: zatca_phase2_status_history; Type: TABLE; Schema: public; Owner: itresources
--

CREATE TABLE public.zatca_phase2_status_history (
    id bigint NOT NULL,
    zatca_phase2_invoice_id bigint NOT NULL,
    from_status character varying(50),
    to_status character varying(50) NOT NULL,
    event_source character varying(255) DEFAULT 'system'::character varying NOT NULL,
    reason_code character varying(100),
    reason_message text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.zatca_phase2_status_history OWNER TO itresources;

--
-- Name: zatca_phase2_status_history_id_seq; Type: SEQUENCE; Schema: public; Owner: itresources
--

ALTER TABLE public.zatca_phase2_status_history ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.zatca_phase2_status_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: site_installation id; Type: DEFAULT; Schema: public; Owner: itresources
--

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


--
-- Name: sync_conflicts id; Type: DEFAULT; Schema: public; Owner: itresources
--

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


--
-- Name: sync_dead_letter id; Type: DEFAULT; Schema: public; Owner: itresources
--

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


--
-- Name: sync_job_tables id; Type: DEFAULT; Schema: public; Owner: itresources
--

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


--
-- Name: sync_jobs id; Type: DEFAULT; Schema: public; Owner: itresources
--

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


--
-- Name: sync_table_checkpoints id; Type: DEFAULT; Schema: public; Owner: itresources
--

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


--
-- Data for Name: account_mappings; Type: TABLE DATA; Schema: public; Owner: itresources
--

COPY public.account_mappings (id, mapping_code, mapping_name, account_id, description, is_active, created_at, updated_at) FROM stdin;
13	ast_TaxRecoverable	Tax Recoverable	26	Input tax recoverable	t	2025-11-05 22:16:22	2025-11-05 22:16:22
14	ast_Equipment	Equipment	28	Kitchen equipment, POS systems	t	2025-11-05 22:16:22	2025-11-05 22:16:22
15	ast_Furniture	Furniture and Fixtures	29	Tables, chairs, decor	t	2025-11-05 22:16:22	2025-11-05 22:16:22
16	ast_Vehicles	Vehicles	30	Delivery vehicles	t	2025-11-05 22:16:22	2025-11-05 22:16:22
17	ast_Buildings	Buildings	31	Restaurant premises	t	2025-11-05 22:16:22	2025-11-05 22:16:22
18	ast_AccumulatedDepreciation	Accumulated Depreciation	32	Accumulated depreciation	t	2025-11-05 22:16:22	2025-11-05 22:16:22
19	lib_Supplier	Accounts Payable	34	Money owed to suppliers	t	2025-11-05 22:16:22	2025-11-05 22:16:22
20	lib_Accrued	Accrued Expenses	35	Accrued wages, utilities	t	2025-11-05 22:16:22	2025-11-05 22:16:22
21	lib_Tax	Taxes Payable	36	Sales tax, income tax	t	2025-11-05 22:16:22	2025-11-05 22:16:22
22	lib_Unearned	Unearned Revenue	37	Advance payments received	t	2025-11-05 22:16:22	2025-11-05 22:16:22
23	eqt_Investment	Owner's Investment	38	Initial and additional investments	t	2025-11-05 22:16:22	2025-11-05 22:16:22
24	eqt_RetainedEarnings	Retained Earnings	39	Accumulated profits/losses	t	2025-11-05 22:16:22	2025-11-05 22:16:22
25	eqt_CurrentYear	Current Year Earnings	40	Current year profit/loss	t	2025-11-05 22:16:22	2025-11-05 22:16:22
26	exp_Expenses	Operating Expenses	7	All operating expenses	t	2025-11-05 22:16:22	2025-11-05 22:16:22
27	exp_Payroll	Payroll Expenses	8	Wages and salaries	t	2025-11-05 22:16:22	2025-11-05 22:16:22
1	rev_Sale	Sales Revenue	1	Primary sales income	t	2025-11-05 22:16:22	2025-11-05 22:16:22
2	rev_Service	Service Income	2	Service-related income	t	2025-11-05 22:16:22	2025-11-05 22:16:22
3	rev_Discount	Sales Discount	3	Sales discounts given	t	2025-11-05 22:16:22	2025-11-05 22:16:22
4	rev_Return	Sales Return	4	Sales returns and refunds	t	2025-11-05 22:16:22	2025-11-05 22:16:22
5	rev_Other	Other Income	5	Miscellaneous income	t	2025-11-05 22:16:22	2025-11-05 22:16:22
6	exp_CostOfSales	Cost of Goods Sold	6	Direct cost of inventory sold	t	2025-11-05 22:16:22	2025-11-05 22:16:22
7	ast_Cash	Cash in Hand	20	Physical cash on hand	t	2025-11-05 22:16:22	2025-11-05 22:16:22
8	ast_Bank	Bank Accounts	21	All bank accounts	t	2025-11-05 22:16:22	2025-11-05 22:16:22
9	ast_PettyCash	Petty Cash	22	Petty cash fund	t	2025-11-05 22:16:22	2025-11-05 22:16:22
10	ast_Customer	Accounts Receivable	23	Money owed by customers	t	2025-11-05 22:16:22	2025-11-05 22:16:22
11	ast_Stock	Inventory	24	Stock and supplies	t	2025-11-05 22:16:22	2025-11-05 22:16:22
12	ast_Prepaid	Prepaid Expenses	25	Prepaid rent, insurance, etc.	t	2025-11-05 22:16:22	2025-11-05 22:16:22
28	exp_Rent	Rent Expense	9	Premises rent	t	2025-11-05 22:16:22	2025-11-05 22:16:22
29	exp_Utilities	Utilities	10	Electricity, water, gas	t	2025-11-05 22:16:22	2025-11-05 22:16:22
30	exp_Marketing	Marketing	11	Advertising and promotion	t	2025-11-05 22:16:22	2025-11-05 22:16:22
31	exp_Supplies	Supplies	12	Operating supplies	t	2025-11-05 22:16:22	2025-11-05 22:16:22
32	exp_Maintenance	Maintenance	13	Equipment maintenance	t	2025-11-05 22:16:22	2025-11-05 22:16:22
33	exp_Insurance	Insurance	14	Business insurance	t	2025-11-05 22:16:22	2025-11-05 22:16:22
34	exp_ProfessionalFees	Professional Fees	15	Legal, accounting fees	t	2025-11-05 22:16:22	2025-11-05 22:16:22
35	exp_BankCharges	Bank Charges	16	Bank fees and charges	t	2025-11-05 22:16:22	2025-11-05 22:16:22
36	exp_Depreciation	Depreciation	17	Asset depreciation	t	2025-11-05 22:16:22	2025-11-05 22:16:22
37	exp_StockLoss	Stock Loss	41	Account for tracking inventory losses and stock adjustments	t	2025-11-05 22:16:23	2025-11-05 22:16:23
38	rev_StockGain	Stock Gain	45	Revenue from inventory count increases / stock adjustments	t	2026-04-03 18:59:27	2026-04-03 18:59:27
39	ast_CardUnsettled	Card Unsettled Receipts	46	Card receipts awaiting settlement	t	2026-04-24 17:33:50	2026-04-24 17:33:50
40	rev_CashSale	Cash Sales	48	Revenue credited for cash POS sales	t	2026-06-20 22:31:44.535898	2026-06-20 22:31:44.535898
41	rev_CardSale	Card Sales	49	Default revenue credited for card/QR POS sales	t	2026-06-20 22:31:44.5422	2026-06-20 22:31:44.5422
42	ast_AdvanceTax	Advance Income Tax	50	Advance income tax withheld on supplier purchases	t	2026-06-20 22:31:44.569326	2026-06-20 22:31:44.569326
43	ast_POSCash	Cash in Register (POS)	51	POS drawer / till cash during shift	t	2026-07-07 16:48:47.902187	2026-07-07 16:48:47.902187
44	exp_CashOverShort	Cash Over / Short	43	Shift close cash shortage (debit) or overage (credit)	t	2026-07-07 16:48:47.913147	2026-07-07 16:48:47.913147
45	exp_BankAdjustments	Bank Adjustments	52	Bank balance reconciliation adjustments	t	2026-07-07 16:48:47.954096	2026-07-07 16:48:47.954096
\.


--
-- Data for Name: account_transactions; Type: TABLE DATA; Schema: public; Owner: itresources
--

COPY public.account_transactions (id, store_id, branch_id, sale_id, account_type, account_id, cheque_id, card_type_id, card_last_four, card_transaction_ref, is_reconciled, amount, tip_amount, description, created_at) FROM stdin;
381	4	2	376	cash	\N	\N	\N	\N	\N	f	220.50	0.00	Cash payment for invoice INV-002267	2026-07-10 09:34:19.630359
387	4	2	382	card	\N	\N	1	\N	\N	f	160.00	0.00	Card payment for invoice INV-002275	2026-07-10 10:43:16.469732
393	4	2	388	card	\N	\N	1	\N	\N	f	60.00	0.00	Card payment for invoice INV-002283	2026-07-10 11:16:20.264589
399	4	2	394	cash	\N	\N	\N	\N	\N	f	810.90	0.00	Cash payment for invoice INV-002289	2026-07-10 11:21:56.611418
405	4	2	400	cash	\N	\N	\N	\N	\N	f	1680.00	0.00	Cash payment for invoice INV-002295	2026-07-10 12:00:43.710632
411	4	2	406	cash	\N	\N	\N	\N	\N	f	2149.00	0.00	Cash payment for invoice INV-002297	2026-07-10 12:19:49.471529
417	4	2	412	card	\N	\N	1	\N	\N	f	243.95	0.00	Card payment for invoice INV-002310	2026-07-10 12:32:26.249693
423	4	2	418	cash	\N	\N	\N	\N	\N	f	370.00	0.00	Cash payment for invoice INV-002316	2026-07-10 13:48:15.666955
429	4	2	424	card	\N	\N	1	\N	\N	f	120.00	0.00	Card payment for invoice INV-002322	2026-07-10 14:05:03.667684
435	4	2	430	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002328	2026-07-10 14:13:25.930393
441	4	2	436	card	\N	\N	1	\N	\N	f	522.25	0.00	Card payment for invoice INV-002334	2026-07-10 14:22:42.593564
447	4	2	442	card	\N	\N	1	\N	\N	f	590.00	0.00	Card payment for invoice INV-002340	2026-07-10 14:28:47.490561
453	4	2	448	card	\N	\N	1	\N	\N	f	200.00	0.00	Card payment for invoice INV-002346	2026-07-10 14:42:56.711423
459	4	2	454	card	\N	\N	1	\N	\N	f	610.00	0.00	Card payment for invoice INV-002352	2026-07-10 14:53:47.536296
465	4	2	460	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002358	2026-07-10 15:05:20.740081
471	4	2	466	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002364	2026-07-10 15:14:00.88375
477	4	2	472	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002371	2026-07-10 15:39:25.517824
483	4	2	478	card	\N	\N	1	\N	\N	f	70.00	0.00	Card payment for invoice INV-002377	2026-07-10 15:47:29.93492
489	4	2	484	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002383	2026-07-10 15:59:41.918092
495	4	2	489	cash	\N	\N	\N	\N	\N	f	1030.00	0.00	Cash payment for invoice INV-002389	2026-07-10 16:18:00.68057
501	4	2	494	card	\N	\N	1	\N	\N	f	600.00	0.00	Card payment for invoice INV-002402	2026-07-10 16:27:28.018248
507	4	2	500	cash	\N	\N	\N	\N	\N	f	10000.00	0.00	Cash payment for invoice INV-002410	2026-07-10 16:33:24.990593
513	4	2	506	card	\N	\N	1	\N	\N	f	460.00	0.00	Card payment for invoice INV-002423	2026-07-10 16:52:22.790545
519	4	2	512	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-002433	2026-07-10 16:58:56.577579
525	4	2	518	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-002439	2026-07-10 17:17:42.909918
308	4	2	306	card	\N	\N	1	5860	\N	f	135.00	0.00	BAHL payment (****5860) for invoice INV-002191	2026-07-10 00:56:45.249433
314	4	2	312	cash	\N	\N	\N	\N	\N	f	1530.00	0.00	Cash payment for invoice INV-002154	2026-07-10 01:20:54.558572
320	4	2	318	cash	\N	\N	\N	\N	\N	f	900.00	0.00	Cash payment for invoice INV-002199	2026-07-10 01:35:37.796846
326	4	2	324	card	\N	\N	3	\N	WYC2-2628-12QH	f	690.00	0.00	Card payment for invoice INV-002212	2026-07-10 01:56:38.170229
332	4	2	330	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002218	2026-07-10 02:05:39.669411
338	4	2	336	cash	\N	\N	\N	\N	\N	f	108.00	0.00	Cash payment for invoice INV-002224	2026-07-10 02:08:16.160105
344	4	2	342	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-002230	2026-07-10 02:11:17.019518
350	4	2	348	card	\N	\N	1	\N	\N	f	125.00	0.00	Card payment for invoice INV-002236	2026-07-10 02:13:57.462435
356	4	2	354	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002242	2026-07-10 02:17:30.492577
362	4	2	360	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002248	2026-07-10 02:20:34.020654
368	4	2	366	card	\N	\N	1	\N	\N	f	1030.00	0.00	Card payment for invoice INV-002254	2026-07-10 02:23:21.278657
374	4	2	371	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-002259	2026-07-10 02:31:41.592738
530	4	2	523	card	\N	\N	1	\N	\N	f	1053.45	0.00	Card payment for invoice INV-002445	2026-07-10 17:28:16.200283
536	4	2	529	card	\N	\N	1	\N	\N	f	480.00	0.00	Card payment for invoice INV-002451	2026-07-10 17:39:35.622196
542	4	2	535	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002463	2026-07-10 17:45:34.918502
548	4	2	541	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002471	2026-07-10 17:55:09.239147
554	4	2	547	card	\N	\N	1	\N	\N	f	630.00	0.00	Card payment for invoice INV-002477	2026-07-10 18:02:21.18387
560	4	2	553	card	\N	\N	1	\N	\N	f	150.00	0.00	Card payment for invoice INV-002487	2026-07-10 18:15:17.540653
566	4	2	559	card	\N	\N	1	\N	\N	f	1475.00	0.00	Card payment for invoice INV-002497	2026-07-10 18:31:29.852146
572	4	2	565	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002507	2026-07-10 18:37:49.649913
578	4	2	571	card	\N	\N	1	\N	\N	f	1176.80	0.00	Card payment for invoice INV-002515	2026-07-10 18:50:12.294285
584	4	2	577	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002526	2026-07-10 19:02:26.473278
589	4	2	582	cash	\N	\N	\N	\N	\N	f	140.00	0.00	Cash payment for invoice INV-002534	2026-07-10 19:11:19.018516
594	4	2	587	cash	\N	\N	\N	\N	\N	f	800.00	0.00	Cash payment for invoice INV-002543	2026-07-10 19:19:38.545919
599	4	2	592	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-002538	2026-07-10 19:24:43.302486
603	4	2	596	card	\N	\N	1	\N	\N	f	1870.00	0.00	Card payment for invoice INV-002558	2026-07-10 19:29:09.926306
607	4	2	600	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002563	2026-07-10 19:38:17.65489
611	4	2	604	card	\N	\N	1	\N	\N	f	961.00	0.00	Card payment for invoice INV-002569	2026-07-10 19:47:38.70558
615	4	2	608	cash	\N	\N	\N	\N	\N	f	80.00	0.00	Cash payment for invoice INV-002572	2026-07-10 19:50:24.05427
619	4	2	612	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002580	2026-07-10 20:06:07.08011
623	4	2	616	cash	\N	\N	\N	\N	\N	f	2877.00	0.00	Cash payment for invoice INV-002575	2026-07-10 20:11:03.174252
627	4	2	620	card	\N	\N	1	\N	\N	f	5200.75	0.00	Card payment for invoice INV-002588	2026-07-10 20:18:22.026642
631	4	2	624	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002593	2026-07-10 20:21:20.62021
635	4	2	628	cash	\N	\N	\N	\N	\N	f	560.00	0.00	Cash payment for invoice INV-002597	2026-07-10 20:24:24.426314
639	4	2	632	card	\N	\N	1	\N	\N	f	640.65	0.00	Card payment for invoice INV-002601	2026-07-10 20:28:43.703201
643	4	2	636	cash	\N	\N	\N	\N	\N	f	529.55	0.00	Cash payment for invoice INV-002589	2026-07-10 20:33:00.417276
647	4	2	640	cash	\N	\N	\N	\N	\N	f	2070.00	0.00	Cash payment for invoice INV-002609	2026-07-10 20:38:34.145492
651	4	2	644	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002617	2026-07-10 20:50:40.507808
654	4	2	647	cash	\N	\N	\N	\N	\N	f	195.00	0.00	Cash payment for invoice INV-002620	2026-07-10 20:56:16.311642
657	4	2	650	cash	\N	\N	\N	\N	\N	f	961.95	0.00	Cash payment for invoice INV-002415	2026-07-10 20:59:02.555937
660	4	2	653	card	\N	\N	1	\N	\N	f	1362.20	0.00	Card payment for invoice INV-002622	2026-07-10 21:00:58.929632
663	4	2	656	cash	\N	\N	\N	\N	\N	f	2249.00	0.00	Cash payment for invoice INV-002476	2026-07-10 21:02:06.818644
382	4	2	377	card	\N	\N	1	\N	\N	f	850.00	0.00	Card payment for invoice INV-002269	2026-07-10 10:05:10.856151
388	4	2	383	card	\N	\N	1	\N	\N	f	810.00	0.00	Card payment for invoice INV-002277	2026-07-10 10:48:44.811896
394	4	2	389	card	\N	\N	1	\N	\N	f	230.00	0.00	Card payment for invoice INV-002284	2026-07-10 11:17:02.556308
400	4	2	395	card	\N	\N	1	\N	\N	f	859.99	0.00	Card payment for invoice INV-002290	2026-07-10 11:32:25.553099
406	4	2	401	card	\N	\N	1	\N	\N	f	1160.00	0.00	Card payment for invoice INV-002298	2026-07-10 12:06:03.210035
412	4	2	407	cash	\N	\N	\N	\N	\N	f	3579.15	0.00	Cash payment for invoice INV-002305	2026-07-10 12:26:12.027427
418	4	2	413	card	\N	\N	1	\N	\N	f	1100.00	0.00	Card payment for invoice INV-002311	2026-07-10 12:41:59.61976
424	4	2	419	card	\N	\N	1	\N	\N	f	1110.00	0.00	Card payment for invoice INV-002317	2026-07-10 13:53:25.942122
430	4	2	425	cash	\N	\N	\N	\N	\N	f	500.00	0.00	Cash payment for invoice INV-002323	2026-07-10 14:05:28.857526
436	4	2	431	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002329	2026-07-10 14:14:55.81248
442	4	2	437	card	\N	\N	1	\N	\N	f	100.00	0.00	Card payment for invoice INV-002335	2026-07-10 14:23:33.317921
448	4	2	443	cash	\N	\N	\N	\N	\N	f	440.00	0.00	Cash payment for invoice INV-002341	2026-07-10 14:29:12.479614
454	4	2	449	cash	\N	\N	\N	\N	\N	f	500.00	0.00	Cash payment for invoice INV-002347	2026-07-10 14:43:56.507568
460	4	2	455	cash	\N	\N	\N	\N	\N	f	580.00	0.00	Cash payment for invoice INV-002353	2026-07-10 14:54:33.454651
466	4	2	461	card	\N	\N	1	\N	\N	f	420.00	0.00	Card payment for invoice INV-002359	2026-07-10 15:06:52.681725
472	4	2	467	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002366	2026-07-10 15:23:51.394772
478	4	2	473	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002372	2026-07-10 15:40:00.188631
484	4	2	479	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002378	2026-07-10 15:52:12.398059
490	4	2	485	cash	\N	\N	\N	\N	\N	f	650.95	0.00	Cash payment for invoice INV-002365	2026-07-10 16:01:25.822134
496	4	2	490	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002390	2026-07-10 16:18:32.837049
502	4	2	495	card	\N	\N	1	\N	\N	f	906.30	0.00	Card payment for invoice INV-002394	2026-07-10 16:27:46.06253
508	4	2	501	card	\N	\N	1	\N	\N	f	8525.00	0.00	Card payment for invoice INV-002412	2026-07-10 16:34:15.153601
514	4	2	507	card	\N	\N	1	\N	\N	f	795.00	0.00	Card payment for invoice INV-002425	2026-07-10 16:53:25.025407
520	4	2	513	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002434	2026-07-10 17:05:27.98291
526	4	2	519	cash	\N	\N	\N	\N	\N	f	90.00	0.00	Cash payment for invoice INV-002441	2026-07-10 17:20:54.955132
309	4	2	307	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002192	2026-07-10 01:09:22.759041
315	4	2	313	cash	\N	\N	\N	\N	\N	f	3699.00	0.00	Cash payment for invoice INV-002148	2026-07-10 01:21:20.699556
321	4	2	319	card	\N	\N	3	\N	WYC2-2628-JWXW	f	600.00	0.00	Card payment for invoice INV-002207	2026-07-10 01:46:21.430143
327	4	2	325	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002213	2026-07-10 01:57:31.02797
333	4	2	331	cash	\N	\N	\N	\N	\N	f	750.00	0.00	Cash payment for invoice INV-002219	2026-07-10 02:06:08.301447
339	4	2	337	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002225	2026-07-10 02:08:25.241207
345	4	2	343	card	\N	\N	1	\N	\N	f	640.00	0.00	Card payment for invoice INV-002231	2026-07-10 02:11:55.418984
351	4	2	349	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002237	2026-07-10 02:14:09.681182
357	4	2	355	card	\N	\N	1	\N	\N	f	1559.00	0.00	Card payment for invoice INV-002243	2026-07-10 02:18:14.117434
363	4	2	361	cash	\N	\N	\N	\N	\N	f	153.00	0.00	Cash payment for invoice INV-002249	2026-07-10 02:20:54.609262
369	4	2	367	cash	\N	\N	\N	\N	\N	f	1773.95	0.00	Cash payment for invoice INV-002205	2026-07-10 02:24:01.211976
375	4	2	372	cash	\N	\N	\N	\N	\N	f	130.00	0.00	Cash payment for invoice INV-002260	2026-07-10 02:35:18.426268
531	4	2	524	cash	\N	\N	\N	\N	\N	f	1000.00	0.00	Cash payment for invoice INV-002448	2026-07-10 17:29:01.893587
537	4	2	530	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002456	2026-07-10 17:39:42.07638
543	4	2	536	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002464	2026-07-10 17:48:44.693264
549	4	2	542	cash	\N	\N	\N	\N	\N	f	260.00	0.00	Cash payment for invoice INV-002473	2026-07-10 17:56:10.824276
555	4	2	548	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-002482	2026-07-10 18:06:57.3972
561	4	2	554	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002490	2026-07-10 18:16:57.111223
567	4	2	560	card	\N	\N	1	\N	\N	f	1009.62	0.00	Card payment for invoice INV-002496	2026-07-10 18:32:23.239386
573	4	2	566	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-002508	2026-07-10 18:38:34.045962
579	4	2	572	card	\N	\N	1	\N	\N	f	703.00	0.00	Card payment for invoice INV-002517	2026-07-10 18:53:02.730392
585	4	2	578	card	\N	\N	1	\N	\N	f	5012.00	0.00	Card payment for invoice INV-002528	2026-07-10 19:06:52.622921
590	4	2	583	cash	\N	\N	\N	\N	\N	f	140.00	0.00	Cash payment for invoice INV-002536	2026-07-10 19:12:12.511123
595	4	2	588	card	\N	\N	1	\N	\N	f	550.00	0.00	Card payment for invoice INV-002545	2026-07-10 19:20:43.511959
600	4	2	593	cash	\N	\N	\N	\N	\N	f	1000.00	0.00	Cash payment for invoice INV-002553	2026-07-10 19:25:45.212505
604	4	2	597	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002560	2026-07-10 19:30:28.985391
608	4	2	601	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002564	2026-07-10 19:39:31.57177
612	4	2	605	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002570	2026-07-10 19:48:24.649454
616	4	2	609	card	\N	\N	1	\N	\N	f	360.00	0.00	Card payment for invoice INV-002576	2026-07-10 19:57:10.274752
620	4	2	613	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-002582	2026-07-10 20:06:50.139803
624	4	2	617	card	\N	\N	1	\N	\N	f	390.00	0.00	Card payment for invoice INV-002585	2026-07-10 20:13:04.983358
628	4	2	621	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002590	2026-07-10 20:19:14.588562
632	4	2	625	cash	\N	\N	\N	\N	\N	f	1995.00	0.00	Cash payment for invoice INV-002594	2026-07-10 20:22:17.790088
636	4	2	629	cash	\N	\N	\N	\N	\N	f	430.00	0.00	Cash payment for invoice INV-002598	2026-07-10 20:25:40.24287
640	4	2	633	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-002602	2026-07-10 20:29:14.683278
644	4	2	637	cash	\N	\N	\N	\N	\N	f	1690.00	0.00	Cash payment for invoice INV-002605	2026-07-10 20:33:20.842321
648	4	2	641	cash	\N	\N	\N	\N	\N	f	789.00	0.00	Cash payment for invoice INV-002610	2026-07-10 20:41:36.86881
652	4	2	645	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002618	2026-07-10 20:54:35.673713
655	4	2	648	cash	\N	\N	\N	\N	\N	f	4200.00	0.00	Cash payment for invoice INV-002411	2026-07-10 20:56:54.253981
658	4	2	651	cash	\N	\N	\N	\N	\N	f	230.00	0.00	Cash payment for invoice INV-002625	2026-07-10 20:59:48.969051
661	4	2	654	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002628	2026-07-10 21:01:17.642092
664	4	2	657	cash	\N	\N	\N	\N	\N	f	4348.00	0.00	Cash payment for invoice INV-002514	2026-07-10 21:02:31.19711
666	4	2	659	cash	\N	\N	\N	\N	\N	f	2000.00	0.00	Cash payment for invoice INV-002530	2026-07-10 21:03:53.935003
376	4	2	\N	cash	\N	\N	\N	\N	\N	f	-104729.94	0.00	Shift #3 close — transfer to Cash in Hand - Clear POS drawer — shift #3 close (JE #379)	2026-07-10 00:00:00
377	4	2	\N	cash	\N	\N	\N	\N	\N	f	104070.00	0.00	Shift #3 close — transfer to Cash in Hand - Verified cash counted — shift #3 close (JE #379)	2026-07-10 00:00:00
383	4	2	378	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002270	2026-07-10 10:22:20.836904
389	4	2	384	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002278	2026-07-10 10:58:41.939787
395	4	2	390	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002285	2026-07-10 11:17:51.405471
401	4	2	396	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002291	2026-07-10 11:40:18.965495
407	4	2	402	cash	\N	\N	\N	\N	\N	f	187.10	0.00	Cash payment for invoice INV-002299	2026-07-10 12:06:47.760265
413	4	2	408	cash	\N	\N	\N	\N	\N	f	760.00	0.00	Cash payment for invoice INV-002306	2026-07-10 12:26:48.005867
419	4	2	414	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002312	2026-07-10 12:43:46.50161
425	4	2	420	card	\N	\N	1	\N	\N	f	2942.95	0.00	Card payment for invoice INV-002318	2026-07-10 13:57:09.710687
431	4	2	426	card	\N	\N	1	\N	\N	f	665.35	0.00	Card payment for invoice INV-002324	2026-07-10 14:07:20.386653
437	4	2	432	card	\N	\N	1	\N	\N	f	1595.00	0.00	Card payment for invoice INV-002330	2026-07-10 14:16:22.133272
443	4	2	438	card	\N	\N	1	\N	\N	f	200.00	0.00	Card payment for invoice INV-002336	2026-07-10 14:25:01.013255
449	4	2	444	cash	\N	\N	\N	\N	\N	f	430.00	0.00	Cash payment for invoice INV-002342	2026-07-10 14:35:40.160943
455	4	2	450	card	\N	\N	1	\N	\N	f	430.00	0.00	Card payment for invoice INV-002348	2026-07-10 14:47:26.97104
461	4	2	456	card	\N	\N	1	\N	\N	f	696.15	0.00	Card payment for invoice INV-002354	2026-07-10 14:55:37.581054
467	4	2	462	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002360	2026-07-10 15:08:04.318113
473	4	2	468	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-002367	2026-07-10 15:27:06.514977
479	4	2	474	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002373	2026-07-10 15:40:32.024157
485	4	2	480	cash	\N	\N	\N	\N	\N	f	435.00	0.00	Cash payment for invoice INV-002379	2026-07-10 15:53:26.575848
491	4	2	486	card	\N	\N	1	\N	\N	f	560.00	0.00	Card payment for invoice INV-002385	2026-07-10 16:04:21.778455
497	4	2	491	card	\N	\N	1	\N	\N	f	698.80	0.00	Card payment for invoice INV-002391	2026-07-10 16:19:47.752911
503	4	2	496	card	\N	\N	1	\N	\N	f	1280.00	0.00	Card payment for invoice INV-002403	2026-07-10 16:28:57.100649
509	4	2	502	cash	\N	\N	\N	\N	\N	f	1203.12	0.00	Cash payment for invoice INV-002414	2026-07-10 16:39:17.949929
515	4	2	508	cash	\N	\N	\N	\N	\N	f	700.00	0.00	Cash payment for invoice INV-002418	2026-07-10 16:54:47.91035
521	4	2	514	card	\N	\N	1	\N	\N	f	560.00	0.00	Card payment for invoice INV-002435	2026-07-10 17:06:53.256337
310	4	2	308	cash	\N	\N	\N	\N	\N	f	600.00	0.00	Cash payment for invoice INV-002190	2026-07-10 01:17:11.274699
316	4	2	314	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002200	2026-07-10 01:27:28.769728
322	4	2	320	card	\N	\N	3	\N	WYC2-2628-AKTC	f	870.50	0.00	Card payment for invoice INV-002208	2026-07-10 01:49:00.364439
328	4	2	326	card	\N	\N	3	\N	WYC2-2628-3GY6	f	3000.00	0.00	Card payment for invoice INV-002214	2026-07-10 01:58:54.263891
334	4	2	332	cash	\N	\N	\N	\N	\N	f	640.00	0.00	Cash payment for invoice INV-002220	2026-07-10 02:06:34.890485
340	4	2	338	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002226	2026-07-10 02:08:34.184143
346	4	2	344	card	\N	\N	1	\N	\N	f	579.00	0.00	Card payment for invoice INV-002232	2026-07-10 02:12:23.274052
352	4	2	350	cash	\N	\N	\N	\N	\N	f	640.00	0.00	Cash payment for invoice INV-002238	2026-07-10 02:14:30.52309
358	4	2	356	cash	\N	\N	\N	\N	\N	f	1720.00	0.00	Cash payment for invoice INV-002244	2026-07-10 02:18:52.2722
364	4	2	362	card	\N	\N	1	\N	\N	f	1201.50	0.00	Card payment for invoice INV-002250	2026-07-10 02:21:30.180076
370	4	2	368	cash	\N	\N	\N	\N	\N	f	1450.00	0.00	Cash payment for invoice INV-002256	2026-07-10 02:29:28.362661
354	4	2	352	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002240	2026-07-10 02:15:00.537693
360	4	2	358	cash	\N	\N	\N	\N	\N	f	1005.00	0.00	Cash payment for invoice INV-002246	2026-07-10 02:19:43.20379
366	4	2	364	cash	\N	\N	\N	\N	\N	f	705.00	0.00	Cash payment for invoice INV-002252	2026-07-10 02:22:21.824958
372	4	2	370	cash	\N	\N	\N	\N	\N	f	650.00	0.00	Cash payment for invoice INV-002258	2026-07-10 02:31:01.607872
532	4	2	525	cash	\N	\N	\N	\N	\N	f	635.10	0.00	Cash payment for invoice INV-002449	2026-07-10 17:32:09.427705
538	4	2	531	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002459	2026-07-10 17:40:21.273061
544	4	2	537	cash	\N	\N	\N	\N	\N	f	929.45	0.00	Cash payment for invoice INV-002465	2026-07-10 17:49:55.044455
550	4	2	543	card	\N	\N	1	\N	\N	f	2150.00	0.00	Card payment for invoice INV-002475	2026-07-10 17:57:10.850015
556	4	2	549	card	\N	\N	1	\N	\N	f	441.00	0.00	Card payment for invoice INV-002483	2026-07-10 18:08:40.303351
562	4	2	555	card	\N	\N	1	\N	\N	f	439.15	0.00	Card payment for invoice INV-002491	2026-07-10 18:18:11.096371
568	4	2	561	card	\N	\N	1	\N	\N	f	290.00	0.00	Card payment for invoice INV-002499	2026-07-10 18:32:36.308119
574	4	2	567	cash	\N	\N	\N	\N	\N	f	1160.00	0.00	Cash payment for invoice INV-002500	2026-07-10 18:42:32.79712
580	4	2	573	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-002519	2026-07-10 18:53:35.007467
586	4	2	579	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-002531	2026-07-10 19:08:38.640351
591	4	2	584	cash	\N	\N	\N	\N	\N	f	1760.50	0.00	Cash payment for invoice INV-002537	2026-07-10 19:12:49.924307
596	4	2	589	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002547	2026-07-10 19:22:51.325778
601	4	2	594	card	\N	\N	1	\N	\N	f	509.15	0.00	Card payment for invoice INV-002554	2026-07-10 19:26:18.042374
605	4	2	598	card	\N	\N	1	\N	\N	f	1730.00	0.00	Card payment for invoice INV-002555	2026-07-10 19:30:43.183753
609	4	2	602	cash	\N	\N	\N	\N	\N	f	1557.15	0.00	Cash payment for invoice INV-002566	2026-07-10 19:43:24.776711
613	4	2	606	cash	\N	\N	\N	\N	\N	f	15.00	0.00	Cash payment for invoice INV-002568	2026-07-10 19:49:17.875679
617	4	2	610	cash	\N	\N	\N	\N	\N	f	2099.00	0.00	Cash payment for invoice INV-002577	2026-07-10 19:58:28.851179
621	4	2	614	card	\N	\N	1	\N	\N	f	684.50	0.00	Card payment for invoice INV-002583	2026-07-10 20:09:29.090693
625	4	2	618	cash	\N	\N	\N	\N	\N	f	2250.00	0.00	Cash payment for invoice INV-002587	2026-07-10 20:16:13.462741
629	4	2	622	card	\N	\N	1	\N	\N	f	400.00	0.00	Card payment for invoice INV-002591	2026-07-10 20:19:50.811294
633	4	2	626	cash	\N	\N	\N	\N	\N	f	360.00	0.00	Cash payment for invoice INV-002595	2026-07-10 20:23:04.32962
637	4	2	630	card	\N	\N	1	\N	\N	f	150.00	0.00	Card payment for invoice INV-002599	2026-07-10 20:26:39.548709
641	4	2	634	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-002603	2026-07-10 20:29:45.945275
645	4	2	638	card	\N	\N	1	5478	\N	f	440.00	0.00	BAHL payment (****5478) for invoice INV-002606	2026-07-10 20:35:02.760802
649	4	2	642	card	\N	\N	1	\N	\N	f	600.00	0.00	Card payment for invoice INV-002614	2026-07-10 20:48:03.79914
378	4	2	373	card	\N	\N	1	\N	\N	f	290.00	0.00	Card payment for invoice INV-002264	2026-07-10 07:55:33.113398
384	4	2	379	cash	\N	\N	\N	\N	\N	f	770.00	0.00	Cash payment for invoice INV-002271	2026-07-10 10:26:57.692348
390	4	2	385	card	\N	\N	1	\N	\N	f	696.00	0.00	Card payment for invoice INV-002279	2026-07-10 10:59:43.94868
396	4	2	391	cash	\N	\N	\N	\N	\N	f	360.00	0.00	Cash payment for invoice INV-002286	2026-07-10 11:19:31.359176
402	4	2	397	cash	\N	\N	\N	\N	\N	f	670.00	0.00	Cash payment for invoice INV-002292	2026-07-10 11:47:42.754867
408	4	2	403	cash	\N	\N	\N	\N	\N	f	390.00	0.00	Cash payment for invoice INV-002300	2026-07-10 12:08:37.57181
414	4	2	409	card	\N	\N	1	\N	\N	f	685.45	0.00	Card payment for invoice INV-002307	2026-07-10 12:27:32.374155
420	4	2	415	cash	\N	\N	\N	\N	\N	f	1943.85	0.00	Cash payment for invoice INV-002313	2026-07-10 12:51:22.781385
426	4	2	421	card	\N	\N	1	\N	\N	f	732.85	0.00	Card payment for invoice INV-002319	2026-07-10 14:00:56.574285
432	4	2	427	card	\N	\N	1	\N	\N	f	297.50	0.00	Card payment for invoice INV-002325	2026-07-10 14:10:40.895194
438	4	2	433	card	\N	\N	1	\N	\N	f	610.00	0.00	Card payment for invoice INV-002331	2026-07-10 14:18:19.485105
444	4	2	439	cash	\N	\N	\N	\N	\N	f	2399.00	0.00	Cash payment for invoice INV-002337	2026-07-10 14:25:55.295318
450	4	2	445	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-002343	2026-07-10 14:37:04.338666
456	4	2	451	cash	\N	\N	\N	\N	\N	f	324.00	0.00	Cash payment for invoice INV-002349	2026-07-10 14:48:16.921963
462	4	2	457	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002355	2026-07-10 14:56:29.659348
468	4	2	463	cash	\N	\N	\N	\N	\N	f	260.00	0.00	Cash payment for invoice INV-002361	2026-07-10 15:09:47.455689
474	4	2	469	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002368	2026-07-10 15:27:47.508283
480	4	2	475	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002374	2026-07-10 15:42:12.369136
486	4	2	481	card	\N	\N	1	\N	\N	f	290.00	0.00	Card payment for invoice INV-002380	2026-07-10 15:54:29.422815
492	4	1	\N	cash	\N	\N	\N	\N	\N	f	-450.00	0.00	Cash refund for quick sale return #3	2026-07-10 16:09:04.732549
498	4	2	492	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002392	2026-07-10 16:20:08.840466
504	4	2	497	cash	\N	\N	\N	\N	\N	f	396.00	0.00	Cash payment for invoice INV-002405	2026-07-10 16:29:33.756558
510	4	2	503	cash	\N	\N	\N	\N	\N	f	557.75	0.00	Cash payment for invoice INV-002416	2026-07-10 16:39:50.237731
516	4	2	509	cash	\N	\N	\N	\N	\N	f	1017.60	0.00	Cash payment for invoice INV-002427	2026-07-10 16:56:19.327242
522	4	2	515	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-002436	2026-07-10 17:08:05.183124
311	4	2	309	cash	\N	\N	\N	\N	\N	f	1730.00	0.00	Cash payment for invoice INV-002165	2026-07-10 01:17:29.860121
317	4	2	315	card	\N	\N	3	2350	WYC2-2628-E1SY	f	1118.50	0.00	foodpanda payment (****2350) for invoice INV-002201 - Ref: WYC2-2628-E1SY	2026-07-10 01:31:10.761293
323	4	2	321	card	\N	\N	3	\N	WYC2-2628-IZI5	f	1679.00	0.00	Card payment for invoice INV-002209	2026-07-10 01:50:16.597103
329	4	2	327	card	\N	\N	3	\N	WYC2-2628-50JC	f	2100.00	0.00	Card payment for invoice INV-002215	2026-07-10 02:00:28.09077
335	4	2	333	card	\N	\N	1	\N	\N	f	490.00	0.00	Card payment for invoice INV-002221	2026-07-10 02:07:04.73825
341	4	2	339	card	\N	\N	1	\N	\N	f	1144.00	0.00	Card payment for invoice INV-002227	2026-07-10 02:09:09.844649
347	4	2	345	card	\N	\N	1	\N	\N	f	150.00	0.00	Card payment for invoice INV-002233	2026-07-10 02:12:50.275378
353	4	2	351	card	\N	\N	1	\N	\N	f	267.00	0.00	Card payment for invoice INV-002239	2026-07-10 02:14:51.992984
359	4	2	357	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002245	2026-07-10 02:19:04.750205
365	4	2	363	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002251	2026-07-10 02:21:43.745981
371	4	2	369	cash	\N	\N	\N	\N	\N	f	1880.00	0.00	Cash payment for invoice INV-002257	2026-07-10 02:30:36.248008
527	4	2	520	card	\N	\N	1	\N	\N	f	910.00	0.00	Card payment for invoice INV-002443	2026-07-10 17:26:34.529109
533	4	2	526	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002450	2026-07-10 17:33:09.790601
539	4	2	532	card	\N	\N	1	\N	\N	f	460.00	0.00	Card payment for invoice INV-002457	2026-07-10 17:42:17.684449
545	4	2	538	card	\N	\N	1	\N	\N	f	166.00	0.00	Card payment for invoice INV-002467	2026-07-10 17:51:43.887107
551	4	2	544	card	\N	\N	1	\N	\N	f	480.00	0.00	Card payment for invoice INV-002472	2026-07-10 18:00:39.117533
557	4	2	550	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002486	2026-07-10 18:11:19.994848
563	4	2	556	cash	\N	\N	\N	\N	\N	f	800.00	0.00	Cash payment for invoice INV-002489	2026-07-10 18:20:42.322328
569	4	2	562	card	\N	\N	1	\N	\N	f	1590.00	0.00	Card payment for invoice INV-002503	2026-07-10 18:33:20.79957
575	4	2	568	card	\N	\N	3	\N	wyc2-2628-as2e	f	680.00	0.00	Card payment for invoice INV-002510	2026-07-10 18:43:11.539277
581	4	2	574	card	\N	\N	3	\N	wyc2-2628-kr6i	f	690.00	0.00	Card payment for invoice INV-002516	2026-07-10 18:55:56.790436
587	4	2	580	card	\N	\N	1	\N	\N	f	760.00	0.00	Card payment for invoice INV-002532	2026-07-10 19:10:23.501137
592	4	2	585	cash	\N	\N	\N	\N	\N	f	1840.00	0.00	Cash payment for invoice INV-002539	2026-07-10 19:16:00.713616
597	4	2	590	card	\N	\N	1	\N	\N	f	3480.00	0.00	Card payment for invoice INV-002549	2026-07-10 19:24:10.60014
602	4	2	595	card	\N	\N	1	\N	\N	f	750.00	0.00	Card payment for invoice INV-002552	2026-07-10 19:27:43.699637
606	4	2	599	card	\N	\N	1	\N	\N	f	452.20	0.00	Card payment for invoice INV-002562	2026-07-10 19:36:15.916962
610	4	2	603	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002561	2026-07-10 19:45:26.507276
614	4	2	607	card	\N	\N	1	\N	\N	f	450.00	0.00	Card payment for invoice INV-002574	2026-07-10 19:50:00.345369
618	4	2	611	cash	\N	\N	\N	\N	\N	f	1451.00	0.00	Cash payment for invoice INV-002578	2026-07-10 20:00:37.199203
622	4	2	615	cash	\N	\N	\N	\N	\N	f	900.00	0.00	Cash payment for invoice INV-002584	2026-07-10 20:09:52.840714
626	4	2	619	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002586	2026-07-10 20:17:42.150294
630	4	2	623	cash	\N	\N	\N	\N	\N	f	80.00	0.00	Cash payment for invoice INV-002592	2026-07-10 20:21:00.312159
634	4	2	627	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002596	2026-07-10 20:23:34.438314
638	4	2	631	cash	\N	\N	\N	\N	\N	f	1004.70	0.00	Cash payment for invoice INV-002600	2026-07-10 20:27:40.945886
642	4	2	635	card	\N	\N	1	\N	\N	f	2888.00	0.00	Card payment for invoice INV-002604	2026-07-10 20:30:58.674628
646	4	2	639	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002607	2026-07-10 20:36:33.901223
650	4	2	643	card	\N	\N	1	\N	\N	f	550.00	0.00	Card payment for invoice INV-002616	2026-07-10 20:49:12.391957
653	4	2	646	cash	\N	\N	\N	\N	\N	f	1846.90	0.00	Cash payment for invoice INV-002404	2026-07-10 20:54:58.448965
656	4	2	649	cash	\N	\N	\N	\N	\N	f	1340.00	0.00	Cash payment for invoice INV-002413	2026-07-10 20:57:59.764465
659	4	2	652	cash	\N	\N	\N	\N	\N	f	1280.00	0.00	Cash payment for invoice INV-002426	2026-07-10 21:00:44.771349
662	4	2	655	cash	\N	\N	\N	\N	\N	f	1650.00	0.00	Cash payment for invoice INV-002442	2026-07-10 21:01:21.50875
665	4	2	658	card	\N	\N	1	\N	\N	f	2099.00	0.00	Card payment for invoice INV-002632	2026-07-10 21:03:05.833543
379	4	2	374	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002265	2026-07-10 09:07:15.79143
385	4	2	380	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002272	2026-07-10 10:33:31.533658
391	4	2	386	card	\N	\N	1	\N	\N	f	700.00	0.00	Card payment for invoice INV-002280	2026-07-10 11:05:33.011115
397	4	2	392	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-002287	2026-07-10 11:20:34.300055
403	4	2	398	bank	1	\N	\N	\N	\N	f	100.00	0.00	Bank payment for invoice INV-002293	2026-07-10 11:53:19.192345
409	4	2	404	card	\N	\N	1	\N	\N	f	720.00	0.00	Card payment for invoice INV-002302	2026-07-10 12:11:58.919222
415	4	2	410	cash	\N	\N	\N	\N	\N	f	135.00	0.00	Cash payment for invoice INV-002308	2026-07-10 12:28:52.697003
421	4	2	416	card	\N	\N	1	\N	\N	f	350.00	0.00	Card payment for invoice INV-002314	2026-07-10 13:47:11.179298
427	4	2	422	cash	\N	\N	\N	\N	\N	f	8295.00	0.00	Cash payment for invoice INV-002320	2026-07-10 14:03:42.652428
433	4	2	428	card	\N	\N	1	\N	\N	f	458.15	0.00	Card payment for invoice INV-002326	2026-07-10 14:11:52.745268
439	4	2	434	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002332	2026-07-10 14:18:41.705229
445	4	2	440	card	\N	\N	1	\N	\N	f	671.50	0.00	Card payment for invoice INV-002338	2026-07-10 14:27:15.99559
451	4	2	446	cash	\N	\N	\N	\N	\N	f	980.00	0.00	Cash payment for invoice INV-002344	2026-07-10 14:38:16.41681
457	4	2	452	card	\N	\N	1	\N	\N	f	350.00	0.00	Card payment for invoice INV-002350	2026-07-10 14:50:09.990176
463	4	2	458	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002356	2026-07-10 15:02:14.079963
469	4	2	464	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002362	2026-07-10 15:11:06.130562
475	4	2	470	card	\N	\N	1	\N	\N	f	789.00	0.00	Card payment for invoice INV-002369	2026-07-10 15:36:08.236251
481	4	2	476	cash	\N	\N	\N	\N	\N	f	445.00	0.00	Cash payment for invoice INV-002375	2026-07-10 15:43:46.361089
487	4	2	482	cash	\N	\N	\N	\N	\N	f	1120.00	0.00	Cash payment for invoice INV-002381	2026-07-10 15:56:12.166187
493	4	2	487	cash	\N	\N	\N	\N	\N	f	560.00	0.00	Cash payment for invoice INV-002387	2026-07-10 16:10:14.333495
499	4	2	493	cash	\N	\N	\N	\N	\N	f	199.00	0.00	Cash payment for invoice INV-002393	2026-07-10 16:22:30.19639
505	4	2	498	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-002407	2026-07-10 16:30:24.74386
511	4	2	504	cash	\N	\N	\N	\N	\N	f	553.45	0.00	Cash payment for invoice INV-002417	2026-07-10 16:48:07.074641
517	4	2	510	card	\N	\N	1	\N	\N	f	450.00	0.00	Card payment for invoice INV-002429	2026-07-10 16:56:55.962985
523	4	2	516	card	\N	\N	3	\N	wyc2-2628-ujyj	f	3000.00	0.00	Card payment for invoice INV-002437	2026-07-10 17:13:39.350871
312	4	2	310	cash	\N	\N	\N	\N	\N	f	2175.00	0.00	Cash payment for invoice INV-002164	2026-07-10 01:18:17.532401
318	4	2	316	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002202	2026-07-10 01:33:23.786723
324	4	2	322	card	\N	\N	1	\N	\N	f	570.00	0.00	Card payment for invoice INV-002210	2026-07-10 01:53:17.797754
330	4	2	328	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002216	2026-07-10 02:01:18.900081
336	4	2	334	card	\N	\N	1	\N	\N	f	610.00	0.00	Card payment for invoice INV-002222	2026-07-10 02:07:33.162397
300	4	2	298	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-002182	2026-07-10 00:34:23.54574
299	4	2	297	card	\N	\N	1	8560	\N	f	1690.00	0.00	BAHL payment (****8560) for invoice INV-002181	2026-07-10 00:31:44.332896
1	4	2	1	cash	\N	\N	\N	\N	\N	f	26829.00	0.00	Cash payment for invoice INV-001732	2026-07-08 16:13:47.212418
2	4	2	2	card	\N	\N	1	\N	\N	f	3300.00	0.00	Card payment for invoice INV-001734	2026-07-08 16:15:57.592344
3	4	2	3	cash	\N	\N	\N	\N	\N	f	480.00	0.00	Cash payment for invoice INV-001735	2026-07-08 16:21:28.429052
244	4	2	242	cash	\N	\N	\N	\N	\N	f	680.00	0.00	Cash payment for invoice INV-002114	2026-07-09 22:35:02.926158
245	4	2	243	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002115	2026-07-09 22:35:59.370844
246	4	2	244	cash	\N	\N	\N	\N	\N	f	1550.00	0.00	Cash payment for invoice INV-002067	2026-07-09 22:37:40.275113
247	4	2	245	cash	\N	\N	\N	\N	\N	f	3675.00	0.00	Cash payment for invoice INV-002015	2026-07-09 22:38:40.230465
248	4	2	246	cash	\N	\N	\N	\N	\N	f	1280.00	0.00	Cash payment for invoice INV-002107	2026-07-09 22:38:57.359337
249	4	2	247	cash	\N	\N	\N	\N	\N	f	580.00	0.00	Cash payment for invoice INV-002120	2026-07-09 22:41:05.224492
250	4	2	248	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002122	2026-07-09 22:42:14.9503
251	4	2	249	cash	\N	\N	\N	\N	\N	f	413.40	0.00	Cash payment for invoice INV-002123	2026-07-09 22:47:53.910511
252	4	2	250	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002124	2026-07-09 22:53:22.505401
253	4	2	251	cash	\N	\N	\N	\N	\N	f	980.00	0.00	Cash payment for invoice INV-002125	2026-07-09 22:54:49.05728
254	4	2	252	card	\N	\N	1	5890	\N	f	175.00	0.00	BAHL payment (****5890) for invoice INV-002126	2026-07-09 22:56:15.972442
255	4	2	253	cash	\N	\N	\N	\N	\N	f	130.00	0.00	Cash payment for invoice INV-002127	2026-07-09 22:57:46.276582
256	4	2	254	card	\N	\N	1	5478	\N	f	1200.00	0.00	BAHL payment (****5478) for invoice INV-002128	2026-07-09 23:01:51.765813
257	4	2	255	cash	\N	\N	\N	\N	\N	f	790.00	0.00	Cash payment for invoice INV-002129	2026-07-09 23:04:57.306923
258	4	2	256	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002130	2026-07-09 23:05:29.263316
259	4	2	257	card	\N	\N	1	5809	\N	f	5040.00	0.00	BAHL payment (****5809) for invoice INV-002131	2026-07-09 23:09:51.50278
260	4	2	258	cash	\N	\N	\N	\N	\N	f	380.00	0.00	Cash payment for invoice INV-002132	2026-07-09 23:11:10.567141
261	4	2	259	cash	\N	\N	\N	\N	\N	f	420.00	0.00	Cash payment for invoice INV-002133	2026-07-09 23:12:18.640283
262	4	2	260	cash	\N	\N	\N	\N	\N	f	810.00	0.00	Cash payment for invoice INV-002134	2026-07-09 23:14:01.160434
263	4	2	261	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-002136	2026-07-09 23:14:37.132045
342	4	2	340	cash	\N	\N	\N	\N	\N	f	1200.00	0.00	Cash payment for invoice INV-002228	2026-07-10 02:10:08.000631
348	4	2	346	cash	\N	\N	\N	\N	\N	f	430.00	0.00	Cash payment for invoice INV-002234	2026-07-10 02:13:09.201412
528	4	2	521	cash	\N	\N	\N	\N	\N	f	2580.00	0.00	Cash payment for invoice INV-002440	2026-07-10 17:26:46.105197
534	4	2	527	cash	\N	\N	\N	\N	\N	f	880.00	0.00	Cash payment for invoice INV-002452	2026-07-10 17:36:21.724872
540	4	2	533	card	\N	\N	1	\N	\N	f	1077.35	0.00	Card payment for invoice INV-002461	2026-07-10 17:44:30.287756
546	4	2	539	cash	\N	\N	\N	\N	\N	f	410.00	0.00	Cash payment for invoice INV-002469	2026-07-10 17:53:41.685048
552	4	2	545	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002478	2026-07-10 18:00:58.105967
558	4	2	551	card	\N	\N	1	\N	\N	f	526.00	0.00	Card payment for invoice INV-002484	2026-07-10 18:11:48.05402
564	4	2	557	card	\N	\N	1	\N	\N	f	400.00	0.00	Card payment for invoice INV-002494	2026-07-10 18:21:46.438993
570	4	2	563	card	\N	\N	1	\N	\N	f	310.00	0.00	Card payment for invoice INV-002505	2026-07-10 18:35:02.327824
576	4	2	569	cash	\N	\N	\N	\N	\N	f	1350.00	0.00	Cash payment for invoice INV-002511	2026-07-10 18:47:04.234639
582	4	2	575	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002522	2026-07-10 18:57:05.313216
264	4	2	262	card	\N	\N	1	2580	\N	f	200.00	0.00	BAHL payment (****2580) for invoice INV-002138	2026-07-09 23:15:21.66754
265	4	2	263	cash	\N	\N	\N	\N	\N	f	280.00	0.00	Cash payment for invoice INV-002139	2026-07-09 23:19:10.65074
266	4	2	264	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-002140	2026-07-09 23:20:08.202373
267	4	2	265	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002141	2026-07-09 23:23:21.428581
268	4	2	266	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002142	2026-07-09 23:23:47.982145
269	4	2	267	cash	\N	\N	\N	\N	\N	f	630.00	0.00	Cash payment for invoice INV-002143	2026-07-09 23:24:06.114116
270	4	2	268	card	\N	\N	1	5480	\N	f	419.79	0.00	BAHL payment (****5480) for invoice INV-002144	2026-07-09 23:27:09.798514
271	4	2	269	card	\N	\N	1	5890	\N	f	1400.00	0.00	BAHL payment (****5890) for invoice INV-002145	2026-07-09 23:27:56.767926
272	4	2	270	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002147	2026-07-09 23:28:18.939895
273	4	2	271	card	\N	\N	1	5480	\N	f	270.00	0.00	BAHL payment (****5480) for invoice INV-002149	2026-07-09 23:33:41.874283
274	4	2	272	cash	\N	\N	\N	\N	\N	f	3320.00	0.00	Cash payment for invoice INV-002150	2026-07-09 23:35:28.305161
275	4	2	273	card	\N	\N	1	4580	\N	f	3000.00	0.00	BAHL payment (****4580) for invoice INV-002151	2026-07-09 23:42:48.361289
276	4	2	274	cash	\N	\N	\N	\N	\N	f	610.00	0.00	Cash payment for invoice INV-002152	2026-07-09 23:46:08.080579
277	4	2	275	cash	\N	\N	\N	\N	\N	f	850.00	0.00	Cash payment for invoice INV-002153	2026-07-09 23:48:48.465811
278	4	2	276	card	\N	\N	1	5809	\N	f	1380.00	0.00	BAHL payment (****5809) for invoice INV-002155	2026-07-09 23:55:30.167204
279	4	2	277	card	\N	\N	1	0896	\N	f	839.00	0.00	BAHL payment (****0896) for invoice INV-002156	2026-07-09 23:56:33.97573
280	4	2	278	cash	\N	\N	\N	\N	\N	f	230.00	0.00	Cash payment for invoice INV-002157	2026-07-09 23:58:47.759878
281	4	2	279	cash	\N	\N	\N	\N	\N	f	320.00	0.00	Cash payment for invoice INV-002158	2026-07-10 00:00:44.354332
282	4	2	280	cash	\N	\N	\N	\N	\N	f	900.00	0.00	Cash payment for invoice INV-002159	2026-07-10 00:01:42.270701
283	4	2	281	cash	\N	\N	\N	\N	\N	f	240.00	0.00	Cash payment for invoice INV-002160	2026-07-10 00:02:19.91207
284	4	2	282	cash	\N	\N	\N	\N	\N	f	170.00	0.00	Cash payment for invoice INV-002163	2026-07-10 00:05:06.137018
285	4	2	283	card	\N	\N	1	8096	\N	f	930.00	0.00	BAHL payment (****8096) for invoice INV-002166	2026-07-10 00:08:09.411594
286	4	2	284	card	\N	\N	1	5809	\N	f	350.00	0.00	BAHL payment (****5809) for invoice INV-002167	2026-07-10 00:08:54.66367
287	4	2	285	cash	\N	\N	\N	\N	\N	f	810.00	0.00	Cash payment for invoice INV-002168	2026-07-10 00:09:32.24865
288	4	2	286	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002169	2026-07-10 00:11:03.584742
289	4	2	287	cash	\N	\N	\N	\N	\N	f	1360.65	0.00	Cash payment for invoice INV-002171	2026-07-10 00:12:53.12213
290	4	2	288	card	\N	\N	1	8475	\N	f	750.00	0.00	BAHL payment (****8475) for invoice INV-002172	2026-07-10 00:14:04.004307
291	4	2	289	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002173	2026-07-10 00:15:06.459811
292	4	2	290	cash	\N	\N	\N	\N	\N	f	130.00	0.00	Cash payment for invoice INV-002174	2026-07-10 00:16:13.067254
293	4	2	291	cash	\N	\N	\N	\N	\N	f	130.00	0.00	Cash payment for invoice INV-002175	2026-07-10 00:17:09.824037
294	4	2	292	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002176	2026-07-10 00:18:14.871433
295	4	2	293	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002177	2026-07-10 00:18:57.335675
296	4	2	294	card	\N	\N	1	2580	\N	f	855.00	0.00	BAHL payment (****2580) for invoice INV-002178	2026-07-10 00:22:29.68224
297	4	2	295	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002179	2026-07-10 00:26:48.691666
6	4	2	\N	cash	\N	\N	\N	\N	\N	f	-200.00	0.00	Cash refund for quick sale return #1	2026-07-09 09:26:17.51298
11	4	2	\N	cash	\N	\N	\N	\N	\N	f	-54051.18	0.00	Shift #1 close — transfer to Cash in Hand - Clear POS drawer — shift #1 close (JE #7)	2026-07-09 00:00:00
51	4	2	1	purchase_return	1	\N	\N	\N	\N	f	1304.38	0.00	Purchase return #1 - Amount: 1304.38	2026-07-09 13:44:07.138184
298	4	2	296	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002180	2026-07-10 00:28:39.165451
302	4	2	300	cash	\N	\N	\N	\N	\N	f	145.00	0.00	Cash payment for invoice INV-002184	2026-07-10 00:38:05.718497
304	4	2	302	cash	\N	\N	\N	\N	\N	f	170.00	0.00	Cash payment for invoice INV-002186	2026-07-10 00:42:24.039293
306	4	2	304	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002188	2026-07-10 00:52:01.315864
36	4	2	37	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-001806	2026-07-09 12:36:18.710419
37	4	2	38	cash	\N	\N	\N	\N	\N	f	529.62	0.00	Cash payment for invoice INV-001807	2026-07-09 12:39:58.839142
38	4	2	39	cash	\N	\N	\N	\N	\N	f	600.00	0.00	Cash payment for invoice INV-001808	2026-07-09 12:42:08.970109
39	4	2	40	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-001809	2026-07-09 12:53:10.210164
40	4	2	41	cash	\N	\N	\N	\N	\N	f	4244.24	0.00	Cash payment for invoice INV-001810	2026-07-09 12:56:08.747574
41	4	2	42	cash	\N	\N	\N	\N	\N	f	1120.00	0.00	Cash payment for invoice INV-001811	2026-07-09 13:01:49.246498
42	4	2	43	cash	\N	\N	\N	\N	\N	f	522.24	0.00	Cash payment for invoice INV-001812	2026-07-09 13:05:17.836185
43	4	2	44	card	\N	\N	3	\N	wyc2-2628-gncq	f	200.00	0.00	Card payment for invoice INV-001813	2026-07-09 13:07:07.790345
44	4	2	45	cash	\N	\N	\N	\N	\N	f	261.00	0.00	Cash payment for invoice INV-001814	2026-07-09 13:09:11.48457
45	4	2	46	card	\N	\N	1	\N	\N	f	150.00	0.00	Card payment for invoice INV-001815	2026-07-09 13:13:47.8748
46	4	2	47	card	\N	\N	1	\N	\N	f	690.00	0.00	Card payment for invoice INV-001816	2026-07-09 13:15:25.539608
47	4	2	48	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-001818	2026-07-09 13:21:21.951118
48	4	2	49	card	\N	\N	1	\N	\N	f	2885.00	0.00	Card payment for invoice INV-001819	2026-07-09 13:32:51.779185
49	4	2	50	cash	\N	\N	\N	\N	\N	f	799.00	0.00	Cash payment for invoice INV-001820	2026-07-09 13:34:06.991915
50	4	2	51	cash	\N	\N	\N	\N	\N	f	540.00	0.00	Cash payment for invoice INV-001817	2026-07-09 13:36:00.320207
52	4	2	52	card	\N	\N	1	1177	\N	f	610.00	0.00	BAHL payment (****1177) for invoice INV-001822	2026-07-09 13:45:57.11001
53	4	2	53	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-001824	2026-07-09 13:49:26.839141
54	4	2	54	cash	\N	\N	\N	\N	\N	f	370.00	0.00	Cash payment for invoice INV-001825	2026-07-09 13:50:04.330643
55	4	2	55	cash	\N	\N	\N	\N	\N	f	140.00	0.00	Cash payment for invoice INV-001826	2026-07-09 13:54:09.141491
56	4	2	56	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-001827	2026-07-09 13:56:18.031749
57	4	2	57	cash	\N	\N	\N	\N	\N	f	245.70	0.00	Cash payment for invoice INV-001828	2026-07-09 13:58:50.793319
58	4	2	58	cash	\N	\N	\N	\N	\N	f	520.00	0.00	Cash payment for invoice INV-001830	2026-07-09 14:10:59.846513
59	4	2	59	card	\N	\N	1	\N	\N	f	338.52	0.00	Card payment for invoice INV-001832	2026-07-09 14:17:01.745741
60	4	2	60	cash	\N	\N	\N	\N	\N	f	260.00	0.00	Cash payment for invoice INV-001833	2026-07-09 14:17:57.451533
61	4	2	61	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-001834	2026-07-09 14:21:43.762139
62	4	2	62	card	\N	\N	3	\N	WYC2-2628-0LT9	f	2201.50	0.00	Card payment for invoice INV-001835	2026-07-09 14:24:19.372887
63	4	2	63	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-001836	2026-07-09 14:28:12.874679
64	4	2	64	card	\N	\N	1	\N	\N	f	260.00	0.00	Card payment for invoice INV-001837	2026-07-09 14:30:10.076654
65	4	2	65	bank	2	\N	\N	\N	\N	f	1230.00	0.00	Bank payment for invoice INV-001829	2026-07-09 14:31:38.779056
66	4	2	66	cash	\N	\N	\N	\N	\N	f	503.84	0.00	Cash payment for invoice INV-001839	2026-07-09 14:33:20.444125
67	4	2	67	card	\N	\N	1	\N	\N	f	4640.00	0.00	Card payment for invoice INV-001840	2026-07-09 14:37:46.771016
68	4	2	68	card	\N	\N	1	\N	\N	f	382.05	0.00	Card payment for invoice INV-001841	2026-07-09 14:38:55.265845
69	4	2	69	cash	\N	\N	\N	\N	\N	f	2179.00	0.00	Cash payment for invoice INV-001845	2026-07-09 15:01:53.456097
70	4	2	70	cash	\N	\N	\N	\N	\N	f	1035.00	0.00	Cash payment for invoice INV-001847	2026-07-09 15:32:34.09446
71	4	2	71	card	\N	\N	1	\N	\N	f	310.00	0.00	Card payment for invoice INV-001850	2026-07-09 15:36:44.280879
72	4	2	72	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-001851	2026-07-09 15:40:28.015082
73	4	2	73	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-001852	2026-07-09 15:49:00.724626
74	4	2	74	cash	\N	\N	\N	\N	\N	f	1770.00	0.00	Cash payment for invoice INV-001853	2026-07-09 15:54:52.313751
75	4	2	75	cash	\N	\N	\N	\N	\N	f	360.00	0.00	Cash payment for invoice INV-001854	2026-07-09 15:55:42.789359
76	4	2	76	card	\N	\N	1	\N	\N	f	985.75	0.00	Card payment for invoice INV-001856	2026-07-09 16:00:56.302049
77	4	2	77	card	\N	\N	3	\N	wyc2-2628-ia9r	f	605.00	0.00	Card payment for invoice INV-001859	2026-07-09 16:05:48.562796
78	4	2	78	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-001861	2026-07-09 16:07:15.819592
79	4	2	79	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-001862	2026-07-09 16:08:40.662765
80	4	2	80	cash	\N	\N	\N	\N	\N	f	2149.00	0.00	Cash payment for invoice INV-001855	2026-07-09 16:09:49.922904
81	4	2	81	cash	\N	\N	\N	\N	\N	f	1000.00	0.00	Cash payment for invoice INV-001863	2026-07-09 16:11:40.947665
82	4	2	82	card	\N	\N	1	\N	\N	f	2233.95	0.00	Card payment for invoice INV-001867	2026-07-09 16:14:47.250452
83	4	2	\N	cash	\N	\N	\N	\N	\N	f	-29601.46	0.00	Shift #2 close — transfer to Cash in Hand - Clear POS drawer — shift #2 close (JE #85)	2026-07-09 00:00:00
84	4	2	\N	cash	\N	\N	\N	\N	\N	f	29610.00	0.00	Shift #2 close — transfer to Cash in Hand - Verified cash counted — shift #2 close (JE #85)	2026-07-09 00:00:00
85	4	2	83	cash	\N	\N	\N	\N	\N	f	930.00	0.00	Cash payment for invoice INV-001872	2026-07-09 16:27:48.64118
86	4	2	84	card	\N	\N	1	\N	\N	f	660.00	0.00	Card payment for invoice INV-001874	2026-07-09 16:29:48.42573
87	4	2	85	card	\N	\N	1	\N	\N	f	290.00	0.00	Card payment for invoice INV-001875	2026-07-09 16:30:25.783499
88	4	2	86	cash	\N	\N	\N	\N	\N	f	1245.00	0.00	Cash payment for invoice INV-001876	2026-07-09 16:31:59.675082
89	4	2	87	cash	\N	\N	\N	\N	\N	f	924.00	0.00	Cash payment for invoice INV-001868	2026-07-09 16:33:20.39048
90	4	2	88	card	\N	\N	1	\N	\N	f	885.00	0.00	Card payment for invoice INV-001878	2026-07-09 16:34:15.485091
91	4	2	89	card	\N	\N	1	\N	\N	f	475.00	0.00	Card payment for invoice INV-001879	2026-07-09 16:35:53.793892
92	4	2	90	card	\N	\N	1	\N	\N	f	2099.00	0.00	Card payment for invoice INV-001880	2026-07-09 16:36:50.378224
93	4	2	91	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-001881	2026-07-09 16:39:19.25059
94	4	2	92	cash	\N	\N	\N	\N	\N	f	260.00	0.00	Cash payment for invoice INV-001882	2026-07-09 16:42:13.495817
95	4	2	93	cash	\N	\N	\N	\N	\N	f	70.00	0.00	Cash payment for invoice INV-001883	2026-07-09 16:42:52.188411
96	4	2	94	card	\N	\N	1	\N	\N	f	1609.00	0.00	Card payment for invoice INV-001884	2026-07-09 16:44:26.985882
97	4	2	95	card	\N	\N	1	\N	\N	f	120.00	0.00	Card payment for invoice INV-001886	2026-07-09 16:47:05.45909
98	4	2	96	card	\N	\N	1	\N	\N	f	160.00	0.00	Card payment for invoice INV-001887	2026-07-09 16:47:59.956935
99	4	2	97	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-001888	2026-07-09 16:48:42.566648
100	4	2	98	card	\N	\N	1	\N	\N	f	120.00	0.00	Card payment for invoice INV-001889	2026-07-09 16:49:25.078916
101	4	2	99	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-001890	2026-07-09 16:52:31.457593
102	4	2	100	card	\N	\N	1	\N	\N	f	2510.00	0.00	Card payment for invoice INV-001891	2026-07-09 16:54:26.389704
103	4	2	101	cash	\N	\N	\N	\N	\N	f	2980.00	0.00	Cash payment for invoice INV-001870	2026-07-09 16:59:24.058676
104	4	2	102	card	\N	\N	1	\N	\N	f	925.00	0.00	Card payment for invoice INV-001893	2026-07-09 17:04:27.398508
105	4	2	103	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-001896	2026-07-09 17:07:26.176415
106	4	2	104	card	\N	\N	1	\N	\N	f	930.15	0.00	Card payment for invoice INV-001898	2026-07-09 17:10:31.575317
107	4	2	105	cash	\N	\N	\N	\N	\N	f	170.00	0.00	Cash payment for invoice INV-001900	2026-07-09 17:13:03.226832
108	4	2	106	cash	\N	\N	\N	\N	\N	f	390.00	0.00	Cash payment for invoice INV-001901	2026-07-09 17:13:53.079197
109	4	2	107	cash	\N	\N	\N	\N	\N	f	559.90	0.00	Cash payment for invoice INV-001902	2026-07-09 17:15:35.111419
110	4	2	108	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-001894	2026-07-09 17:17:03.602239
111	4	2	109	cash	\N	\N	\N	\N	\N	f	230.00	0.00	Cash payment for invoice INV-001906	2026-07-09 17:23:36.0243
112	4	2	110	card	\N	\N	1	\N	\N	f	805.45	0.00	Card payment for invoice INV-001907	2026-07-09 17:27:38.211872
113	4	2	111	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-001910	2026-07-09 17:29:02.876129
114	4	2	112	cash	\N	\N	\N	\N	\N	f	608.69	0.00	Cash payment for invoice INV-001911	2026-07-09 17:29:51.475722
115	4	2	113	cash	\N	\N	\N	\N	\N	f	780.00	0.00	Cash payment for invoice INV-001912	2026-07-09 17:31:02.656258
116	4	2	114	cash	\N	\N	\N	\N	\N	f	1435.00	0.00	Cash payment for invoice INV-001913	2026-07-09 17:35:25.713301
117	4	2	115	card	\N	\N	1	\N	\N	f	1910.00	0.00	Card payment for invoice INV-001914	2026-07-09 17:37:14.283314
118	4	2	116	card	\N	\N	1	\N	\N	f	260.00	0.00	Card payment for invoice INV-001915	2026-07-09 17:39:57.950824
119	4	2	117	card	\N	\N	1	\N	\N	f	385.00	0.00	Card payment for invoice INV-001916	2026-07-09 17:44:00.062988
120	4	2	118	cash	\N	\N	\N	\N	\N	f	170.00	0.00	Cash payment for invoice INV-001919	2026-07-09 17:44:19.427946
121	4	2	119	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-001920	2026-07-09 17:44:52.621767
122	4	2	120	card	\N	\N	1	\N	\N	f	100.00	0.00	Card payment for invoice INV-001921	2026-07-09 17:46:07.888282
123	4	2	121	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-001922	2026-07-09 17:46:34.388537
124	4	2	122	cash	\N	\N	\N	\N	\N	f	770.00	0.00	Cash payment for invoice INV-001923	2026-07-09 17:48:52.541961
125	4	2	123	cash	\N	\N	\N	\N	\N	f	909.35	0.00	Cash payment for invoice INV-001924	2026-07-09 17:58:18.551086
126	4	2	124	card	\N	\N	1	\N	\N	f	2210.00	0.00	Card payment for invoice INV-001926	2026-07-09 18:06:01.794937
127	4	2	125	cash	\N	\N	\N	\N	\N	f	920.00	0.00	Cash payment for invoice INV-001928	2026-07-09 18:07:42.777831
128	4	2	126	cash	\N	\N	\N	\N	\N	f	591.55	0.00	Cash payment for invoice INV-001931	2026-07-09 18:09:40.968466
129	4	2	127	card	\N	\N	1	\N	\N	f	1200.00	0.00	Card payment for invoice INV-001933	2026-07-09 18:11:00.724044
130	4	2	128	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-001935	2026-07-09 18:14:49.234583
131	4	2	129	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-001936	2026-07-09 18:15:28.731277
132	4	2	130	card	\N	\N	1	5888	\N	f	238.50	0.00	BAHL payment (****5888) for invoice INV-001938	2026-07-09 18:16:04.819961
133	4	2	131	card	\N	\N	1	1234	\N	f	789.00	0.00	BAHL payment (****1234) for invoice INV-001942	2026-07-09 18:20:02.074903
134	4	2	132	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-001944	2026-07-09 18:24:53.258948
135	4	2	133	cash	\N	\N	\N	\N	\N	f	1050.00	0.00	Cash payment for invoice INV-001946	2026-07-09 18:26:13.551213
136	4	2	134	cash	\N	\N	\N	\N	\N	f	750.00	0.00	Cash payment for invoice INV-001948	2026-07-09 18:27:04.431978
137	4	2	135	cash	\N	\N	\N	\N	\N	f	370.00	0.00	Cash payment for invoice INV-001950	2026-07-09 18:32:04.399138
138	4	2	136	cash	\N	\N	\N	\N	\N	f	1440.00	0.00	Cash payment for invoice INV-001943	2026-07-09 18:36:56.288783
139	4	2	137	card	\N	\N	3	\N	wyc2-2628-fs1k	f	180.00	0.00	Card payment for invoice INV-001952	2026-07-09 18:38:53.694541
140	4	2	138	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-001953	2026-07-09 18:41:07.056449
141	4	2	139	card	\N	\N	1	1334	\N	f	260.00	0.00	BAHL payment (****1334) for invoice INV-001954	2026-07-09 18:42:45.421951
142	4	2	140	card	\N	\N	1	5869	\N	f	1710.00	0.00	BAHL payment (****5869) for invoice INV-001955	2026-07-09 18:45:57.403281
143	4	2	141	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-001957	2026-07-09 18:46:37.706158
144	4	2	142	card	\N	\N	1	2498	\N	f	960.00	0.00	BAHL payment (****2498) for invoice INV-001959	2026-07-09 18:48:11.009779
145	4	2	143	card	\N	\N	1	4589	\N	f	670.00	0.00	BAHL payment (****4589) for invoice INV-001960	2026-07-09 18:49:44.820082
146	4	2	144	cash	\N	\N	\N	\N	\N	f	330.00	0.00	Cash payment for invoice INV-001941	2026-07-09 18:50:49.6425
147	4	2	145	cash	\N	\N	\N	\N	\N	f	1270.00	0.00	Cash payment for invoice INV-001962	2026-07-09 18:54:32.163838
148	4	2	146	cash	\N	\N	\N	\N	\N	f	1000.00	0.00	Cash payment for invoice INV-001963	2026-07-09 18:56:00.779576
149	4	2	147	card	\N	\N	1	5149	\N	f	2529.00	0.00	BAHL payment (****5149) for invoice INV-001964	2026-07-09 18:57:09.865705
150	4	2	148	card	\N	\N	1	8456	\N	f	649.00	0.00	BAHL payment (****8456) for invoice INV-001965	2026-07-09 18:58:02.409755
151	4	2	149	card	\N	\N	1	5270	\N	f	2450.00	0.00	BAHL payment (****5270) for invoice INV-001966	2026-07-09 19:02:01.12997
152	4	2	150	cash	\N	\N	\N	\N	\N	f	80.00	0.00	Cash payment for invoice INV-001968	2026-07-09 19:08:56.28206
153	4	2	151	card	\N	\N	1	8569	\N	f	450.00	0.00	BAHL payment (****8569) for invoice INV-001970	2026-07-09 19:15:10.004154
154	4	2	152	card	\N	\N	1	8569	\N	f	700.00	0.00	BAHL payment (****8569) for invoice INV-001971	2026-07-09 19:17:15.906522
155	4	2	153	cash	\N	\N	\N	\N	\N	f	1220.00	0.00	Cash payment for invoice INV-001972	2026-07-09 19:19:14.983536
156	4	2	154	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-001974	2026-07-09 19:19:56.241121
157	4	2	155	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-001976	2026-07-09 19:21:02.742014
158	4	2	156	card	\N	\N	1	4507	\N	f	3936.10	0.00	BAHL payment (****4507) for invoice INV-001978	2026-07-09 19:23:58.761279
159	4	2	157	card	\N	\N	1	4580	\N	f	450.00	0.00	BAHL payment (****4580) for invoice INV-001980	2026-07-09 19:26:11.986648
160	4	2	158	card	\N	\N	1	2755	\N	f	357.00	0.00	BAHL payment (****2755) for invoice INV-001982	2026-07-09 19:27:03.686645
161	4	2	159	card	\N	\N	1	5489	\N	f	463.00	0.00	BAHL payment (****5489) for invoice INV-001983	2026-07-09 19:32:23.443117
162	4	2	160	cash	\N	\N	\N	\N	\N	f	700.00	0.00	Cash payment for invoice INV-001984	2026-07-09 19:35:12.711769
163	4	2	161	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-001986	2026-07-09 19:40:05.755871
164	4	2	162	card	\N	\N	1	5478	\N	f	500.00	0.00	BAHL payment (****5478) for invoice INV-001987	2026-07-09 19:44:09.586091
165	4	2	163	card	\N	\N	1	8578	\N	f	1694.00	0.00	BAHL payment (****8578) for invoice INV-001988	2026-07-09 19:46:45.273301
166	4	2	164	cash	\N	\N	\N	\N	\N	f	828.00	0.00	Cash payment for invoice INV-001990	2026-07-09 19:48:13.462562
167	4	2	165	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-001992	2026-07-09 19:51:41.642131
168	4	2	166	card	\N	\N	1	5489	\N	f	1060.00	0.00	BAHL payment (****5489) for invoice INV-001993	2026-07-09 19:53:54.134683
169	4	2	167	cash	\N	\N	\N	\N	\N	f	2000.00	0.00	Cash payment for invoice INV-001995	2026-07-09 19:56:46.966906
170	4	2	168	card	\N	\N	1	5248	\N	f	230.00	0.00	BAHL payment (****5248) for invoice INV-001996	2026-07-09 19:59:47.800453
171	4	2	169	cash	\N	\N	\N	\N	\N	f	560.00	0.00	Cash payment for invoice INV-001999	2026-07-09 20:02:16.079474
172	4	2	170	cash	\N	\N	\N	\N	\N	f	600.00	0.00	Cash payment for invoice INV-002000	2026-07-09 20:03:08.403472
173	4	2	171	card	\N	\N	3	\N	wyc2-2628-u2wo	f	690.00	0.00	Card payment for invoice INV-002001	2026-07-09 20:05:31.104761
174	4	2	172	cash	\N	\N	\N	\N	\N	f	1538.85	0.00	Cash payment for invoice INV-002002	2026-07-09 20:06:35.807171
175	4	2	173	card	\N	\N	1	\N	\N	f	550.00	0.00	Card payment for invoice INV-002003	2026-07-09 20:07:36.354446
176	4	2	174	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002004	2026-07-09 20:08:00.142377
177	4	2	175	cash	\N	\N	\N	\N	\N	f	480.00	0.00	Cash payment for invoice INV-001994	2026-07-09 20:09:39.25204
178	4	2	176	bank	1	\N	\N	\N	\N	f	3674.00	0.00	Bank payment for invoice INV-001934	2026-07-09 20:10:40.977598
179	4	2	177	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002007	2026-07-09 20:11:00.083131
180	4	2	178	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002008	2026-07-09 20:11:47.513441
181	4	2	179	card	\N	\N	1	\N	\N	f	2330.00	0.00	Card payment for invoice INV-002009	2026-07-09 20:14:47.105939
182	4	2	180	cash	\N	\N	\N	\N	\N	f	470.00	0.00	Cash payment for invoice INV-002010	2026-07-09 20:20:03.847583
183	4	2	181	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-002013	2026-07-09 20:22:45.014028
184	4	2	182	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002014	2026-07-09 20:24:11.563135
185	4	2	183	card	\N	\N	2	5408	\N	f	2099.00	0.00	BAFL payment (****5408) for invoice INV-002017	2026-07-09 20:26:53.451798
186	4	2	184	card	\N	\N	1	8498	\N	f	1020.00	0.00	BAHL payment (****8498) for invoice INV-002020	2026-07-09 20:28:12.143556
187	4	2	185	card	\N	\N	1	5840	\N	f	350.00	0.00	BAHL payment (****5840) for invoice INV-002021	2026-07-09 20:29:25.048262
188	4	2	186	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-002023	2026-07-09 20:29:49.009374
189	4	2	187	cash	\N	\N	\N	\N	\N	f	1450.00	0.00	Cash payment for invoice INV-002026	2026-07-09 20:32:19.112763
190	4	2	188	card	\N	\N	1	2480	\N	f	2099.00	0.00	BAHL payment (****2480) for invoice INV-002028	2026-07-09 20:33:34.409589
191	4	2	189	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-002030	2026-07-09 20:34:12.35866
192	4	2	190	card	\N	\N	1	5896	\N	f	180.00	0.00	BAHL payment (****5896) for invoice INV-002032	2026-07-09 20:35:14.371916
193	4	2	191	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002033	2026-07-09 20:35:30.278003
194	4	2	192	card	\N	\N	1	8456	\N	f	980.00	0.00	BAHL payment (****8456) for invoice INV-002034	2026-07-09 20:40:10.975638
195	4	2	193	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002035	2026-07-09 20:42:01.121167
196	4	2	194	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002037	2026-07-09 20:42:36.049361
197	4	2	195	card	\N	\N	1	8746	\N	f	450.00	0.00	BAHL payment (****8746) for invoice INV-002038	2026-07-09 20:44:07.253315
198	4	2	196	card	\N	\N	1	5478	\N	f	2099.00	0.00	BAHL payment (****5478) for invoice INV-002039	2026-07-09 20:46:09.047627
199	4	2	197	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002041	2026-07-09 20:49:17.425378
200	4	2	198	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-002042	2026-07-09 20:49:51.643415
201	4	2	199	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002045	2026-07-09 20:55:32.556582
202	4	2	200	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002046	2026-07-09 20:56:58.624908
203	4	2	201	card	\N	\N	1	4589	\N	f	650.00	0.00	BAHL payment (****4589) for invoice INV-002047	2026-07-09 20:58:12.497119
204	4	2	202	cash	\N	\N	\N	\N	\N	f	560.00	0.00	Cash payment for invoice INV-002049	2026-07-09 20:58:55.244861
205	4	2	203	cash	\N	\N	\N	\N	\N	f	325.00	0.00	Cash payment for invoice INV-002051	2026-07-09 20:59:55.981396
206	4	2	204	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002053	2026-07-09 21:00:40.43768
207	4	2	205	cash	\N	\N	\N	\N	\N	f	1820.00	0.00	Cash payment for invoice INV-002056	2026-07-09 21:02:30.509542
208	4	2	206	card	\N	\N	1	2580	\N	f	690.00	0.00	BAHL payment (****2580) for invoice INV-002057	2026-07-09 21:03:36.310201
209	4	2	207	card	\N	\N	1	2580	\N	f	550.00	0.00	BAHL payment (****2580) for invoice INV-002059	2026-07-09 21:07:10.058278
210	4	2	208	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002060	2026-07-09 21:09:30.058156
211	4	2	209	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-002061	2026-07-09 21:10:36.233645
212	4	2	210	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002063	2026-07-09 21:11:19.622033
213	4	2	211	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002064	2026-07-09 21:12:18.412532
214	4	2	212	card	\N	\N	1	2580	\N	f	1050.00	0.00	BAHL payment (****2580) for invoice INV-002066	2026-07-09 21:13:02.536054
215	4	2	213	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002069	2026-07-09 21:15:18.950358
216	4	2	214	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002070	2026-07-09 21:18:13.755454
217	4	2	215	card	\N	\N	1	2580	\N	f	1305.00	0.00	BAHL payment (****2580) for invoice INV-002071	2026-07-09 21:19:39.541414
218	4	2	216	card	\N	\N	1	2580	\N	f	660.00	0.00	BAHL payment (****2580) for invoice INV-002072	2026-07-09 21:20:31.709699
219	4	2	217	card	\N	\N	1	5860	\N	f	700.00	0.00	BAHL payment (****5860) for invoice INV-002074	2026-07-09 21:21:19.266773
220	4	2	218	card	\N	\N	1	5680	\N	f	180.00	0.00	BAHL payment (****5680) for invoice INV-002075	2026-07-09 21:23:14.689751
221	4	2	219	card	\N	\N	1	5809	\N	f	434.00	0.00	BAHL payment (****5809) for invoice INV-002076	2026-07-09 21:27:18.708466
222	4	2	220	card	\N	\N	1	5478	\N	f	180.00	0.00	BAHL payment (****5478) for invoice INV-002078	2026-07-09 21:27:57.332556
223	4	2	221	card	\N	\N	1	1280	\N	f	1100.00	0.00	BAHL payment (****1280) for invoice INV-002079	2026-07-09 21:32:44.857269
224	4	2	222	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-002080	2026-07-09 21:33:43.659006
225	4	2	223	cash	\N	\N	\N	\N	\N	f	1050.00	0.00	Cash payment for invoice INV-002083	2026-07-09 21:37:21.163872
226	4	2	224	card	\N	\N	1	4526	\N	f	1030.00	0.00	BAHL payment (****4526) for invoice INV-002085	2026-07-09 21:40:36.372382
227	4	2	225	card	\N	\N	1	5809	\N	f	15.00	0.00	BAHL payment (****5809) for invoice INV-002086	2026-07-09 21:41:27.129186
228	4	2	226	cash	\N	\N	\N	\N	\N	f	370.00	0.00	Cash payment for invoice INV-002088	2026-07-09 21:47:44.243408
229	4	2	227	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002089	2026-07-09 21:49:41.736755
230	4	2	228	cash	\N	\N	\N	\N	\N	f	1150.00	0.00	Cash payment for invoice INV-002011	2026-07-09 21:52:07.18329
231	4	2	229	cash	\N	\N	\N	\N	\N	f	1268.60	0.00	Cash payment for invoice INV-002043	2026-07-09 21:52:32.28961
232	4	2	230	cash	\N	\N	\N	\N	\N	f	2249.00	0.00	Cash payment for invoice INV-002044	2026-07-09 21:53:08.686051
233	4	2	231	cash	\N	\N	\N	\N	\N	f	540.00	0.00	Cash payment for invoice INV-002081	2026-07-09 21:53:35.085894
4	4	2	4	cash	\N	\N	\N	\N	\N	f	26742.18	0.00	Cash payment for invoice INV-001752	2026-07-08 17:29:35.518235
5	4	2	6	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-001766	2026-07-09 09:10:57.716134
7	4	2	7	cash	\N	\N	\N	\N	\N	f	540.00	0.00	Cash payment for invoice INV-001769	2026-07-09 09:27:49.153727
8	4	2	10	cash	\N	\N	\N	\N	\N	f	930.00	0.00	Cash payment for invoice INV-001776	2026-07-09 09:46:36.275816
9	4	2	11	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-001777	2026-07-09 09:53:19.81621
10	4	2	12	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-001778	2026-07-09 10:16:16.996506
12	4	2	13	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-001779	2026-07-09 10:26:58.346379
13	4	2	14	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-001781	2026-07-09 10:31:13.680966
14	4	2	15	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-001783	2026-07-09 10:49:21.803584
15	4	2	16	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-001785	2026-07-09 11:03:39.227333
16	4	2	17	card	\N	\N	1	5447	\N	f	1914.71	0.00	BAHL payment (****5447) for invoice INV-001786	2026-07-09 11:06:07.325697
17	4	2	18	card	\N	\N	1	\N	\N	f	960.00	0.00	Card payment for invoice INV-001787	2026-07-09 11:08:36.467392
18	4	2	19	cash	\N	\N	\N	\N	\N	f	108.00	0.00	Cash payment for invoice INV-001788	2026-07-09 11:14:20.244912
19	4	2	20	cash	\N	\N	\N	\N	\N	f	799.92	0.00	Cash payment for invoice INV-001789	2026-07-09 11:15:25.146741
20	4	2	21	cash	\N	\N	\N	\N	\N	f	1033.44	0.00	Cash payment for invoice INV-001790	2026-07-09 11:17:42.703881
21	4	2	22	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-001791	2026-07-09 11:18:31.650279
22	4	2	23	card	\N	\N	1	\N	\N	f	2146.16	0.00	Card payment for invoice INV-001792	2026-07-09 11:22:49.395554
23	4	2	24	cash	\N	\N	\N	\N	\N	f	360.00	0.00	Cash payment for invoice INV-001793	2026-07-09 11:27:15.553814
24	4	2	25	cash	\N	\N	\N	\N	\N	f	190.00	0.00	Cash payment for invoice INV-001794	2026-07-09 11:27:53.207491
25	4	2	26	cash	\N	\N	\N	\N	\N	f	230.00	0.00	Cash payment for invoice INV-001795	2026-07-09 11:32:42.345047
26	4	2	27	cash	\N	\N	\N	\N	\N	f	210.00	0.00	Cash payment for invoice INV-001796	2026-07-09 11:43:07.546491
27	4	2	28	card	\N	\N	1	\N	\N	f	1150.00	0.00	Card payment for invoice INV-001797	2026-07-09 11:47:21.0486
28	4	2	29	card	\N	\N	1	\N	\N	f	950.00	0.00	Card payment for invoice INV-001798	2026-07-09 11:48:56.724111
29	4	2	30	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-001799	2026-07-09 11:50:02.381884
30	4	2	31	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-001800	2026-07-09 11:50:35.859646
31	4	2	32	card	\N	\N	1	\N	\N	f	1419.24	0.00	Card payment for invoice INV-001801	2026-07-09 11:53:05.482625
32	4	2	33	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-001802	2026-07-09 11:53:56.201841
33	4	2	34	bank	1	\N	\N	\N	\N	f	510.00	0.00	Bank payment for invoice INV-001803	2026-07-09 11:59:15.916892
34	4	2	35	cash	\N	\N	\N	\N	\N	f	2956.46	0.00	Cash payment for invoice INV-001804	2026-07-09 12:06:36.607701
35	4	2	36	card	\N	\N	1	\N	\N	f	400.00	0.00	Card payment for invoice INV-001805	2026-07-09 12:07:16.217969
234	4	2	232	card	\N	\N	1	5480	\N	f	1759.00	0.00	BAHL payment (****5480) for invoice INV-002095	2026-07-09 21:54:46.238627
235	4	2	233	card	\N	\N	1	5698	\N	f	135.00	0.00	BAHL payment (****5698) for invoice INV-002097	2026-07-09 21:55:38.144379
236	4	2	234	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002099	2026-07-09 22:01:43.7416
237	4	2	235	card	\N	\N	1	5680	\N	f	200.00	0.00	BAHL payment (****5680) for invoice INV-002101	2026-07-09 22:02:32.35997
238	4	2	236	cash	\N	\N	\N	\N	\N	f	895.00	0.00	Cash payment for invoice INV-002103	2026-07-09 22:17:35.385249
239	4	2	237	cash	\N	\N	\N	\N	\N	f	170.00	0.00	Cash payment for invoice INV-002104	2026-07-09 22:19:05.082711
240	4	2	238	cash	\N	\N	\N	\N	\N	f	1250.00	0.00	Cash payment for invoice INV-002106	2026-07-09 22:20:49.858631
301	4	2	299	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002183	2026-07-10 00:35:17.821379
303	4	2	301	card	\N	\N	1	8459	\N	f	1155.00	0.00	BAHL payment (****8459) for invoice INV-002185	2026-07-10 00:41:53.581021
305	4	2	303	card	\N	\N	1	2558	\N	f	360.00	0.00	BAHL payment (****2558) for invoice INV-002187	2026-07-10 00:45:08.793836
307	4	2	305	card	\N	\N	1	2580	\N	f	350.00	0.00	BAHL payment (****2580) for invoice INV-002189	2026-07-10 00:53:43.821618
243	4	2	241	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002110	2026-07-09 22:30:48.437551
380	4	2	375	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002266	2026-07-10 09:12:38.04977
386	4	2	381	cash	\N	\N	\N	\N	\N	f	360.00	0.00	Cash payment for invoice INV-002274	2026-07-10 10:38:57.319285
392	4	2	387	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002281	2026-07-10 11:07:11.758582
398	4	2	393	cash	\N	\N	\N	\N	\N	f	190.00	0.00	Cash payment for invoice INV-002288	2026-07-10 11:21:00.946762
404	4	2	399	card	\N	\N	1	\N	\N	f	732.95	0.00	Card payment for invoice INV-002294	2026-07-10 11:55:55.952563
410	4	2	405	cash	\N	\N	\N	\N	\N	f	870.00	0.00	Cash payment for invoice INV-002296	2026-07-10 12:19:25.098027
416	4	2	411	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002309	2026-07-10 12:31:48.13773
422	4	2	417	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-002315	2026-07-10 13:47:42.669676
428	4	2	423	card	\N	\N	1	\N	\N	f	434.35	0.00	Card payment for invoice INV-002321	2026-07-10 14:04:43.831012
434	4	2	429	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002327	2026-07-10 14:12:20.762045
440	4	2	435	card	\N	\N	1	\N	\N	f	4533.85	0.00	Card payment for invoice INV-002333	2026-07-10 14:22:00.146489
446	4	2	441	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002339	2026-07-10 14:27:38.023903
452	4	2	447	cash	\N	\N	\N	\N	\N	f	771.15	0.00	Cash payment for invoice INV-002345	2026-07-10 14:40:30.36341
458	4	2	453	cash	\N	\N	\N	\N	\N	f	2250.00	0.00	Cash payment for invoice INV-002351	2026-07-10 14:52:54.835441
464	4	2	459	cash	\N	\N	\N	\N	\N	f	398.65	0.00	Cash payment for invoice INV-002357	2026-07-10 15:04:39.88532
470	4	2	465	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002363	2026-07-10 15:11:31.458073
476	4	2	471	card	\N	\N	3	\N	\N	f	3000.00	0.00	Card payment for invoice INV-002370	2026-07-10 15:36:55.086162
482	4	2	477	card	\N	\N	1	\N	\N	f	125.00	0.00	Card payment for invoice INV-002376	2026-07-10 15:44:25.869212
488	4	2	483	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002382	2026-07-10 15:58:07.105201
494	4	2	488	card	\N	\N	1	\N	\N	f	710.00	0.00	Card payment for invoice INV-002388	2026-07-10 16:11:14.629093
500	4	2	\N	cash	\N	\N	\N	\N	\N	f	1.00	0.00	Shift #4 close — transfer to Cash in Hand - Verified cash counted — shift #4 close (JE #505)	2026-07-10 00:00:00
506	4	2	499	card	\N	\N	1	\N	\N	f	600.00	0.00	Card payment for invoice INV-002408	2026-07-10 16:31:08.896509
512	4	2	505	cash	\N	\N	\N	\N	\N	f	340.00	0.00	Cash payment for invoice INV-002420	2026-07-10 16:50:00.194084
518	4	2	511	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002432	2026-07-10 16:57:48.938497
524	4	2	517	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-002438	2026-07-10 17:16:24.025747
313	4	2	311	cash	\N	\N	\N	\N	\N	f	1030.00	0.00	Cash payment for invoice INV-002161	2026-07-10 01:18:58.38887
319	4	2	317	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002203	2026-07-10 01:33:53.271383
325	4	2	323	card	\N	\N	3	\N	WYC2-2628-MDP1	f	2430.00	0.00	Card payment for invoice INV-002211	2026-07-10 01:54:43.360659
331	4	2	329	card	\N	\N	1	\N	\N	f	478.00	0.00	Card payment for invoice INV-002217	2026-07-10 02:03:13.470573
337	4	2	335	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002223	2026-07-10 02:07:56.960478
343	4	2	341	card	\N	\N	1	\N	\N	f	2990.00	0.00	Card payment for invoice INV-002229	2026-07-10 02:11:05.298814
349	4	2	347	cash	\N	\N	\N	\N	\N	f	1224.00	0.00	Cash payment for invoice INV-002235	2026-07-10 02:13:44.665252
355	4	2	353	cash	\N	\N	\N	\N	\N	f	230.00	0.00	Cash payment for invoice INV-002241	2026-07-10 02:15:27.550116
361	4	2	359	card	\N	\N	1	\N	\N	f	506.00	0.00	Card payment for invoice INV-002247	2026-07-10 02:20:04.419136
367	4	2	365	cash	\N	\N	\N	\N	\N	f	490.00	0.00	Cash payment for invoice INV-002253	2026-07-10 02:22:40.549207
373	4	1	\N	cash	\N	\N	\N	\N	\N	f	-150.00	0.00	Cash refund for quick sale return #2	2026-07-10 02:31:28.852812
529	4	2	522	cash	\N	\N	\N	\N	\N	f	151.05	0.00	Cash payment for invoice INV-002446	2026-07-10 17:27:34.099963
535	4	2	528	cash	\N	\N	\N	\N	\N	f	430.00	0.00	Cash payment for invoice INV-002454	2026-07-10 17:38:12.221259
541	4	2	534	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002462	2026-07-10 17:45:14.120288
547	4	2	540	card	\N	\N	1	\N	\N	f	380.00	0.00	Card payment for invoice INV-002466	2026-07-10 17:54:19.085766
553	4	2	546	card	\N	\N	1	\N	\N	f	150.00	0.00	Card payment for invoice INV-002479	2026-07-10 18:02:06.073498
559	4	2	552	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002488	2026-07-10 18:12:07.171102
565	4	2	558	card	\N	\N	1	\N	\N	f	6356.50	0.00	Card payment for invoice INV-002492	2026-07-10 18:30:21.59758
571	4	2	564	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002506	2026-07-10 18:35:47.738741
577	4	2	570	cash	\N	\N	\N	\N	\N	f	1279.00	0.00	Cash payment for invoice INV-002512	2026-07-10 18:48:34.536867
583	4	2	576	cash	\N	\N	\N	\N	\N	f	560.00	0.00	Cash payment for invoice INV-002524	2026-07-10 19:01:54.311623
588	4	2	581	card	\N	\N	1	\N	\N	f	3420.00	0.00	Card payment for invoice INV-002533	2026-07-10 19:11:10.857707
593	4	2	586	cash	\N	\N	\N	\N	\N	f	420.00	0.00	Cash payment for invoice INV-002541	2026-07-10 19:16:56.649995
598	4	2	591	cash	\N	\N	\N	\N	\N	f	840.00	0.00	Cash payment for invoice INV-002551	2026-07-10 19:24:37.7076
667	4	2	660	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002629	2026-07-10 21:05:45.129358
668	4	2	661	cash	\N	\N	\N	\N	\N	f	2099.00	0.00	Cash payment for invoice INV-002636	2026-07-10 21:06:15.435672
669	4	2	662	card	\N	\N	1	\N	\N	f	320.00	0.00	Card payment for invoice INV-002635	2026-07-10 21:06:38.649676
670	4	2	663	card	\N	\N	1	\N	\N	f	717.50	0.00	Card payment for invoice INV-002640	2026-07-10 21:07:34.247883
671	4	2	664	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002641	2026-07-10 21:09:02.213981
672	4	2	665	cash	\N	\N	\N	\N	\N	f	1500.00	0.00	Cash payment for invoice INV-002642	2026-07-10 21:12:14.925284
673	4	2	666	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002644	2026-07-10 21:12:53.734708
674	4	2	667	cash	\N	\N	\N	\N	\N	f	840.90	0.00	Cash payment for invoice INV-002646	2026-07-10 21:14:02.407164
675	4	2	668	cash	\N	\N	\N	\N	\N	f	520.00	0.00	Cash payment for invoice INV-002647	2026-07-10 21:15:14.70388
676	4	2	669	card	\N	\N	1	\N	\N	f	685.00	0.00	Card payment for invoice INV-002648	2026-07-10 21:18:53.874375
677	4	2	670	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-002637	2026-07-10 21:19:48.498178
678	4	2	671	card	\N	\N	1	\N	\N	f	950.00	0.00	Card payment for invoice INV-002650	2026-07-10 21:19:50.82661
679	4	2	672	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002653	2026-07-10 21:20:44.411724
680	4	2	673	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002655	2026-07-10 21:21:37.842726
681	4	2	674	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002656	2026-07-10 21:25:03.064476
682	4	2	675	card	\N	\N	1	\N	\N	f	660.00	0.00	Card payment for invoice INV-002658	2026-07-10 21:32:59.502547
683	4	2	676	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002660	2026-07-10 21:33:52.597503
684	4	2	677	card	\N	\N	1	\N	\N	f	539.80	0.00	Card payment for invoice INV-002651	2026-07-10 21:36:49.810487
685	4	2	678	cash	\N	\N	\N	\N	\N	f	108.00	0.00	Cash payment for invoice INV-002663	2026-07-10 21:37:35.646329
686	4	2	679	cash	\N	\N	\N	\N	\N	f	999.00	0.00	Cash payment for invoice INV-002667	2026-07-10 21:40:54.110019
687	4	2	680	cash	\N	\N	\N	\N	\N	f	2374.00	0.00	Cash payment for invoice INV-002608	2026-07-10 21:41:49.590397
688	4	2	681	card	\N	\N	3	\N	WYC2-2628-VKZR	f	2231.50	0.00	Card payment for invoice INV-002665	2026-07-10 21:42:11.942957
689	4	2	682	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002671	2026-07-10 21:42:19.554083
690	4	2	683	cash	\N	\N	\N	\N	\N	f	288.00	0.00	Cash payment for invoice INV-002674	2026-07-10 21:42:49.472043
691	4	2	684	card	\N	\N	3	\N	wyc2-2628-vhkv	f	690.00	0.00	Card payment for invoice INV-002672	2026-07-10 21:43:19.063935
692	4	2	685	card	\N	\N	1	\N	\N	f	480.00	0.00	Card payment for invoice INV-002675	2026-07-10 21:43:58.043342
693	4	2	686	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002678	2026-07-10 21:44:34.18239
694	4	2	687	card	\N	\N	1	\N	\N	f	940.00	0.00	Card payment for invoice INV-002682	2026-07-10 21:52:46.844217
695	4	2	688	cash	\N	\N	\N	\N	\N	f	700.45	0.00	Cash payment for invoice INV-002676	2026-07-10 21:55:16.867544
696	4	2	689	cash	\N	\N	\N	\N	\N	f	1470.00	0.00	Cash payment for invoice INV-002684	2026-07-10 21:57:38.337583
697	4	2	690	card	\N	\N	3	\N	wyc2-2628-mw1l	f	1240.00	0.00	Card payment for invoice INV-002685	2026-07-10 21:58:12.149939
698	4	2	691	card	\N	\N	1	\N	\N	f	440.00	0.00	Card payment for invoice INV-002688	2026-07-10 22:01:32.918944
699	4	2	692	card	\N	\N	1	\N	\N	f	603.00	0.00	Card payment for invoice INV-002690	2026-07-10 22:02:24.150443
700	4	2	693	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002692	2026-07-10 22:02:55.318261
701	4	2	694	cash	\N	\N	\N	\N	\N	f	80.00	0.00	Cash payment for invoice INV-002687	2026-07-10 22:05:57.559641
702	4	2	695	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002694	2026-07-10 22:08:53.450704
703	4	2	696	card	\N	\N	1	\N	\N	f	515.00	0.00	Card payment for invoice INV-002695	2026-07-10 22:09:54.481048
704	4	2	697	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002696	2026-07-10 22:10:24.819945
705	4	2	698	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-002697	2026-07-10 22:10:59.085671
706	4	2	699	card	\N	\N	1	\N	\N	f	108.00	0.00	Card payment for invoice INV-002698	2026-07-10 22:11:43.702055
707	4	2	700	card	\N	\N	1	\N	\N	f	360.00	0.00	Card payment for invoice INV-002699	2026-07-10 22:12:56.728684
708	4	2	701	cash	\N	\N	\N	\N	\N	f	463.00	0.00	Cash payment for invoice INV-002700	2026-07-10 22:13:34.556018
709	4	2	702	cash	\N	\N	\N	\N	\N	f	360.00	0.00	Cash payment for invoice INV-002701	2026-07-10 22:13:58.910377
710	4	2	703	card	\N	\N	1	\N	\N	f	980.00	0.00	Card payment for invoice INV-002702	2026-07-10 22:15:09.289378
711	4	2	704	card	\N	\N	1	\N	\N	f	2089.50	0.00	Card payment for invoice INV-002703	2026-07-10 22:16:39.071018
712	4	2	705	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002693	2026-07-10 22:17:39.298399
713	4	2	706	cash	\N	\N	\N	\N	\N	f	637.50	0.00	Cash payment for invoice INV-002704	2026-07-10 22:18:04.626246
714	4	2	707	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002705	2026-07-10 22:18:40.759451
715	4	2	708	cash	\N	\N	\N	\N	\N	f	140.00	0.00	Cash payment for invoice INV-002706	2026-07-10 22:19:06.047106
716	4	2	709	card	\N	\N	1	\N	\N	f	2715.80	0.00	Card payment for invoice INV-002709	2026-07-10 22:24:12.071652
717	4	2	710	card	\N	\N	1	\N	\N	f	2340.50	0.00	Card payment for invoice INV-002708	2026-07-10 22:26:00.917147
718	4	2	711	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-002711	2026-07-10 22:26:08.098257
719	4	1	704	cash	\N	\N	\N	\N	\N	f	-2089.50	0.00	Cash refund for sale return #4 (Sale #704)	2026-07-10 22:27:52.646589
720	4	2	712	cash	\N	\N	\N	\N	\N	f	1297.50	0.00	Cash payment for invoice INV-002714	2026-07-10 22:29:05.148024
721	4	2	713	card	\N	\N	1	\N	\N	f	789.50	0.00	Card payment for invoice INV-002716	2026-07-10 22:30:49.900647
722	4	2	714	cash	\N	\N	\N	\N	\N	f	923.00	0.00	Cash payment for invoice INV-002718	2026-07-10 22:31:51.912984
723	4	2	715	cash	\N	\N	\N	\N	\N	f	775.00	0.00	Cash payment for invoice INV-002720	2026-07-10 22:33:01.853317
724	4	2	716	cash	\N	\N	\N	\N	\N	f	2210.00	0.00	Cash payment for invoice INV-002712	2026-07-10 22:33:55.268619
725	4	2	717	cash	\N	\N	\N	\N	\N	f	99.00	0.00	Cash payment for invoice INV-002723	2026-07-10 22:35:45.884939
726	4	2	718	card	\N	\N	1	\N	\N	f	460.00	0.00	Card payment for invoice INV-002722	2026-07-10 22:35:55.105565
727	4	2	719	card	\N	\N	1	\N	\N	f	3000.65	0.00	Card payment for invoice INV-002726	2026-07-10 22:41:43.14149
728	4	2	720	card	\N	\N	3	\N	wyc2-2628-2gey	f	555.00	0.00	Card payment for invoice INV-002725	2026-07-10 22:48:20.60204
729	4	2	721	card	\N	\N	3	\N	wyc2-2628-u9ka	f	690.00	0.00	Card payment for invoice INV-002728	2026-07-10 22:49:59.830245
730	4	2	722	card	\N	\N	1	\N	\N	f	690.00	0.00	Card payment for invoice INV-002727	2026-07-10 22:50:53.398992
731	4	2	723	cash	\N	\N	\N	\N	\N	f	2099.00	0.00	Cash payment for invoice INV-002731	2026-07-10 22:53:02.192636
732	4	2	724	cash	\N	\N	\N	\N	\N	f	190.00	0.00	Cash payment for invoice INV-002729	2026-07-10 22:56:02.374683
733	4	2	725	cash	\N	\N	\N	\N	\N	f	637.50	0.00	Cash payment for invoice INV-002734	2026-07-10 22:56:59.500104
734	4	2	726	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002733	2026-07-10 23:00:55.611645
735	4	2	727	cash	\N	\N	\N	\N	\N	f	135.00	0.00	Cash payment for invoice INV-002736	2026-07-10 23:02:28.763882
736	4	2	728	card	\N	\N	1	\N	\N	f	430.00	0.00	Card payment for invoice INV-002737	2026-07-10 23:04:28.020966
737	4	2	729	cash	\N	\N	\N	\N	\N	f	480.00	0.00	Cash payment for invoice INV-002738	2026-07-10 23:09:10.211807
738	4	2	730	card	\N	\N	1	\N	\N	f	789.00	0.00	Card payment for invoice INV-002739	2026-07-10 23:10:34.297004
739	4	2	731	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-002735	2026-07-10 23:16:27.171307
740	4	2	732	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002742	2026-07-10 23:18:02.9192
741	4	2	733	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002744	2026-07-10 23:18:49.060278
742	4	2	734	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002740	2026-07-10 23:20:35.827262
743	4	2	735	cash	\N	\N	\N	\N	\N	f	332.45	0.00	Cash payment for invoice INV-002746	2026-07-10 23:23:35.463506
744	4	2	736	card	\N	\N	1	\N	\N	f	220.00	0.00	Card payment for invoice INV-002747	2026-07-10 23:26:58.900241
745	4	2	737	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002748	2026-07-10 23:28:08.741686
746	4	2	738	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002749	2026-07-10 23:30:22.208923
747	4	2	739	card	\N	\N	1	\N	\N	f	100.00	0.00	Card payment for invoice INV-002750	2026-07-10 23:31:31.203665
748	4	2	740	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002751	2026-07-10 23:35:15.564418
749	4	2	741	cash	\N	\N	\N	\N	\N	f	990.00	0.00	Cash payment for invoice INV-002752	2026-07-10 23:36:08.310718
750	4	2	742	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002753	2026-07-10 23:37:50.804716
751	4	2	743	card	\N	\N	1	\N	\N	f	640.00	0.00	Card payment for invoice INV-002754	2026-07-10 23:44:13.092715
752	4	2	744	card	\N	\N	1	\N	\N	f	998.00	0.00	Card payment for invoice INV-002756	2026-07-10 23:45:37.156864
753	4	2	745	bank	1	\N	\N	\N	\N	f	2224.00	0.00	Bank payment for invoice INV-002759	2026-07-10 23:46:34.608487
754	4	2	746	cash	\N	\N	\N	\N	\N	f	1850.00	0.00	Cash payment for invoice INV-002760	2026-07-10 23:47:16.850543
755	4	2	747	card	\N	\N	1	\N	\N	f	500.00	0.00	Card payment for invoice INV-002761	2026-07-10 23:52:30.058811
756	4	2	748	cash	\N	\N	\N	\N	\N	f	333.00	0.00	Cash payment for invoice INV-002764	2026-07-10 23:53:32.780751
757	4	2	749	card	\N	\N	1	\N	\N	f	2489.00	0.00	Card payment for invoice INV-002765	2026-07-10 23:55:03.754915
758	4	2	750	card	\N	\N	3	\N	wyc2-2628-2ttv	f	690.00	0.00	Card payment for invoice INV-002766	2026-07-10 23:55:36.402457
759	4	2	751	card	\N	\N	1	\N	\N	f	789.00	0.00	Card payment for invoice INV-002767	2026-07-11 00:03:08.523872
760	4	2	752	cash	\N	\N	\N	\N	\N	f	190.80	0.00	Cash payment for invoice INV-002769	2026-07-11 00:05:57.513698
761	4	2	753	cash	\N	\N	\N	\N	\N	f	2190.00	0.00	Cash payment for invoice INV-002771	2026-07-11 00:10:12.067134
762	4	2	754	card	\N	\N	1	\N	\N	f	350.00	0.00	Card payment for invoice INV-002774	2026-07-11 00:13:14.726886
763	4	2	755	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002773	2026-07-11 00:14:53.181639
764	4	2	756	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002775	2026-07-11 00:15:39.333872
765	4	2	757	card	\N	\N	1	\N	\N	f	179.00	0.00	Card payment for invoice INV-002777	2026-07-11 00:17:34.553669
766	4	2	758	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002776	2026-07-11 00:18:56.345359
767	4	2	759	card	\N	\N	1	\N	\N	f	633.15	0.00	Card payment for invoice INV-002780	2026-07-11 00:19:51.783892
768	4	2	760	card	\N	\N	1	\N	\N	f	476.00	0.00	Card payment for invoice INV-002781	2026-07-11 00:20:10.31625
769	4	2	761	card	\N	\N	1	\N	\N	f	1590.00	0.00	Card payment for invoice INV-002782	2026-07-11 00:24:43.413965
770	4	2	762	cash	\N	\N	\N	\N	\N	f	3024.00	0.00	Cash payment for invoice INV-002784	2026-07-11 00:27:19.419516
771	4	2	763	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002785	2026-07-11 00:27:45.855669
772	4	2	764	card	\N	\N	3	\N	WYC2-2628-AH35	f	850.00	0.00	Card payment for invoice INV-002786	2026-07-11 00:28:31.381913
773	4	2	765	cash	\N	\N	\N	\N	\N	f	2449.00	0.00	Cash payment for invoice INV-002787	2026-07-11 00:29:32.640036
774	4	2	766	cash	\N	\N	\N	\N	\N	f	949.00	0.00	Cash payment for invoice INV-002612	2026-07-11 00:30:45.75221
775	4	2	767	cash	\N	\N	\N	\N	\N	f	2374.00	0.00	Cash payment for invoice INV-002661	2026-07-11 00:32:22.767915
776	4	2	768	cash	\N	\N	\N	\N	\N	f	625.00	0.00	Cash payment for invoice INV-002666	2026-07-11 00:32:58.2765
777	4	2	769	cash	\N	\N	\N	\N	\N	f	2249.00	0.00	Cash payment for invoice INV-002683	2026-07-11 00:33:42.080793
778	4	2	770	cash	\N	\N	\N	\N	\N	f	2249.00	0.00	Cash payment for invoice INV-002724	2026-07-11 00:35:07.046969
779	4	2	771	cash	\N	\N	\N	\N	\N	f	780.00	0.00	Cash payment for invoice INV-002788	2026-07-11 00:40:57.723105
780	4	2	772	card	\N	\N	1	\N	\N	f	400.00	0.00	Card payment for invoice INV-002795	2026-07-11 00:46:59.169556
781	4	2	\N	cash	\N	\N	\N	\N	\N	f	-105944.55	0.00	Shift #5 close — transfer to Cash in Hand - Clear POS drawer — shift #5 close (JE #789)	2026-07-11 00:00:00
782	4	2	\N	cash	\N	\N	\N	\N	\N	f	105670.00	0.00	Shift #5 close — transfer to Cash in Hand - Verified cash counted — shift #5 close (JE #789)	2026-07-11 00:00:00
783	4	2	773	cash	\N	\N	\N	\N	\N	f	500.00	0.00	Cash payment for invoice INV-002796	2026-07-11 00:51:25.386526
784	4	2	774	card	\N	\N	1	\N	\N	f	2099.00	0.00	Card payment for invoice INV-002797	2026-07-11 00:53:24.944584
785	4	2	775	card	\N	\N	1	\N	\N	f	490.00	0.00	Card payment for invoice INV-002798	2026-07-11 00:54:22.337638
786	4	2	776	cash	\N	\N	\N	\N	\N	f	935.00	0.00	Cash payment for invoice INV-002799	2026-07-11 00:54:54.875319
787	4	2	777	cash	\N	\N	\N	\N	\N	f	92.00	0.00	Cash payment for invoice INV-002800	2026-07-11 00:55:36.348428
788	4	2	778	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002801	2026-07-11 00:57:20.180724
789	4	2	779	card	\N	\N	1	\N	\N	f	240.00	0.00	Card payment for invoice INV-002802	2026-07-11 00:58:46.217983
790	4	2	780	card	\N	\N	1	\N	\N	f	310.00	0.00	Card payment for invoice INV-002803	2026-07-11 00:59:10.048763
791	4	2	781	card	\N	\N	3	\N	WYC2-2628-D71R	f	1320.00	0.00	Card payment for invoice INV-002804	2026-07-11 01:03:19.824089
792	4	2	782	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002805	2026-07-11 01:03:44.212985
793	4	2	783	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002806	2026-07-11 01:05:16.397556
794	4	2	784	cash	\N	\N	\N	\N	\N	f	2099.00	0.00	Cash payment for invoice INV-002807	2026-07-11 01:06:13.01674
795	4	2	785	card	\N	\N	3	\N	WYC2-2628-ZOTD	f	1690.00	0.00	Card payment for invoice INV-002808	2026-07-11 01:07:39.768573
796	4	2	786	cash	\N	\N	\N	\N	\N	f	1870.00	0.00	Cash payment for invoice INV-002809	2026-07-11 01:09:45.160841
797	4	2	787	cash	\N	\N	\N	\N	\N	f	1080.00	0.00	Cash payment for invoice INV-002810	2026-07-11 01:21:11.280867
798	4	2	788	card	\N	\N	3	\N	WYC2-2628-UJNT	f	1340.00	0.00	Card payment for invoice INV-002811	2026-07-11 01:23:39.083079
799	4	2	789	cash	\N	\N	\N	\N	\N	f	515.00	0.00	Cash payment for invoice INV-002812	2026-07-11 01:25:01.059821
800	4	2	790	card	\N	\N	3	\N	WYC2-2628-CPC4	f	555.00	0.00	Card payment for invoice INV-002813	2026-07-11 01:29:08.959227
801	4	2	791	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-002814	2026-07-11 01:38:57.512547
802	4	1	791	cash	\N	\N	\N	\N	\N	f	-100.00	0.00	Cash refund for sale return #5 (Sale #791)	2026-07-11 01:40:53.249579
803	4	2	792	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002815	2026-07-11 01:41:16.386619
804	4	2	793	card	\N	\N	1	\N	\N	f	746.85	0.00	Card payment for invoice INV-002816	2026-07-11 01:51:30.644166
805	4	2	\N	cash	\N	\N	\N	\N	\N	f	-74282.57	0.00	Shift #6 close — transfer to Cash in Hand - Clear POS drawer — shift #6 close (JE #812)	2026-07-11 00:00:00
806	4	2	\N	cash	\N	\N	\N	\N	\N	f	76310.00	0.00	Shift #6 close — transfer to Cash in Hand - Verified cash counted — shift #6 close (JE #812)	2026-07-11 00:00:00
807	4	2	794	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002821	2026-07-11 08:58:49.058678
808	4	2	795	cash	\N	\N	\N	\N	\N	f	470.00	0.00	Cash payment for invoice INV-002822	2026-07-11 09:10:23.177601
809	4	2	796	cash	\N	\N	\N	\N	\N	f	54.00	0.00	Cash payment for invoice INV-002823	2026-07-11 09:12:25.697439
810	4	2	797	cash	\N	\N	\N	\N	\N	f	1600.25	0.00	Cash payment for invoice INV-002824	2026-07-11 09:21:10.321185
811	4	2	798	cash	\N	\N	\N	\N	\N	f	486.00	0.00	Cash payment for invoice INV-002825	2026-07-11 10:15:38.381311
812	4	2	799	card	\N	\N	1	\N	\N	f	1469.00	0.00	Card payment for invoice INV-002826	2026-07-11 10:22:54.342767
813	4	2	800	cash	\N	\N	\N	\N	\N	f	1712.00	0.00	Cash payment for invoice INV-002828	2026-07-11 10:38:06.197789
814	4	2	801	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002829	2026-07-11 10:42:39.218018
815	4	2	802	card	\N	\N	1	\N	\N	f	1470.75	0.00	Card payment for invoice INV-002830	2026-07-11 10:47:55.23209
816	4	2	803	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002831	2026-07-11 10:49:01.225517
817	4	2	804	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002832	2026-07-11 10:51:54.98306
818	4	2	805	cash	\N	\N	\N	\N	\N	f	795.00	0.00	Cash payment for invoice INV-002833	2026-07-11 10:55:01.316493
819	4	2	806	card	\N	\N	1	\N	\N	f	939.00	0.00	Card payment for invoice INV-002827	2026-07-11 10:56:32.199433
820	4	2	807	card	\N	\N	1	\N	\N	f	1000.00	0.00	Card payment for invoice INV-002835	2026-07-11 10:58:27.828316
821	4	2	808	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-002836	2026-07-11 11:04:28.101874
822	4	2	809	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002837	2026-07-11 11:10:18.205567
823	4	2	810	cash	\N	\N	\N	\N	\N	f	2443.00	0.00	Cash payment for invoice INV-002838	2026-07-11 11:17:29.861809
824	4	2	811	cash	\N	\N	\N	\N	\N	f	859.60	0.00	Cash payment for invoice INV-002839	2026-07-11 11:23:46.418386
825	4	2	812	cash	\N	\N	\N	\N	\N	f	1000.00	0.00	Cash payment for invoice INV-002840	2026-07-11 11:26:15.265607
826	4	2	813	card	\N	\N	1	\N	\N	f	50.00	0.00	Card payment for invoice INV-002841	2026-07-11 11:33:18.241539
827	4	2	814	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-002842	2026-07-11 11:34:52.792082
828	4	2	815	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002843	2026-07-11 11:41:28.020504
829	4	2	816	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002844	2026-07-11 11:44:51.010719
830	4	2	817	cash	\N	\N	\N	\N	\N	f	430.00	0.00	Cash payment for invoice INV-002845	2026-07-11 11:45:25.7276
831	4	2	818	card	\N	\N	1	\N	\N	f	370.00	0.00	Card payment for invoice INV-002846	2026-07-11 11:46:08.817263
832	4	2	819	cash	\N	\N	\N	\N	\N	f	650.00	0.00	Cash payment for invoice INV-002847	2026-07-11 11:52:38.170825
833	4	2	820	cash	\N	\N	\N	\N	\N	f	1590.00	0.00	Cash payment for invoice INV-002848	2026-07-11 11:55:46.295051
834	4	2	821	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002849	2026-07-11 11:56:42.660368
835	4	2	822	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-002850	2026-07-11 12:02:29.878053
836	4	2	823	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002851	2026-07-11 12:02:52.917892
837	4	2	824	cash	\N	\N	\N	\N	\N	f	1940.90	0.00	Cash payment for invoice INV-002852	2026-07-11 12:03:44.758491
838	4	2	825	card	\N	\N	1	\N	\N	f	646.00	0.00	Card payment for invoice INV-002853	2026-07-11 12:04:36.954219
839	4	2	826	card	\N	\N	1	\N	\N	f	350.00	0.00	Card payment for invoice INV-002854	2026-07-11 12:08:44.894757
840	4	2	827	cash	\N	\N	\N	\N	\N	f	80.00	0.00	Cash payment for invoice INV-002856	2026-07-11 12:09:19.352204
841	4	2	828	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-002857	2026-07-11 12:10:00.031164
842	4	2	829	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-002858	2026-07-11 12:12:04.609757
843	4	2	830	card	\N	\N	3	\N	WYC2-2628-NH08	f	1099.00	0.00	Card payment for invoice INV-002859	2026-07-11 12:15:15.671716
844	4	2	831	cash	\N	\N	\N	\N	\N	f	574.00	0.00	Cash payment for invoice INV-002860	2026-07-11 12:18:25.410269
845	4	2	832	cash	\N	\N	\N	\N	\N	f	153.00	0.00	Cash payment for invoice INV-002861	2026-07-11 12:19:19.497717
846	4	2	833	cash	\N	\N	\N	\N	\N	f	70.00	0.00	Cash payment for invoice INV-002862	2026-07-11 12:20:25.420014
847	4	2	834	cash	\N	\N	\N	\N	\N	f	342.00	0.00	Cash payment for invoice INV-002863	2026-07-11 12:31:30.374093
848	4	2	835	card	\N	\N	1	\N	\N	f	939.00	0.00	Card payment for invoice INV-002864	2026-07-11 12:33:14.57842
849	4	2	836	card	\N	\N	1	\N	\N	f	770.00	0.00	Card payment for invoice INV-002865	2026-07-11 12:39:10.866818
850	4	2	837	card	\N	\N	1	\N	\N	f	378.00	0.00	Card payment for invoice INV-002866	2026-07-11 12:43:27.122084
851	4	2	838	card	\N	\N	1	\N	\N	f	4470.00	0.00	Card payment for invoice INV-002867	2026-07-11 13:06:29.444837
852	4	2	839	cash	\N	\N	\N	\N	\N	f	216.00	0.00	Cash payment for invoice INV-002868	2026-07-11 13:10:52.76163
853	4	2	840	cash	\N	\N	\N	\N	\N	f	153.00	0.00	Cash payment for invoice INV-002869	2026-07-11 13:13:04.670123
854	4	2	841	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002871	2026-07-11 13:19:39.905584
855	4	2	842	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-002872	2026-07-11 13:24:29.238603
856	4	2	843	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002873	2026-07-11 13:25:29.259201
857	4	2	844	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002874	2026-07-11 13:25:52.943587
858	4	2	845	cash	\N	\N	\N	\N	\N	f	640.00	0.00	Cash payment for invoice INV-002875	2026-07-11 13:30:26.302978
859	4	2	846	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-002876	2026-07-11 13:31:20.101862
860	4	2	847	card	\N	\N	3	\N	wyc2-2628-yzqx	f	700.00	0.00	Card payment for invoice INV-002877	2026-07-11 13:31:57.510292
861	4	2	848	cash	\N	\N	\N	\N	\N	f	140.00	0.00	Cash payment for invoice INV-002878	2026-07-11 13:33:10.764452
862	4	2	849	cash	\N	\N	\N	\N	\N	f	2249.00	0.00	Cash payment for invoice INV-002870	2026-07-11 13:41:00.518884
863	4	2	850	cash	\N	\N	\N	\N	\N	f	3912.51	0.00	Cash payment for invoice INV-002880	2026-07-11 13:48:45.011469
864	4	2	851	cash	\N	\N	\N	\N	\N	f	740.00	0.00	Cash payment for invoice INV-002881	2026-07-11 13:55:33.49168
865	4	2	852	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002883	2026-07-11 14:02:54.450367
866	4	2	853	card	\N	\N	1	\N	\N	f	100.00	0.00	Card payment for invoice INV-002885	2026-07-11 14:05:41.489469
867	4	2	854	card	\N	\N	1	\N	\N	f	2129.60	0.00	Card payment for invoice INV-002887	2026-07-11 14:07:20.303658
868	4	2	855	card	\N	\N	1	\N	\N	f	539.55	0.00	Card payment for invoice INV-002889	2026-07-11 14:07:59.861859
869	4	2	856	cash	\N	\N	\N	\N	\N	f	283.40	0.00	Cash payment for invoice INV-002891	2026-07-11 14:09:33.134473
870	4	2	857	cash	\N	\N	\N	\N	\N	f	315.00	0.00	Cash payment for invoice INV-002892	2026-07-11 14:34:07.788924
871	4	2	858	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002894	2026-07-11 14:35:13.922151
872	4	2	859	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002896	2026-07-11 14:36:01.971172
873	4	2	860	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-002897	2026-07-11 14:39:07.449887
874	4	2	861	cash	\N	\N	\N	\N	\N	f	600.00	0.00	Cash payment for invoice INV-002898	2026-07-11 14:41:02.493246
875	4	2	862	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-002900	2026-07-11 14:42:45.654392
876	4	2	863	card	\N	\N	1	\N	\N	f	1451.00	0.00	Card payment for invoice INV-002902	2026-07-11 14:52:37.760674
877	4	2	864	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002904	2026-07-11 15:02:19.228095
878	4	2	865	cash	\N	\N	\N	\N	\N	f	520.00	0.00	Cash payment for invoice INV-002906	2026-07-11 15:05:53.644379
879	4	2	866	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-002908	2026-07-11 15:07:03.906385
880	4	2	867	card	\N	\N	1	\N	\N	f	7722.70	0.00	Card payment for invoice INV-002911	2026-07-11 15:19:16.413281
881	4	2	868	cash	\N	\N	\N	\N	\N	f	190.00	0.00	Cash payment for invoice INV-002913	2026-07-11 15:19:39.240087
882	4	2	869	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002915	2026-07-11 15:20:11.466084
883	4	2	870	card	\N	\N	1	\N	\N	f	870.00	0.00	Card payment for invoice INV-002917	2026-07-11 15:20:56.086985
884	4	2	871	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-002919	2026-07-11 15:21:43.525398
885	4	2	872	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-002921	2026-07-11 15:22:30.029951
886	4	2	873	card	\N	\N	1	\N	\N	f	698.00	0.00	Card payment for invoice INV-002923	2026-07-11 15:23:12.16403
887	4	2	874	cash	\N	\N	\N	\N	\N	f	640.00	0.00	Cash payment for invoice INV-002924	2026-07-11 15:23:43.05771
888	4	2	875	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-002926	2026-07-11 15:29:39.661027
889	4	2	876	cash	\N	\N	\N	\N	\N	f	680.00	0.00	Cash payment for invoice INV-002928	2026-07-11 15:31:04.098176
890	4	2	877	card	\N	\N	1	\N	\N	f	210.00	0.00	Card payment for invoice INV-002931	2026-07-11 15:34:49.961191
891	4	2	878	card	\N	\N	1	\N	\N	f	1300.85	0.00	Card payment for invoice INV-002933	2026-07-11 15:38:29.591377
892	4	2	879	cash	\N	\N	\N	\N	\N	f	2212.50	0.00	Cash payment for invoice INV-002935	2026-07-11 15:40:08.842457
893	4	2	880	card	\N	\N	1	\N	\N	f	1620.00	0.00	Card payment for invoice INV-002937	2026-07-11 15:42:18.227958
894	4	2	881	card	\N	\N	1	\N	\N	f	980.00	0.00	Card payment for invoice INV-002939	2026-07-11 15:42:57.194742
895	4	2	882	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002941	2026-07-11 15:45:26.799957
896	4	2	883	card	\N	\N	1	\N	\N	f	526.00	0.00	Card payment for invoice INV-002943	2026-07-11 15:46:14.751456
897	4	2	884	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-002945	2026-07-11 15:46:52.090001
898	4	2	885	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-002946	2026-07-11 15:56:48.091561
899	4	2	886	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-002948	2026-07-11 15:59:26.946399
900	4	2	887	cash	\N	\N	\N	\N	\N	f	160.00	0.00	Cash payment for invoice INV-002950	2026-07-11 16:00:13.030841
901	4	2	888	card	\N	\N	1	\N	\N	f	2365.25	0.00	Card payment for invoice INV-002951	2026-07-11 16:02:01.534052
902	4	2	889	cash	\N	\N	\N	\N	\N	f	690.00	0.00	Cash payment for invoice INV-002952	2026-07-11 16:06:49.847766
903	4	2	890	cash	\N	\N	\N	\N	\N	f	289.00	0.00	Cash payment for invoice INV-002953	2026-07-11 16:14:05.811412
904	4	2	891	card	\N	\N	1	\N	\N	f	1584.55	0.00	Card payment for invoice INV-002954	2026-07-11 16:15:53.192237
905	4	2	892	card	\N	\N	1	\N	\N	f	790.00	0.00	Card payment for invoice INV-002955	2026-07-11 16:16:24.938376
906	4	2	893	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-002956	2026-07-11 16:16:43.557507
907	4	2	894	card	\N	\N	1	\N	\N	f	1584.15	0.00	Card payment for invoice INV-002957	2026-07-11 16:23:02.366021
908	4	2	895	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002958	2026-07-11 16:25:07.636897
909	4	2	896	card	\N	\N	1	\N	\N	f	640.00	0.00	Card payment for invoice INV-002959	2026-07-11 16:28:21.14607
910	4	2	897	cash	\N	\N	\N	\N	\N	f	1621.80	0.00	Cash payment for invoice INV-002960	2026-07-11 16:29:34.89122
911	4	2	898	cash	\N	\N	\N	\N	\N	f	414.00	0.00	Cash payment for invoice INV-002961	2026-07-11 16:30:54.952084
912	4	2	899	cash	\N	\N	\N	\N	\N	f	80.00	0.00	Cash payment for invoice INV-002962	2026-07-11 16:33:48.458221
913	4	2	900	cash	\N	\N	\N	\N	\N	f	659.45	0.00	Cash payment for invoice INV-002963	2026-07-11 16:34:36.18503
914	4	2	901	cash	\N	\N	\N	\N	\N	f	613.40	0.00	Cash payment for invoice INV-002964	2026-07-11 16:36:07.728544
915	4	2	902	card	\N	\N	1	\N	\N	f	180.00	0.00	Card payment for invoice INV-002965	2026-07-11 16:37:37.566868
916	4	2	903	card	\N	\N	1	\N	\N	f	522.00	0.00	Card payment for invoice INV-002966	2026-07-11 16:40:41.171648
917	4	2	904	cash	\N	\N	\N	\N	\N	f	2055.90	0.00	Cash payment for invoice INV-002967	2026-07-11 16:41:25.837048
918	4	2	905	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-002969	2026-07-11 16:42:59.377348
919	4	2	906	easypaisa	1	\N	\N	\N	\N	f	180.00	0.00	Easypaisa payment for invoice INV-002971	2026-07-11 16:43:50.939663
920	4	2	907	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-002972	2026-07-11 16:47:45.120987
921	4	2	908	cash	\N	\N	\N	\N	\N	f	705.00	0.00	Cash payment for invoice INV-002903	2026-07-11 16:50:28.58369
922	4	2	909	cash	\N	\N	\N	\N	\N	f	1650.00	0.00	Cash payment for invoice INV-002932	2026-07-11 16:50:53.728841
923	4	2	910	cash	\N	\N	\N	\N	\N	f	2149.00	0.00	Cash payment for invoice INV-002905	2026-07-11 16:51:17.652048
924	4	2	911	card	\N	\N	1	\N	\N	f	566.00	0.00	Card payment for invoice INV-002976	2026-07-11 16:53:13.029334
925	4	2	912	cash	\N	\N	\N	\N	\N	f	450.00	0.00	Cash payment for invoice INV-002978	2026-07-11 16:54:10.471835
926	4	2	913	card	\N	\N	1	\N	\N	f	1070.60	0.00	Card payment for invoice INV-002980	2026-07-11 16:58:19.264481
927	4	2	914	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-002981	2026-07-11 17:01:53.427564
928	4	2	915	card	\N	\N	1	\N	\N	f	1077.50	0.00	Card payment for invoice INV-002982	2026-07-11 17:07:49.594781
929	4	2	916	cash	\N	\N	\N	\N	\N	f	144.00	0.00	Cash payment for invoice INV-002983	2026-07-11 17:13:17.398452
930	4	2	917	card	\N	\N	1	\N	\N	f	550.00	0.00	Card payment for invoice INV-002984	2026-07-11 17:15:18.827914
931	4	2	918	cash	\N	\N	\N	\N	\N	f	2167.50	0.00	Cash payment for invoice INV-002985	2026-07-11 17:21:40.951202
932	4	2	919	card	\N	\N	1	\N	\N	f	1350.00	0.00	Card payment for invoice INV-002988	2026-07-11 17:26:06.288466
933	4	2	920	card	\N	\N	1	\N	\N	f	2484.85	0.00	Card payment for invoice INV-002990	2026-07-11 17:27:18.426459
934	4	2	921	card	\N	\N	1	\N	\N	f	490.00	0.00	Card payment for invoice INV-002991	2026-07-11 17:29:22.409884
935	4	2	922	card	\N	\N	1	\N	\N	f	600.00	0.00	Card payment for invoice INV-002992	2026-07-11 17:31:53.61591
936	4	2	923	card	\N	\N	1	\N	\N	f	850.00	0.00	Card payment for invoice INV-002993	2026-07-11 17:36:05.062262
937	4	2	924	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-002995	2026-07-11 17:38:30.345897
938	4	2	925	card	\N	\N	1	\N	\N	f	3152.50	0.00	Card payment for invoice INV-002997	2026-07-11 17:40:05.825492
939	4	2	926	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-002999	2026-07-11 17:40:38.659512
940	4	2	927	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-003001	2026-07-11 17:41:49.034973
941	4	2	928	cash	\N	\N	\N	\N	\N	f	228.90	0.00	Cash payment for invoice INV-003004	2026-07-11 17:46:53.519728
942	4	2	929	card	\N	\N	1	\N	\N	f	200.00	0.00	Card payment for invoice INV-003006	2026-07-11 17:47:34.240751
943	4	2	930	card	\N	\N	1	\N	\N	f	4735.65	0.00	Card payment for invoice INV-003010	2026-07-11 17:49:30.638396
944	4	2	931	cash	\N	\N	\N	\N	\N	f	453.00	0.00	Cash payment for invoice INV-003012	2026-07-11 17:49:56.129769
945	4	2	932	cash	\N	\N	\N	\N	\N	f	370.00	0.00	Cash payment for invoice INV-003014	2026-07-11 17:50:28.18437
946	4	2	933	cash	\N	\N	\N	\N	\N	f	290.00	0.00	Cash payment for invoice INV-003016	2026-07-11 17:50:57.841202
947	4	2	934	cash	\N	\N	\N	\N	\N	f	1670.00	0.00	Cash payment for invoice INV-003019	2026-07-11 17:53:02.233434
948	4	2	935	cash	\N	\N	\N	\N	\N	f	830.00	0.00	Cash payment for invoice INV-003021	2026-07-11 17:53:38.044174
949	4	2	936	cash	\N	\N	\N	\N	\N	f	410.00	0.00	Cash payment for invoice INV-003022	2026-07-11 17:54:48.5694
950	4	2	937	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-003023	2026-07-11 17:55:43.249593
951	4	2	938	card	\N	\N	1	\N	\N	f	460.00	0.00	Card payment for invoice INV-003025	2026-07-11 17:56:21.984571
952	4	2	939	card	\N	\N	1	\N	\N	f	1071.75	0.00	Card payment for invoice INV-003027	2026-07-11 17:57:17.670251
953	4	2	940	card	\N	\N	1	\N	\N	f	350.00	0.00	Card payment for invoice INV-003029	2026-07-11 17:58:35.806746
954	4	2	941	cash	\N	\N	\N	\N	\N	f	430.00	0.00	Cash payment for invoice INV-003030	2026-07-11 18:02:12.927145
955	4	2	942	cash	\N	\N	\N	\N	\N	f	240.00	0.00	Cash payment for invoice INV-003032	2026-07-11 18:05:34.913675
956	4	2	943	card	\N	\N	1	\N	\N	f	1062.50	0.00	Card payment for invoice INV-003033	2026-07-11 18:06:12.832084
957	4	2	944	cash	\N	\N	\N	\N	\N	f	1577.55	0.00	Cash payment for invoice INV-003035	2026-07-11 18:07:40.586023
958	4	2	945	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-003039	2026-07-11 18:09:17.676676
959	4	2	946	card	\N	\N	1	\N	\N	f	200.00	0.00	Card payment for invoice INV-003041	2026-07-11 18:09:54.134186
960	4	2	947	card	\N	\N	1	\N	\N	f	945.45	0.00	Card payment for invoice INV-003045	2026-07-11 18:12:46.04864
961	4	2	948	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-003047	2026-07-11 18:13:25.80514
962	4	2	949	cash	\N	\N	\N	\N	\N	f	350.00	0.00	Cash payment for invoice INV-003049	2026-07-11 18:14:07.940085
963	4	2	950	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003051	2026-07-11 18:15:37.868376
964	4	2	951	cash	\N	\N	\N	\N	\N	f	710.60	0.00	Cash payment for invoice INV-003052	2026-07-11 18:24:47.896771
965	4	2	952	card	\N	\N	1	\N	\N	f	2099.00	0.00	Card payment for invoice INV-003053	2026-07-11 18:25:56.832064
966	4	2	953	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-003054	2026-07-11 18:27:24.377429
967	4	2	954	cash	\N	\N	\N	\N	\N	f	288.00	0.00	Cash payment for invoice INV-003055	2026-07-11 18:28:10.456141
968	4	2	955	card	\N	\N	1	\N	\N	f	160.00	0.00	Card payment for invoice INV-003044	2026-07-11 18:30:59.792515
969	4	2	956	cash	\N	\N	\N	\N	\N	f	977.50	0.00	Cash payment for invoice INV-003057	2026-07-11 18:31:40.960481
970	4	2	957	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-003060	2026-07-11 18:32:47.594067
971	4	2	958	cash	\N	\N	\N	\N	\N	f	530.00	0.00	Cash payment for invoice INV-003061	2026-07-11 18:36:36.596892
972	4	2	959	card	\N	\N	1	\N	\N	f	1354.50	0.00	Card payment for invoice INV-003058	2026-07-11 18:37:25.901766
973	4	2	960	card	\N	\N	1	\N	\N	f	2609.00	0.00	Card payment for invoice INV-003062	2026-07-11 18:41:42.123528
974	4	2	961	cash	\N	\N	\N	\N	\N	f	370.00	0.00	Cash payment for invoice INV-003065	2026-07-11 18:42:22.52512
975	4	2	962	cash	\N	\N	\N	\N	\N	f	1955.00	0.00	Cash payment for invoice INV-003066	2026-07-11 18:43:19.037828
976	4	1	\N	cash	\N	\N	\N	\N	\N	f	-510.00	0.00	Cash refund for quick sale return #6	2026-07-11 18:44:22.153612
977	4	2	963	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-003067	2026-07-11 18:44:50.354462
978	4	2	964	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003063	2026-07-11 18:51:13.181402
979	4	2	965	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-003068	2026-07-11 18:52:56.457595
980	4	2	966	cash	\N	\N	\N	\N	\N	f	1370.00	0.00	Cash payment for invoice INV-003070	2026-07-11 18:53:47.237771
981	4	2	967	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-003071	2026-07-11 18:55:26.243825
982	4	2	968	card	\N	\N	1	\N	\N	f	1240.00	0.00	Card payment for invoice INV-003073	2026-07-11 18:56:36.482627
983	4	2	969	cash	\N	\N	\N	\N	\N	f	195.00	0.00	Cash payment for invoice INV-003074	2026-07-11 18:57:49.168693
984	4	2	970	easypaisa	2	\N	\N	\N	\N	f	2630.00	0.00	Easypaisa payment for invoice INV-002986	2026-07-11 18:58:40.260813
985	4	2	971	cash	\N	\N	\N	\N	\N	f	245.25	0.00	Cash payment for invoice INV-003076	2026-07-11 19:01:36.750205
986	4	2	972	card	\N	\N	1	\N	\N	f	1062.50	0.00	Card payment for invoice INV-003069	2026-07-11 19:06:13.938231
987	4	2	973	card	\N	\N	1	\N	\N	f	975.00	0.00	Card payment for invoice INV-003078	2026-07-11 19:08:53.695981
988	4	2	974	card	\N	\N	1	\N	\N	f	390.00	0.00	Card payment for invoice INV-003079	2026-07-11 19:11:36.920998
989	4	2	975	card	\N	\N	1	\N	\N	f	637.50	0.00	Card payment for invoice INV-003080	2026-07-11 19:13:18.115037
990	4	2	976	card	\N	\N	3	\N	wyc2-2628-fjyv	f	1759.50	0.00	Card payment for invoice INV-003081	2026-07-11 19:14:19.524542
991	4	2	977	card	\N	\N	3	\N	wyc2-2628-owy9	f	950.00	0.00	Card payment for invoice INV-003083	2026-07-11 19:15:18.807078
992	4	2	978	cash	\N	\N	\N	\N	\N	f	1209.15	0.00	Cash payment for invoice INV-003082	2026-07-11 19:17:52.315136
993	4	2	979	cash	\N	\N	\N	\N	\N	f	800.00	0.00	Cash payment for invoice INV-003084	2026-07-11 19:18:23.748557
994	4	2	980	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-003086	2026-07-11 19:18:55.40508
995	4	2	981	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-003087	2026-07-11 19:19:41.029866
996	4	2	982	card	\N	\N	1	\N	\N	f	2099.00	0.00	Card payment for invoice INV-003088	2026-07-11 19:20:43.332355
997	4	2	983	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-003089	2026-07-11 19:22:03.837851
998	4	2	984	cash	\N	\N	\N	\N	\N	f	2099.00	0.00	Cash payment for invoice INV-003091	2026-07-11 19:22:43.130501
999	4	2	985	cash	\N	\N	\N	\N	\N	f	590.00	0.00	Cash payment for invoice INV-003093	2026-07-11 19:24:07.700491
1000	4	2	986	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-003094	2026-07-11 19:27:48.860273
1001	4	2	987	card	\N	\N	1	\N	\N	f	770.00	0.00	Card payment for invoice INV-003095	2026-07-11 19:35:21.936769
1002	4	2	988	card	\N	\N	1	\N	\N	f	775.00	0.00	Card payment for invoice INV-003098	2026-07-11 19:36:10.172629
1003	4	2	989	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-003100	2026-07-11 19:36:55.210494
1004	4	2	990	card	\N	\N	1	\N	\N	f	600.00	0.00	Card payment for invoice INV-003101	2026-07-11 19:38:27.220712
1005	4	2	991	card	\N	\N	1	\N	\N	f	1903.55	0.00	Card payment for invoice INV-003103	2026-07-11 19:39:15.144491
1006	4	2	992	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003106	2026-07-11 19:39:41.994924
1007	4	2	993	cash	\N	\N	\N	\N	\N	f	3300.00	0.00	Cash payment for invoice INV-003109	2026-07-11 19:41:33.020867
1008	4	2	994	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-003111	2026-07-11 19:42:28.678282
1009	4	2	995	cash	\N	\N	\N	\N	\N	f	900.00	0.00	Cash payment for invoice INV-003113	2026-07-11 19:44:35.284854
1010	4	2	996	cash	\N	\N	\N	\N	\N	f	550.00	0.00	Cash payment for invoice INV-003105	2026-07-11 19:44:36.827912
1011	4	2	997	card	\N	\N	1	\N	\N	f	1826.05	0.00	Card payment for invoice INV-003112	2026-07-11 19:45:09.012204
1012	4	2	998	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-003115	2026-07-11 19:45:21.706984
1013	4	2	999	cash	\N	\N	\N	\N	\N	f	410.00	0.00	Cash payment for invoice INV-003116	2026-07-11 19:51:35.441621
1014	4	2	1000	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-003119	2026-07-11 19:52:37.649686
1015	4	2	1001	card	\N	\N	1	\N	\N	f	507.00	0.00	Card payment for invoice INV-003120	2026-07-11 19:58:19.09691
1016	4	2	1002	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-003121	2026-07-11 19:59:00.380303
1017	4	2	1003	cash	\N	\N	\N	\N	\N	f	130.00	0.00	Cash payment for invoice INV-003123	2026-07-11 20:02:16.025331
1018	4	2	1004	cash	\N	\N	\N	\N	\N	f	120.00	0.00	Cash payment for invoice INV-003125	2026-07-11 20:12:06.674116
1019	4	2	1005	cash	\N	\N	\N	\N	\N	f	999.55	0.00	Cash payment for invoice INV-003127	2026-07-11 20:16:32.995125
1020	4	2	1006	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-003128	2026-07-11 20:17:49.047846
1021	4	2	1007	card	\N	\N	1	\N	\N	f	980.00	0.00	Card payment for invoice INV-003117	2026-07-11 20:18:08.558996
1022	4	2	1008	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-003129	2026-07-11 20:18:44.141107
1023	4	2	1009	cash	\N	\N	\N	\N	\N	f	935.00	0.00	Cash payment for invoice INV-003131	2026-07-11 20:20:56.227351
1024	4	2	1010	cash	\N	\N	\N	\N	\N	f	125.00	0.00	Cash payment for invoice INV-003130	2026-07-11 20:22:50.998419
1025	4	2	1011	card	\N	\N	1	\N	\N	f	1123.00	0.00	Card payment for invoice INV-003134	2026-07-11 20:23:56.170389
1026	4	2	1012	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-003133	2026-07-11 20:25:29.402335
1027	4	2	1013	card	\N	\N	1	\N	\N	f	858.60	0.00	Card payment for invoice INV-003137	2026-07-11 20:27:31.618427
1028	4	2	1014	cash	\N	\N	\N	\N	\N	f	4000.00	0.00	Cash payment for invoice INV-003136	2026-07-11 20:28:19.636671
1029	4	2	1015	cash	\N	\N	\N	\N	\N	f	110.00	0.00	Cash payment for invoice INV-003140	2026-07-11 20:28:59.7604
1030	4	2	1016	card	\N	\N	1	\N	\N	f	125.00	0.00	Card payment for invoice INV-003138	2026-07-11 20:29:21.156457
1031	4	2	1017	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003143	2026-07-11 20:29:48.287882
1032	4	2	1018	cash	\N	\N	\N	\N	\N	f	649.00	0.00	Cash payment for invoice INV-003145	2026-07-11 20:30:28.834743
1033	4	2	1019	card	\N	\N	1	\N	\N	f	1395.00	0.00	Card payment for invoice INV-003148	2026-07-11 20:34:36.086412
1034	4	2	1020	card	\N	\N	1	\N	\N	f	1051.55	0.00	Card payment for invoice INV-003149	2026-07-11 20:35:31.741279
1035	4	2	1021	card	\N	\N	1	\N	\N	f	2224.00	0.00	Card payment for invoice INV-003151	2026-07-11 20:36:56.428298
1036	4	2	1022	card	\N	\N	1	\N	\N	f	320.00	0.00	Card payment for invoice INV-003152	2026-07-11 20:43:14.892087
1037	4	2	1023	card	\N	\N	1	\N	\N	f	477.00	0.00	Card payment for invoice INV-003154	2026-07-11 20:44:03.066862
1038	4	2	1024	cash	\N	\N	\N	\N	\N	f	135.00	0.00	Cash payment for invoice INV-003156	2026-07-11 20:44:59.776274
1039	4	2	1025	cash	\N	\N	\N	\N	\N	f	20.00	0.00	Cash payment for invoice INV-003158	2026-07-11 20:46:06.196814
1040	4	2	1026	cash	\N	\N	\N	\N	\N	f	400.00	0.00	Cash payment for invoice INV-003160	2026-07-11 20:47:04.922749
1041	4	2	1027	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-003162	2026-07-11 20:47:35.186381
1042	4	2	1028	cash	\N	\N	\N	\N	\N	f	100.30	0.00	Cash payment for invoice INV-003163	2026-07-11 20:49:56.62213
1043	4	2	1029	card	\N	\N	1	\N	\N	f	1630.00	0.00	Card payment for invoice INV-003164	2026-07-11 20:52:53.422645
1044	4	2	1030	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-003165	2026-07-11 20:54:24.121673
1045	4	2	1031	cash	\N	\N	\N	\N	\N	f	390.00	0.00	Cash payment for invoice INV-003166	2026-07-11 20:54:57.124787
1046	4	2	1032	cash	\N	\N	\N	\N	\N	f	60.00	0.00	Cash payment for invoice INV-003167	2026-07-11 20:56:36.496995
1047	4	2	1033	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-003168	2026-07-11 20:58:56.171497
1048	4	2	1034	cash	\N	\N	\N	\N	\N	f	1400.00	0.00	Cash payment for invoice INV-003170	2026-07-11 21:00:19.294016
1049	4	2	1035	cash	\N	\N	\N	\N	\N	f	220.00	0.00	Cash payment for invoice INV-003172	2026-07-11 21:00:57.962593
1050	4	2	1036	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-003175	2026-07-11 21:03:57.761447
1051	4	2	1037	cash	\N	\N	\N	\N	\N	f	1789.00	0.00	Cash payment for invoice INV-003177	2026-07-11 21:07:13.58214
1052	4	2	1038	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-003178	2026-07-11 21:08:08.187098
1053	4	2	1039	card	\N	\N	1	\N	\N	f	125.00	0.00	Card payment for invoice INV-003180	2026-07-11 21:08:41.885617
1054	4	2	1040	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-003182	2026-07-11 21:09:11.133465
1055	4	2	1041	cash	\N	\N	\N	\N	\N	f	540.00	0.00	Cash payment for invoice INV-003184	2026-07-11 21:09:55.191433
1056	4	2	1042	card	\N	\N	1	\N	\N	f	690.00	0.00	Card payment for invoice INV-003186	2026-07-11 21:13:24.492499
1057	4	2	1043	card	\N	\N	1	\N	\N	f	300.00	0.00	Card payment for invoice INV-003187	2026-07-11 21:17:37.049966
1058	4	2	1044	cash	\N	\N	\N	\N	\N	f	1530.00	0.00	Cash payment for invoice INV-003090	2026-07-11 21:17:58.451358
1059	4	2	1045	cash	\N	\N	\N	\N	\N	f	840.00	0.00	Cash payment for invoice INV-003097	2026-07-11 21:18:35.015769
1060	4	2	1046	card	\N	\N	1	\N	\N	f	100.00	0.00	Card payment for invoice INV-003188	2026-07-11 21:21:59.900133
1061	4	2	1047	cash	\N	\N	\N	\N	\N	f	750.00	0.00	Cash payment for invoice INV-003191	2026-07-11 21:23:12.032729
1062	4	2	1048	card	\N	\N	1	\N	\N	f	490.00	0.00	Card payment for invoice INV-003190	2026-07-11 21:24:32.155099
1063	4	2	1049	card	\N	\N	1	\N	\N	f	360.00	0.00	Card payment for invoice INV-003193	2026-07-11 21:26:34.896951
1064	4	2	1050	card	\N	\N	1	\N	\N	f	1040.00	0.00	Card payment for invoice INV-003194	2026-07-11 21:28:32.208175
1065	4	2	1051	cash	\N	\N	\N	\N	\N	f	170.00	0.00	Cash payment for invoice INV-003192	2026-07-11 21:28:47.503801
1066	4	2	1052	cash	\N	\N	\N	\N	\N	f	10.00	0.00	Cash payment for invoice INV-003197	2026-07-11 21:30:13.126845
1067	4	2	1053	cash	\N	\N	\N	\N	\N	f	250.00	0.00	Cash payment for invoice INV-003199	2026-07-11 21:32:58.795687
1068	4	2	1054	card	\N	\N	1	\N	\N	f	430.00	0.00	Card payment for invoice INV-003195	2026-07-11 21:33:55.620883
1069	4	2	1055	easypaisa	2	\N	\N	\N	\N	f	1940.00	0.00	Easypaisa payment for invoice INV-003124	2026-07-11 21:34:19.594007
1070	4	2	1056	card	\N	\N	1	\N	\N	f	350.00	0.00	Card payment for invoice INV-003201	2026-07-11 21:34:45.489128
1071	4	2	1057	cash	\N	\N	\N	\N	\N	f	2110.00	0.00	Cash payment for invoice INV-003174	2026-07-11 21:35:08.655171
1072	4	2	1058	cash	\N	\N	\N	\N	\N	f	490.00	0.00	Cash payment for invoice INV-003203	2026-07-11 21:35:22.814084
1073	4	2	1059	cash	\N	\N	\N	\N	\N	f	555.00	0.00	Cash payment for invoice INV-003176	2026-07-11 21:35:34.887208
1074	4	2	1060	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-003206	2026-07-11 21:36:41.65841
1075	4	2	1061	cash	\N	\N	\N	\N	\N	f	70.00	0.00	Cash payment for invoice INV-003209	2026-07-11 21:37:38.76646
1076	4	2	1062	cash	\N	\N	\N	\N	\N	f	315.00	0.00	Cash payment for invoice INV-003211	2026-07-11 21:38:45.657475
1077	4	2	1063	cash	\N	\N	\N	\N	\N	f	999.00	0.00	Cash payment for invoice INV-003212	2026-07-11 21:43:02.729047
1078	4	2	1064	cash	\N	\N	\N	\N	\N	f	58.50	0.00	Cash payment for invoice INV-003214	2026-07-11 21:44:45.984321
1079	4	2	1065	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003216	2026-07-11 21:47:15.654123
1080	4	2	1066	cash	\N	\N	\N	\N	\N	f	180.00	0.00	Cash payment for invoice INV-003218	2026-07-11 21:47:42.879165
1081	4	2	1067	card	\N	\N	1	\N	\N	f	740.00	0.00	Card payment for invoice INV-003220	2026-07-11 21:49:39.834819
1082	4	2	1068	card	\N	\N	1	\N	\N	f	530.00	0.00	Card payment for invoice INV-003222	2026-07-11 21:50:43.611453
1083	4	2	1069	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-003223	2026-07-11 21:51:29.705
1084	4	2	1070	card	\N	\N	1	\N	\N	f	789.00	0.00	Card payment for invoice INV-003224	2026-07-11 21:52:14.092975
1085	4	2	1071	card	\N	\N	3	\N	wyc2-2628-1v9l	f	690.00	0.00	Card payment for invoice INV-003205	2026-07-11 21:53:34.778923
1086	4	2	1072	card	\N	\N	1	\N	\N	f	315.00	0.00	Card payment for invoice INV-003228	2026-07-11 21:55:49.070005
1087	4	2	1073	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-003229	2026-07-11 21:57:57.758089
1088	4	2	1074	cash	\N	\N	\N	\N	\N	f	580.00	0.00	Cash payment for invoice INV-003231	2026-07-11 21:58:59.82388
1089	4	2	1075	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-003233	2026-07-11 21:59:46.208653
1090	4	2	1076	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003235	2026-07-11 22:00:37.35358
1091	4	2	1077	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-003237	2026-07-11 22:04:42.872295
1092	4	2	1078	card	\N	\N	1	\N	\N	f	413.40	0.00	Card payment for invoice INV-003238	2026-07-11 22:08:41.031468
1093	4	2	1079	card	\N	\N	1	\N	\N	f	690.00	0.00	Card payment for invoice INV-003239	2026-07-11 22:11:47.549705
1094	4	2	1080	cash	\N	\N	\N	\N	\N	f	789.00	0.00	Cash payment for invoice INV-003240	2026-07-11 22:13:33.625516
1095	4	2	1081	card	\N	\N	1	\N	\N	f	200.00	0.00	Card payment for invoice INV-003241	2026-07-11 22:17:51.402908
1096	4	2	1082	card	\N	\N	1	\N	\N	f	1000.00	0.00	Card payment for invoice INV-003243	2026-07-11 22:18:28.468676
1097	4	2	1083	cash	\N	\N	\N	\N	\N	f	300.00	0.00	Cash payment for invoice INV-003247	2026-07-11 22:18:59.935989
1098	4	2	1084	cash	\N	\N	\N	\N	\N	f	600.00	0.00	Cash payment for invoice INV-003250	2026-07-11 22:19:44.1249
1099	4	2	1085	card	\N	\N	1	\N	\N	f	770.00	0.00	Card payment for invoice INV-003234	2026-07-11 22:20:17.250635
1100	4	2	1086	cash	\N	\N	\N	\N	\N	f	2220.00	0.00	Cash payment for invoice INV-003252	2026-07-11 22:21:01.409139
1101	4	2	1087	cash	\N	\N	\N	\N	\N	f	200.00	0.00	Cash payment for invoice INV-003251	2026-07-11 22:31:50.734904
1102	4	2	1088	cash	\N	\N	\N	\N	\N	f	500.00	0.00	Cash payment for invoice INV-003254	2026-07-11 22:33:23.905213
1103	4	2	1089	card	\N	\N	1	\N	\N	f	380.00	0.00	Card payment for invoice INV-003255	2026-07-11 22:38:02.423006
1104	4	2	1090	cash	\N	\N	\N	\N	\N	f	100.00	0.00	Cash payment for invoice INV-003256	2026-07-11 22:40:10.855501
1105	4	2	1091	cash	\N	\N	\N	\N	\N	f	150.00	0.00	Cash payment for invoice INV-003258	2026-07-11 22:41:09.032281
1106	4	2	1092	card	\N	\N	1	\N	\N	f	907.55	0.00	Card payment for invoice INV-003259	2026-07-11 22:42:07.32614
1107	4	2	1093	card	\N	\N	1	\N	\N	f	100.00	0.00	Card payment for invoice INV-003260	2026-07-11 22:45:28.063302
1108	4	2	1094	cash	\N	\N	\N	\N	\N	f	850.00	0.00	Cash payment for invoice INV-003261	2026-07-11 22:49:26.164563
1109	4	2	1095	card	\N	\N	1	\N	\N	f	250.00	0.00	Card payment for invoice INV-003262	2026-07-11 22:51:02.001843
1110	4	2	1096	card	\N	\N	1	\N	\N	f	4230.00	0.00	Card payment for invoice INV-003264	2026-07-11 22:54:13.189566
1111	4	2	1097	cash	\N	\N	\N	\N	\N	f	1900.00	0.00	Cash payment for invoice INV-003253	2026-07-11 22:56:19.48268
1112	4	2	1098	card	\N	\N	1	\N	\N	f	1926.35	0.00	Card payment for invoice INV-003265	2026-07-11 22:57:43.780362
1113	4	2	1099	cash	\N	\N	\N	\N	\N	f	50.00	0.00	Cash payment for invoice INV-003267	2026-07-11 22:58:29.11211
1114	4	2	1100	cash	\N	\N	\N	\N	\N	f	470.00	0.00	Cash payment for invoice INV-003266	2026-07-11 23:07:29.229744
1115	4	2	1101	cash	\N	\N	\N	\N	\N	f	145.00	0.00	Cash payment for invoice INV-003271	2026-07-11 23:08:31.50709
1116	4	2	1102	cash	\N	\N	\N	\N	\N	f	637.50	0.00	Cash payment for invoice INV-003272	2026-07-11 23:09:56.534561
1117	4	2	1103	cash	\N	\N	\N	\N	\N	f	1450.00	0.00	Cash payment for invoice INV-003269	2026-07-11 23:13:47.384561
1118	4	2	1104	cash	\N	\N	\N	\N	\N	f	1019.00	0.00	Cash payment for invoice INV-003230	2026-07-11 23:14:08.519728
1119	4	2	1105	cash	\N	\N	\N	\N	\N	f	540.00	0.00	Cash payment for invoice INV-003227	2026-07-11 23:14:40.087667
1120	4	2	1106	cash	\N	\N	\N	\N	\N	f	2249.00	0.00	Cash payment for invoice INV-003226	2026-07-11 23:15:04.289498
1121	4	2	1107	card	\N	\N	1	\N	\N	f	1277.50	0.00	Card payment for invoice INV-003278	2026-07-11 23:27:00.972558
1122	4	2	1108	cash	\N	\N	\N	\N	\N	f	1156.00	0.00	Cash payment for invoice INV-003279	2026-07-11 23:29:35.410859
1123	4	2	1109	cash	\N	\N	\N	\N	\N	f	225.00	0.00	Cash payment for invoice INV-003280	2026-07-11 23:30:38.748044
\.


--
