diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..afe4bb3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode/database.json diff --git a/coa.md b/coa.md deleted file mode 100644 index ca7ec47..0000000 --- a/coa.md +++ /dev/null @@ -1,31 +0,0 @@ -Balance Sheet ------------------------ -* Cash - - On-hand - - Hunt Checking - - Hunt Savings -* Prepaid - - Auto Insurance - - Home Insurance -* Investments - - Principle 401k - - Fidelity 401k - - STRS - - PPG 401k - - Norwex SP -* Assets - - Auto Cost - - Auto Depr - - Home -* Credit - - Chase - - Discover - - Kohls - - Lowes - - BestBuy - - Target - - TheHomeDepot -* Mortgage - - Principle - - diff --git a/loan_bal.pgsql b/loan_bal.pgsql index a149817..ec55276 100644 --- a/loan_bal.pgsql +++ b/loan_bal.pgsql @@ -6,9 +6,9 @@ FROM tps.trans LEFT JOIN LATERAL jsonb_populate_record(null::tps.pnco, rec) r ON TRUE WHERE - rec @> '{"Loan#":"606780191"}' + rec @> '{"Loan#":"606780281"}' ORDER BY r."Loan#" - ,r."Post Date" asc - ,rec->>'id' asc - ,r."Reference #" asc + ,r."Post Date" ASC + ,rec->>'id' ASC + ,r."Reference #" ASC \ No newline at end of file diff --git a/readme.md b/readme.md index b2acb67..aea1511 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,107 @@ -Concepts +Overview +---------------------------------------------- + + +``` + +--------------+ + |csv data | + +-----+--------+ + | + | + v ++----web ui----+ +----func+----+ +---table----+ +|import screen +------> |srce.sql +----------> |tps.srce | <-------------------+ ++--------------+ +-------------+ +------------+ | + |p1:srce | | + |p2:file path | | ++-----web ui---+ +-------------+ +----table---+ | +|create map | |tps.map_rm | +--+--db proc-----+ +|profile +---------------------------------> | | |update tps.trans | ++------+-------+ +-----+------+ |column allj to | + | ^ |contain map data | + | | +--+--------------+ + v foreign key ^ ++----web ui+----+ | | +|assign maps | + | +|for return | +---table----+ | ++values +--------------------------------> |tps.map_rv | | ++---------------+ | +---------------------+ + +------------+ + +``` + +The goal is to: +1. house external data and prevent duplication on insert +2. apply mappings to the data to make it meaningful +3. be able to reference it from outside sources (no action required) + +There are 5 tables +* tps.srce : definition of source +* tps.trans : actual data +* tps.trans_log : log of inserts +* tps.map_rm : map profile +* tps.map_rv : profile associated values + +# tps.srce schema + { + "name": "WMPD", + "descr": "Williams Paid File", + "type":"csv", + "schema": [ + { + "key": "Carrier", + "type": "text" + }, + { + "key": "Pd Amt", + "type": "numeric" + }, + { + "key": "Pay Dt", + "type": "date" + } + ], + "unique_constraint": { + "fields":[ + "{Pay Dt}", + "{Carrier}" + ] + } + } + +# tps.map_rm schema + { + "name":"Strip Amount Commas", + "description":"the Amount field comes from PNC with commas embeded so it cannot be cast to numeric", + "defn": [ + { + "key": "{Amount}", /*this is a Postgres text array stored in json*/ + "field": "amount", /*key name assigned to result of regex/* + "regex": ",", /*regular expression/* + "flag":"g", + "retain":"y", + "map":"n" + } + ], + "function":"replace", + "where": [ + { + } + ] + } + + + + + + + + + + + + +Notes ====================================== pull various static files into postgres and do basic transformation without losing the original document @@ -17,8 +120,8 @@ applied mappings are in associated jsonb documents 1. regular expressions are used to extract pieces of the json objects 2. the results of the regular expressions are bumped up against a list of basic mappings and written to an associated jsonb document -a target represents a whole scenario that needs matched. it can contain several regex expressions. if one fails, then no match is attempted because it coudl result in a false positive based on the @> oeprator used at join time -`this probably isn't correctly implemented` +each regex expression within a targeted pattern can be set to map or not. then the mapping items should be joined to map_rv with an `=` as opposed to `@>` to avoid duplication of rows + ## Transformation tools * `COPY` diff --git a/srce_template.pgsql b/srce_template.pgsql index c32ace4..c12c125 100644 --- a/srce_template.pgsql +++ b/srce_template.pgsql @@ -1,39 +1,128 @@ -insert into tps.srce -SELECT -'CAMZ', +UPDATE tps.SRCE + +SET DEFN = $$ { - "name": "CAMZ", - "description":"Chase Amazon Credit Card", - "type": "csv", + "name": "WMPD", + "descr": "Williams Paid File", + "type":"csv", "schema": [ { - "key": "Type", + "key": "Carrier", "type": "text" }, { - "key": "Trans Date", - "type": "date" - }, - { - "key": "Post Date", - "type": "date" - }, - { - "key": "Description", + "key": "SCAC", "type": "text" }, { - "key": "Amount", + "key": "Mode", + "type": "text" + }, + { + "key": "Pro #", + "type": "text" + }, + { + "key": "B/L", + "type": "text" + }, + { + "key": "Pd Amt", "type": "numeric" + }, + { + "key": "Loc#", + "type": "text" + }, + { + "key": "Pcs", + "type": "numeric" + }, + { + "key": "Wgt", + "type": "numeric" + }, + { + "key": "Chk#", + "type": "numeric" + }, + { + "key": "Pay Dt", + "type": "date" + }, + { + "key": "Acct #", + "type": "text" + }, + { + "key": "I/O", + "type": "text" + }, + { + "key": "Sh Nm", + "type": "text" + }, + { + "key": "Sh City", + "type": "text" + }, + { + "key": "Sh St", + "type": "text" + }, + { + "key": "Sh Zip", + "type": "text" + }, + { + "key": "Cons Nm", + "type": "text" + }, + { + "key": "D City ", + "type": "text" + }, + { + "key": "D St", + "type": "text" + }, + { + "key": "D Zip", + "type": "text" + }, + { + "key": "Sh Dt", + "type": "date" + }, + { + "key": "Inv Dt", + "type": "date" + }, + { + "key": "Customs Entry#", + "type": "text" + }, + { + "key": "Miles", + "type": "numeric" + }, + { + "key": "Frt Class", + "type": "text" + }, + { + "key": "Master B/L", + "type": "text" } ], "unique_constraint": { - "type": "key", - "fields": [ - "{Trans Date}" - ,"{Post Date}" + "fields":[ + "{Pay Dt}", + "{Carrier}" ] } } -$$::JSONB \ No newline at end of file +$$::JSONB +WHERE +SRCE = 'WMPD' \ No newline at end of file diff --git a/transaction_range.pgsql b/transaction_range.pgsql index c654915..95292f1 100644 --- a/transaction_range.pgsql +++ b/transaction_range.pgsql @@ -1,3 +1,4 @@ +\timing SELECT t.srce ,(ae.e::text[])[1] unq_constr diff --git a/ubm_data.sql b/ubm_data.sql index d6647d5..ab3eb0d 100644 --- a/ubm_data.sql +++ b/ubm_data.sql @@ -50,7 +50,7 @@ INSERT INTO log (id, rec, post_stmp) VALUES (23, '{"GL": [{"amt": 4.26, "item": INSERT INTO log (id, rec, post_stmp) VALUES (24, '{"GL": [{"amt": 2.3, "item": "coffee", "reason": "recreation", "account": "restaurantes", "vend item": "coffee"}, {"amt": -2.3, "item": "coffee", "reason": "recreation", "account": "dcard", "vend item": "coffee"}], "header": {"date": "10/2/2017", "total": 2.3, "module": "MJE", "vendor": "Corner Cup Coffee", "location": "Stow, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:29:34.264975-04'); INSERT INTO log (id, rec, post_stmp) VALUES (32, '{"GL": [{"amt": 66, "item": "internet", "reason": "internet", "account": "internet", "vend item": "internet"}, {"amt": -66, "item": "internet", "reason": "internet", "account": "dcard", "vend item": "internet"}], "header": {"date": "10/9/2017", "total": 66, "module": "MJE", "vendor": "AT&T", "location": "online", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 02:11:50.47241-04'); INSERT INTO log (id, rec, post_stmp) VALUES (33, '{"GL": [{"amt": 5.01, "item": "food", "reason": "recreation", "account": "restaurantes", "vend item": "food"}, {"amt": -5.01, "item": "food", "reason": "recreation", "account": "dcard", "vend item": "food"}], "header": {"date": "10/12/2017", "total": 5.01, "module": "MJE", "vendor": "El Campesino", "location": "Stow, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 02:12:52.934556-04'); -INSERT INTO log (id, rec, post_stmp) VALUES (21, '{"GL": [{"amt": 6.41, "qty": "0.99 lb × $6.48 / lb", "item": "salami", "reason": "food", "account": "food", "vend item": "Great Lakes Salami Style Provolone Cheese, 1ct"}, {"amt": "0.67", "qty": "3.97 lb × $0.17 / lb", "item": "bananas", "reason": "food", "account": "food", "vend item": "Bananas, each"}, {"amt": 7.25, "qty": "1.04 lb × $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Prima Della Oven Roasted Buffalo Style Chicken Breast, Deli Sliced"}, {"amt": 4.36, "qty": "2 × $2.18", "item": "taco sauce", "reason": "food", "account": "food", "vend item": "Ortega Original Medium Taco Sauce, 16 oz"}, {"amt": 1.34, "qty": "1 × $1.34", "item": "yeast", "reason": "food", "account": "food", "vend item": "Fleischmann''s ActiveDry Yeast Original - 3 CT"}, {"amt": 1.98, "qty": "1 × $1.98", "item": "sour cream", "reason": "food", "account": "food", "vend item": "Daisy Sour Cream, 16 oz"}, {"amt": 2.68, "qty": "2 × $1.34", "item": "chiles", "reason": "food", "account": "food", "vend item": "Old El Paso™ Chopped Chiles 4.5 oz Can"}, {"amt": 1.44, "qty": "2 × $0.72", "item": "beans", "reason": "food", "account": "food", "vend item": "Great Value Great Northern Beans 15.5 oz"}, {"amt": 8.53, "qty": "1 × $8.53", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Superior''s Brand Tavern Sliced Ham, 2.5 lbs"}, {"amt": 2.98, "qty": "1 × $2.98", "item": "bagels", "reason": "food", "account": "food", "vend item": "Thomas'' Cinnamon Swirl Pre-Sliced 6 ct Bagels, 20 oz"}, {"amt": 5, "qty": "2 × $2.50", "item": "bread", "reason": "food", "account": "food", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": 6.96, "qty": "2 × $3.48", "item": "chips", "reason": "food", "account": "food", "vend item": "Lay''s Wavy Original Potato Chips, 15.25 oz. Bag"}, {"amt": 5.96, "qty": "2 × $2.98", "item": "chips", "reason": "food", "account": "food", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": 6.96, "qty": "2 × $3.48", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Hormel Natural Choice Cherrywood Smoked Deli Ham, 8 oz"}, {"amt": 1.97, "qty": "1 × $1.97", "item": "noodles", "reason": "food", "account": "food", "vend item": "Great Value Elbows, 32 oz"}, {"amt": 4.98, "qty": "1 × $4.98", "item": "cheese", "reason": "food", "account": "food", "vend item": "Kraft Velveeta Cheese with 2% Milk, 16 oz"}, {"amt": 5.24, "qty": "1 × $5.24", "item": "cheese", "reason": "food", "account": "food", "vend item": "Kraft Singles American Cheese Slices, 32 ct, 2 pk"}, {"amt": 7.92, "qty": "9 × $0.88", "item": "water", "reason": "food", "account": "food", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": 4.5, "qty": "1 × $4.50", "item": "box macaroni and cheese", "reason": "food", "account": "food", "vend item": "Kraft Macaroni & Cheese Dinner Original Flavor, 5 count , 36.25 OZ (1.03kg)"}, {"amt": 3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": 3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": 7.71, "qty": "3 × $2.57", "item": "almond milk", "reason": "food", "account": "food", "vend item": "Great Value Unsweetened Vanilla Almond Milk, 64 fl oz"}, {"amt": 6.97, "qty": "1 × $6.97", "item": "chedar cheese", "reason": "food", "account": "food", "vend item": "Great Value Mild Cheddar Cheese, 32 oz"}, {"amt": 7.54, "qty": "2 × $3.77", "item": "letuce", "reason": "food", "account": "food", "vend item": "Organic Romaine Hearts"}, {"amt": 45.48, "qty": "4 × $11.37", "item": "chicken", "reason": "food", "account": "food", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": 17.34, "qty": "3 × $5.78", "item": "peanut butter", "reason": "food", "account": "food", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": 20.94, "qty": "3 × $6.98", "item": "chocolate chips", "reason": "food", "account": "food", "vend item": "Nestlé TOLL HOUSE Semi-Sweet Chocolate Morsels 36 oz. Bag"}, {"amt": 4.96, "qty": "2 × $2.48", "item": "oats", "reason": "food", "account": "food", "vend item": "Great Value Oven-Toasted Quick Oats, 42 Oz"}, {"amt": 6.96, "qty": "2 × $3.48", "item": "chips", "reason": "food", "account": "food", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": 9.96, "qty": "2 × $4.98", "item": "bacon", "reason": "food", "account": "food", "vend item": "Hormel® Natural Choice® Cherrywood Smoked Uncured Bacon 12 oz. Package"}, {"amt": 9.96, "qty": "2 × $4.98", "item": "bacon", "reason": "food", "account": "food", "vend item": "Hormel® Natural Choice® Original Uncured Bacon 12 oz. Package"}, {"amt": 3.28, "qty": "1 × $3.28", "item": "crutons", "reason": "food", "account": "food", "vend item": "The Bakery At Walmart Texas Garlic Toast, 22.5 oz"}, {"amt": 2.18, "qty": "1 × $2.18", "item": "yogurt", "reason": "food", "account": "food", "vend item": "Great Value Low Fat Vanilla Yogurt, 32 oz"}, {"amt": -6.41, "qty": "0.99 lb × $6.48 / lb", "item": "salami", "reason": "food", "account": "dcard", "vend item": "Great Lakes Salami Style Provolone Cheese, 1ct"}, {"amt": -0.67, "qty": "3.97 lb × $0.17 / lb", "item": "bananas", "reason": "food", "account": "dcard", "vend item": "Bananas, each"}, {"amt": -7.25, "qty": "1.04 lb × $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Prima Della Oven Roasted Buffalo Style Chicken Breast, Deli Sliced"}, {"amt": -4.36, "qty": "2 × $2.18", "item": "taco sauce", "reason": "food", "account": "dcard", "vend item": "Ortega Original Medium Taco Sauce, 16 oz"}, {"amt": -1.34, "qty": "1 × $1.34", "item": "yeast", "reason": "food", "account": "dcard", "vend item": "Fleischmann''s ActiveDry Yeast Original - 3 CT"}, {"amt": -1.98, "qty": "1 × $1.98", "item": "sour cream", "reason": "food", "account": "dcard", "vend item": "Daisy Sour Cream, 16 oz"}, {"amt": -2.68, "qty": "2 × $1.34", "item": "chiles", "reason": "food", "account": "dcard", "vend item": "Old El Paso™ Chopped Chiles 4.5 oz Can"}, {"amt": -1.44, "qty": "2 × $0.72", "item": "beans", "reason": "food", "account": "dcard", "vend item": "Great Value Great Northern Beans 15.5 oz"}, {"amt": -8.53, "qty": "1 × $8.53", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Superior''s Brand Tavern Sliced Ham, 2.5 lbs"}, {"amt": -2.98, "qty": "1 × $2.98", "item": "bagels", "reason": "food", "account": "dcard", "vend item": "Thomas'' Cinnamon Swirl Pre-Sliced 6 ct Bagels, 20 oz"}, {"amt": -5, "qty": "2 × $2.50", "item": "bread", "reason": "food", "account": "dcard", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": -6.96, "qty": "2 × $3.48", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Lay''s Wavy Original Potato Chips, 15.25 oz. Bag"}, {"amt": -5.96, "qty": "2 × $2.98", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": -6.96, "qty": "2 × $3.48", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Hormel Natural Choice Cherrywood Smoked Deli Ham, 8 oz"}, {"amt": -1.97, "qty": "1 × $1.97", "item": "noodles", "reason": "food", "account": "dcard", "vend item": "Great Value Elbows, 32 oz"}, {"amt": -4.98, "qty": "1 × $4.98", "item": "cheese", "reason": "food", "account": "dcard", "vend item": "Kraft Velveeta Cheese with 2% Milk, 16 oz"}, {"amt": -5.24, "qty": "1 × $5.24", "item": "cheese", "reason": "food", "account": "dcard", "vend item": "Kraft Singles American Cheese Slices, 32 ct, 2 pk"}, {"amt": -7.92, "qty": "9 × $0.88", "item": "water", "reason": "food", "account": "dcard", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": -4.5, "qty": "1 × $4.50", "item": "box macaroni and cheese", "reason": "food", "account": "dcard", "vend item": "Kraft Macaroni & Cheese Dinner Original Flavor, 5 count , 36.25 OZ (1.03kg)"}, {"amt": -3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": -3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": -7.71, "qty": "3 × $2.57", "item": "almond milk", "reason": "food", "account": "dcard", "vend item": "Great Value Unsweetened Vanilla Almond Milk, 64 fl oz"}, {"amt": -6.97, "qty": "1 × $6.97", "item": "chedar cheese", "reason": "food", "account": "dcard", "vend item": "Great Value Mild Cheddar Cheese, 32 oz"}, {"amt": -7.54, "qty": "2 × $3.77", "item": "letuce", "reason": "food", "account": "dcard", "vend item": "Organic Romaine Hearts"}, {"amt": -45.48, "qty": "4 × $11.37", "item": "chicken", "reason": "food", "account": "dcard", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": -17.34, "qty": "3 × $5.78", "item": "peanut butter", "reason": "food", "account": "dcard", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": -20.94, "qty": "3 × $6.98", "item": "chocolate chips", "reason": "food", "account": "dcard", "vend item": "Nestlé TOLL HOUSE Semi-Sweet Chocolate Morsels 36 oz. Bag"}, {"amt": -4.96, "qty": "2 × $2.48", "item": "oats", "reason": "food", "account": "dcard", "vend item": "Great Value Oven-Toasted Quick Oats, 42 Oz"}, {"amt": -6.96, "qty": "2 × $3.48", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": -9.96, "qty": "2 × $4.98", "item": "bacon", "reason": "food", "account": "dcard", "vend item": "Hormel® Natural Choice® Cherrywood Smoked Uncured Bacon 12 oz. Package"}, {"amt": -9.96, "qty": "2 × $4.98", "item": "bacon", "reason": "food", "account": "dcard", "vend item": "Hormel® Natural Choice® Original Uncured Bacon 12 oz. Package"}, {"amt": -3.28, "qty": "1 × $3.28", "item": "crutons", "reason": "food", "account": "dcard", "vend item": "The Bakery At Walmart Texas Garlic Toast, 22.5 oz"}, {"amt": -2.18, "qty": "1 × $2.18", "item": "yogurt", "reason": "food", "account": "dcard", "vend item": "Great Value Low Fat Vanilla Yogurt, 32 oz"}], "header": {"date": "10/16/2017", "total": 237.35, "module": "MJE", "vendor": "Walmart", "location": "Streetsboro, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:10:54.890205-04'); +INSERT INTO log (id, rec, post_stmp) VALUES (21, '{"GL": [{"amt": 6.41, "qty": "0.99 lb � $6.48 / lb", "item": "salami", "reason": "food", "account": "food", "vend item": "Great Lakes Salami Style Provolone Cheese, 1ct"}, {"amt": "0.67", "qty": "3.97 lb � $0.17 / lb", "item": "bananas", "reason": "food", "account": "food", "vend item": "Bananas, each"}, {"amt": 7.25, "qty": "1.04 lb � $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Prima Della Oven Roasted Buffalo Style Chicken Breast, Deli Sliced"}, {"amt": 4.36, "qty": "2 � $2.18", "item": "taco sauce", "reason": "food", "account": "food", "vend item": "Ortega Original Medium Taco Sauce, 16 oz"}, {"amt": 1.34, "qty": "1 � $1.34", "item": "yeast", "reason": "food", "account": "food", "vend item": "Fleischmann''s ActiveDry Yeast Original - 3 CT"}, {"amt": 1.98, "qty": "1 � $1.98", "item": "sour cream", "reason": "food", "account": "food", "vend item": "Daisy Sour Cream, 16 oz"}, {"amt": 2.68, "qty": "2 � $1.34", "item": "chiles", "reason": "food", "account": "food", "vend item": "Old El Paso� Chopped Chiles 4.5 oz Can"}, {"amt": 1.44, "qty": "2 � $0.72", "item": "beans", "reason": "food", "account": "food", "vend item": "Great Value Great Northern Beans 15.5 oz"}, {"amt": 8.53, "qty": "1 � $8.53", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Superior''s Brand Tavern Sliced Ham, 2.5 lbs"}, {"amt": 2.98, "qty": "1 � $2.98", "item": "bagels", "reason": "food", "account": "food", "vend item": "Thomas'' Cinnamon Swirl Pre-Sliced 6 ct Bagels, 20 oz"}, {"amt": 5, "qty": "2 � $2.50", "item": "bread", "reason": "food", "account": "food", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": 6.96, "qty": "2 � $3.48", "item": "chips", "reason": "food", "account": "food", "vend item": "Lay''s Wavy Original Potato Chips, 15.25 oz. Bag"}, {"amt": 5.96, "qty": "2 � $2.98", "item": "chips", "reason": "food", "account": "food", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": 6.96, "qty": "2 � $3.48", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Hormel Natural Choice Cherrywood Smoked Deli Ham, 8 oz"}, {"amt": 1.97, "qty": "1 � $1.97", "item": "noodles", "reason": "food", "account": "food", "vend item": "Great Value Elbows, 32 oz"}, {"amt": 4.98, "qty": "1 � $4.98", "item": "cheese", "reason": "food", "account": "food", "vend item": "Kraft Velveeta Cheese with 2% Milk, 16 oz"}, {"amt": 5.24, "qty": "1 � $5.24", "item": "cheese", "reason": "food", "account": "food", "vend item": "Kraft Singles American Cheese Slices, 32 ct, 2 pk"}, {"amt": 7.92, "qty": "9 � $0.88", "item": "water", "reason": "food", "account": "food", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": 4.5, "qty": "1 � $4.50", "item": "box macaroni and cheese", "reason": "food", "account": "food", "vend item": "Kraft Macaroni & Cheese Dinner Original Flavor, 5 count , 36.25 OZ (1.03kg)"}, {"amt": 3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": 3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": 7.71, "qty": "3 � $2.57", "item": "almond milk", "reason": "food", "account": "food", "vend item": "Great Value Unsweetened Vanilla Almond Milk, 64 fl oz"}, {"amt": 6.97, "qty": "1 � $6.97", "item": "chedar cheese", "reason": "food", "account": "food", "vend item": "Great Value Mild Cheddar Cheese, 32 oz"}, {"amt": 7.54, "qty": "2 � $3.77", "item": "letuce", "reason": "food", "account": "food", "vend item": "Organic Romaine Hearts"}, {"amt": 45.48, "qty": "4 � $11.37", "item": "chicken", "reason": "food", "account": "food", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": 17.34, "qty": "3 � $5.78", "item": "peanut butter", "reason": "food", "account": "food", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": 20.94, "qty": "3 � $6.98", "item": "chocolate chips", "reason": "food", "account": "food", "vend item": "Nestl� TOLL HOUSE Semi-Sweet Chocolate Morsels 36 oz. Bag"}, {"amt": 4.96, "qty": "2 � $2.48", "item": "oats", "reason": "food", "account": "food", "vend item": "Great Value Oven-Toasted Quick Oats, 42 Oz"}, {"amt": 6.96, "qty": "2 � $3.48", "item": "chips", "reason": "food", "account": "food", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": 9.96, "qty": "2 � $4.98", "item": "bacon", "reason": "food", "account": "food", "vend item": "Hormel� Natural Choice� Cherrywood Smoked Uncured Bacon 12 oz. Package"}, {"amt": 9.96, "qty": "2 � $4.98", "item": "bacon", "reason": "food", "account": "food", "vend item": "Hormel� Natural Choice� Original Uncured Bacon 12 oz. Package"}, {"amt": 3.28, "qty": "1 � $3.28", "item": "crutons", "reason": "food", "account": "food", "vend item": "The Bakery At Walmart Texas Garlic Toast, 22.5 oz"}, {"amt": 2.18, "qty": "1 � $2.18", "item": "yogurt", "reason": "food", "account": "food", "vend item": "Great Value Low Fat Vanilla Yogurt, 32 oz"}, {"amt": -6.41, "qty": "0.99 lb � $6.48 / lb", "item": "salami", "reason": "food", "account": "dcard", "vend item": "Great Lakes Salami Style Provolone Cheese, 1ct"}, {"amt": -0.67, "qty": "3.97 lb � $0.17 / lb", "item": "bananas", "reason": "food", "account": "dcard", "vend item": "Bananas, each"}, {"amt": -7.25, "qty": "1.04 lb � $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Prima Della Oven Roasted Buffalo Style Chicken Breast, Deli Sliced"}, {"amt": -4.36, "qty": "2 � $2.18", "item": "taco sauce", "reason": "food", "account": "dcard", "vend item": "Ortega Original Medium Taco Sauce, 16 oz"}, {"amt": -1.34, "qty": "1 � $1.34", "item": "yeast", "reason": "food", "account": "dcard", "vend item": "Fleischmann''s ActiveDry Yeast Original - 3 CT"}, {"amt": -1.98, "qty": "1 � $1.98", "item": "sour cream", "reason": "food", "account": "dcard", "vend item": "Daisy Sour Cream, 16 oz"}, {"amt": -2.68, "qty": "2 � $1.34", "item": "chiles", "reason": "food", "account": "dcard", "vend item": "Old El Paso� Chopped Chiles 4.5 oz Can"}, {"amt": -1.44, "qty": "2 � $0.72", "item": "beans", "reason": "food", "account": "dcard", "vend item": "Great Value Great Northern Beans 15.5 oz"}, {"amt": -8.53, "qty": "1 � $8.53", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Superior''s Brand Tavern Sliced Ham, 2.5 lbs"}, {"amt": -2.98, "qty": "1 � $2.98", "item": "bagels", "reason": "food", "account": "dcard", "vend item": "Thomas'' Cinnamon Swirl Pre-Sliced 6 ct Bagels, 20 oz"}, {"amt": -5, "qty": "2 � $2.50", "item": "bread", "reason": "food", "account": "dcard", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": -6.96, "qty": "2 � $3.48", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Lay''s Wavy Original Potato Chips, 15.25 oz. Bag"}, {"amt": -5.96, "qty": "2 � $2.98", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": -6.96, "qty": "2 � $3.48", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Hormel Natural Choice Cherrywood Smoked Deli Ham, 8 oz"}, {"amt": -1.97, "qty": "1 � $1.97", "item": "noodles", "reason": "food", "account": "dcard", "vend item": "Great Value Elbows, 32 oz"}, {"amt": -4.98, "qty": "1 � $4.98", "item": "cheese", "reason": "food", "account": "dcard", "vend item": "Kraft Velveeta Cheese with 2% Milk, 16 oz"}, {"amt": -5.24, "qty": "1 � $5.24", "item": "cheese", "reason": "food", "account": "dcard", "vend item": "Kraft Singles American Cheese Slices, 32 ct, 2 pk"}, {"amt": -7.92, "qty": "9 � $0.88", "item": "water", "reason": "food", "account": "dcard", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": -4.5, "qty": "1 � $4.50", "item": "box macaroni and cheese", "reason": "food", "account": "dcard", "vend item": "Kraft Macaroni & Cheese Dinner Original Flavor, 5 count , 36.25 OZ (1.03kg)"}, {"amt": -3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": -3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": -7.71, "qty": "3 � $2.57", "item": "almond milk", "reason": "food", "account": "dcard", "vend item": "Great Value Unsweetened Vanilla Almond Milk, 64 fl oz"}, {"amt": -6.97, "qty": "1 � $6.97", "item": "chedar cheese", "reason": "food", "account": "dcard", "vend item": "Great Value Mild Cheddar Cheese, 32 oz"}, {"amt": -7.54, "qty": "2 � $3.77", "item": "letuce", "reason": "food", "account": "dcard", "vend item": "Organic Romaine Hearts"}, {"amt": -45.48, "qty": "4 � $11.37", "item": "chicken", "reason": "food", "account": "dcard", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": -17.34, "qty": "3 � $5.78", "item": "peanut butter", "reason": "food", "account": "dcard", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": -20.94, "qty": "3 � $6.98", "item": "chocolate chips", "reason": "food", "account": "dcard", "vend item": "Nestl� TOLL HOUSE Semi-Sweet Chocolate Morsels 36 oz. Bag"}, {"amt": -4.96, "qty": "2 � $2.48", "item": "oats", "reason": "food", "account": "dcard", "vend item": "Great Value Oven-Toasted Quick Oats, 42 Oz"}, {"amt": -6.96, "qty": "2 � $3.48", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": -9.96, "qty": "2 � $4.98", "item": "bacon", "reason": "food", "account": "dcard", "vend item": "Hormel� Natural Choice� Cherrywood Smoked Uncured Bacon 12 oz. Package"}, {"amt": -9.96, "qty": "2 � $4.98", "item": "bacon", "reason": "food", "account": "dcard", "vend item": "Hormel� Natural Choice� Original Uncured Bacon 12 oz. Package"}, {"amt": -3.28, "qty": "1 � $3.28", "item": "crutons", "reason": "food", "account": "dcard", "vend item": "The Bakery At Walmart Texas Garlic Toast, 22.5 oz"}, {"amt": -2.18, "qty": "1 � $2.18", "item": "yogurt", "reason": "food", "account": "dcard", "vend item": "Great Value Low Fat Vanilla Yogurt, 32 oz"}], "header": {"date": "10/16/2017", "total": 237.35, "module": "MJE", "vendor": "Walmart", "location": "Streetsboro, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:10:54.890205-04'); INSERT INTO log (id, rec, post_stmp) VALUES (9, '{"GL": [{"amt": 2.49, "item": "crackers", "reason": "food", "account": "food", "vend item": "GINGER SNAP BAG"}, {"amt": -0.3, "item": "crackers", "reason": "food", "account": "food", "vend item": "GINGER SNAP BAG"}, {"amt": 2.29, "item": "cream cheese", "reason": "food", "account": "food", "vend item": "GE CRM CHEESE"}, {"amt": 1.79, "item": "cream cheese", "reason": "food", "account": "food", "vend item": "GE CRM CHEESE"}, {"amt": -0.29, "item": "cream cheese", "reason": "food", "account": "food", "vend item": "GE CRM CHEESE"}, {"": "MICROSOFT *ONEDRIVE 800-642-7676 WA", "amt": 2.29, "item": "pumpkin filling", "reason": "food", "account": "food", "vend item": "LIBBY PUMPKIN"}, {"": "SQ *CORNER CUP COFFEEH STOW OH0001152921507773883530", "amt": -0.29, "item": "pumpkin filling", "reason": "food", "account": "food", "vend item": "LIBBY PUMPKIN"}, {"": "SQ *CORNER CUP COFFEEH STOW OH0002305843011263225191", "amt": 2.29, "item": "pumpkin filling", "reason": "food", "account": "food", "vend item": "LIBBY PUMPKIN"}, {"": "SQ *CORNER CUP COFFEEH STOW OH0001152921507778646227", "amt": -0.29, "item": "pumpkin filling", "reason": "food", "account": "food", "vend item": "LIBBY PUMPKIN"}, {"": "SHEETZ 229600022962498 STOW OH", "amt": 3.99, "item": "crackers", "reason": "food", "account": "food", "vend item": "NILLA WAFERS"}, {"": "ROCKNE''S KENT KENT OH", "amt": 3.99, "item": "crackers", "reason": "food", "account": "food", "vend item": "NILLA WAFERS"}, {"": "TERRY LUMBER AND SUP PENINSULA OH", "amt": 3.99, "item": "crackers", "reason": "food", "account": "food", "vend item": "HONEYMAID GRAHAMS"}, {"": "CIRCLE K 05416 STOW OH00835R", "amt": -2.49, "item": "crackers", "reason": "food", "account": "dcard", "vend item": "GINGER SNAP BAG"}, {"": "REDBOX *DVD RENTAL 866-733-2693 IL26858616AYA5PNX4", "amt": "0.3", "item": "crackers", "reason": "food", "account": "dcard", "vend item": "GINGER SNAP BAG"}, {"": "AT&T *PAYMENT 800-288-2020 TX", "amt": -2.29, "item": "cream cheese", "reason": "food", "account": "dcard", "vend item": "GE CRM CHEESE"}, {"": "EL CAMPESINO STOW OH", "amt": -1.79, "item": "cream cheese", "reason": "food", "account": "dcard", "vend item": "GE CRM CHEESE"}, {"": "ARBYS #1831 STOW STOW OH", "amt": "0.29", "item": "cream cheese", "reason": "food", "account": "dcard", "vend item": "GE CRM CHEESE"}, {"": "REMEMBERNHU 402-935-7733 IA", "amt": -2.29, "item": "pumpkin filling", "reason": "food", "account": "dcard", "vend item": "LIBBY PUMPKIN"}, {"": "EL CAMPESINO STOW OH", "amt": "0.29", "item": "pumpkin filling", "reason": "food", "account": "dcard", "vend item": "LIBBY PUMPKIN"}, {"": "SPEEDWAY 03686 496 STOW OH", "amt": -2.29, "item": "pumpkin filling", "reason": "food", "account": "dcard", "vend item": "LIBBY PUMPKIN"}, {"": "ARBYS #1831 STOW STOW OH", "amt": "0.29", "item": "pumpkin filling", "reason": "food", "account": "dcard", "vend item": "LIBBY PUMPKIN"}, {"": "DISCOUNT DRUG MART 32 STOW OH", "amt": -3.99, "item": "crackers", "reason": "food", "account": "dcard", "vend item": "NILLA WAFERS"}, {"amt": -3.99, "item": "crackers", "reason": "food", "account": "dcard", "vend item": "NILLA WAFERS"}, {"amt": -3.99, "item": "crackers", "reason": "food", "account": "dcard", "vend item": "HONEYMAID GRAHAMS"}], "header": {"date": "10/7/2017", "total": 21.95, "module": "MJE", "vendor": "Giant Eagle", "location": "Stow, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-27 00:52:23.924074-04'); INSERT INTO log (id, rec, post_stmp) VALUES (27, '{"GL": [{"amt": 34.36, "item": "gasoline", "reason": "transportation", "account": "auto", "vend item": "gasoline"}, {"amt": -34.36, "item": "gasoline", "reason": "transportation", "account": "dcard", "vend item": "gasoline"}], "header": {"date": "10/7/2017", "total": 34.36, "module": "MJE", "vendor": "Sheetz", "location": "Stow, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:31:13.834569-04'); INSERT INTO log (id, rec, post_stmp) VALUES (28, '{"GL": [{"amt": 95.32, "item": "eat out", "reason": "Miller anniversary", "account": "gifts", "vend item": "food"}, {"amt": -95.32, "item": "eat out", "reason": "Miller anniversary", "account": "dcard", "vend item": "food"}], "header": {"date": "10/7/2017", "total": 95.32, "module": "MJE", "vendor": "Rocknes", "location": "Kent, Oh", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:32:44.955829-04'); @@ -58,7 +58,7 @@ INSERT INTO log (id, rec, post_stmp) VALUES (6, '{"GL": [{"amt": 20.49, "qty": 1 INSERT INTO log (id, rec, post_stmp) VALUES (29, '{"GL": [{"amt": 206.88, "qty": 20, "uom": "sf", "item": "birch lumber", "reason": "kitchen remodel", "account": "home supplies", "vend item": "birch lumber"}, {"amt": -206.88, "qty": 20, "uom": "sf", "item": "birch lumber", "reason": "kitchen remodel", "account": "dcard", "vend item": "birch lumber"}], "header": {"date": "10/7/2017", "total": 206.88, "module": "MJE", "vendor": "Terry Lumber", "location": "Peninsula, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:36:08.370129-04'); INSERT INTO log (id, rec, post_stmp) VALUES (41, '{"GL": [{"amt": 6.4, "item": "tums", "reason": "medical", "account": "home supplies", "vend item": "tums"}, {"amt": -6.4, "item": "tums", "reason": "medical", "account": "dcard", "vend item": "tums"}], "header": {"date": "10/9/2017", "total": 6.4, "module": "MJE", "vendor": "CVS", "location": "Twinsburg, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-30 22:03:06.86137-04'); INSERT INTO log (id, rec, post_stmp) VALUES (12, '{"GL": [{"amt": 4.29, "item": "TOMS 4.7OZ", "reason": "hygiene", "account": "home supplies", "vend item": "TOMS 4.7OZ"}, {"amt": 6.49, "item": "MASCARA", "reason": "hygiene", "account": "home supplies", "vend item": "MASCARA"}, {"amt": 5.99, "item": "RENPURE", "reason": "hygiene", "account": "home supplies", "vend item": "RENPURE"}, {"amt": 5.99, "item": "RENPURE", "reason": "hygiene", "account": "home supplies", "vend item": "RENPURE"}, {"amt": 9.58, "item": "BUILDING SET", "reason": "recreation", "account": "recreation", "vend item": "BUILDING SET"}, {"amt": 2.18, "item": "OH TAX", "rate": "0.675", "reason": "sales tax", "account": "sales tax", "vend item": "OH TAX"}, {"amt": -4.29, "item": "TOMS 4.7OZ", "reason": "hygiene", "account": "dcard", "vend item": "TOMS 4.7OZ"}, {"amt": -6.49, "item": "MASCARA", "reason": "hygiene", "account": "dcard", "vend item": "MASCARA"}, {"amt": -5.99, "item": "RENPURE", "reason": "hygiene", "account": "dcard", "vend item": "RENPURE"}, {"amt": -5.99, "item": "RENPURE", "reason": "hygiene", "account": "dcard", "vend item": "RENPURE"}, {"amt": -9.58, "item": "BUILDING SET", "reason": "recreation", "account": "dcard", "vend item": "BUILDING SET"}, {"amt": -2.18, "item": "OH TAX", "rate": "0.675", "reason": "sales tax", "account": "dcard", "vend item": "OH TAX"}], "header": {"date": "10/9/2017", "total": 34.52, "module": "MJE", "vendor": "Target", "location": "Stow, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-27 01:03:13.761154-04'); -INSERT INTO log (id, rec, post_stmp) VALUES (22, '{"GL": [{"amt": 2.18, "qty": "1 × $2.18", "item": "rice", "reason": "food", "account": "food", "vend item": "Thai Kitchen Asian Creations Brown Rice Stir-Fry Noodles, 8 oz"}, {"amt": 2.43, "qty": "6.41 lb × $0.38 / lb", "item": "bananas", "reason": "food", "account": "food", "vend item": "Bananas, each"}, {"amt": 7.25, "qty": "1.04 lb × $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Prima Della Delicatessen Tavern Ham"}, {"amt": 3.56, "qty": "2 × $1.78", "item": "green beans", "reason": "food", "account": "food", "vend item": "Del Monte Blue Lake Cut Green Beans, 28 oz"}, {"amt": 5, "qty": "2 × $2.50", "item": "bread", "reason": "food", "account": "food", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": 5.47, "qty": "1 × $5.47", "item": "salad dressing", "reason": "food", "account": "food", "vend item": "Hidden Valley Original Ranch Salad Dressing, 36 Ounces"}, {"amt": 1.74, "qty": "1 × $1.74", "item": "carrots", "reason": "food", "account": "food", "vend item": "Organic Baby Peeled Carrots, 1 lb"}, {"amt": 1.48, "qty": "1 × $1.48", "item": "celery", "reason": "food", "account": "food", "vend item": "Celery, each"}, {"amt": 7.04, "qty": "8 × $0.88", "item": "water", "reason": "food", "account": "food", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": 5.96, "qty": "2 × $2.98", "item": "chips", "reason": "food", "account": "food", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": 2.98, "qty": "1 × $2.98", "item": "chips", "reason": "food", "account": "food", "vend item": "SunChips® Garden Salsa Flavored Whole Grain Snacks, 7 oz. Bag"}, {"amt": 6.96, "qty": "2 × $3.48", "item": "chips", "reason": "food", "account": "food", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": 3.28, "qty": "2 × $1.64", "item": "oats", "reason": "food", "account": "food", "vend item": "Great Value 100% Whole Grain Quick Oats, 18 oz"}, {"amt": "0.98", "qty": "1 × $0.98", "item": "carrots", "reason": "food", "account": "food", "vend item": "Grimmway Farms® Bunny-Luv® Fresh Organic Carrots 16 oz. Bag"}, {"amt": 5.98, "qty": "1 × $5.98", "item": "ground beef", "reason": "food", "account": "food", "vend item": "Marketside Grass-Fed Ground Beef 90% Lean 10% Fat"}, {"amt": 4.88, "qty": "2 × $2.44", "item": "beef stock", "reason": "food", "account": "food", "vend item": "Kitchen Basics® Original Beef Stock 32 oz. Aseptic Carton"}, {"amt": 11.82, "qty": "1 × $11.82", "item": "chuck roast", "reason": "food", "account": "food", "vend item": "Choice Beef Chuck Roast, 2.1-2.7 lbs."}, {"amt": 17.34, "qty": "3 × $5.78", "item": "peanut butter", "reason": "food", "account": "food", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": 3.88, "qty": "1 × $3.88", "item": "peppers", "reason": "food", "account": "food", "vend item": "Mixed Bell Peppers (Selection May Vary) 3 count"}, {"amt": 1.84, "qty": "2 × $0.92", "item": "beans", "reason": "food", "account": "food", "vend item": "Great Value Organic Black Beans, No Salt Added, 15 oz"}, {"amt": 2.92, "qty": "1 × $2.92", "item": "noodles", "reason": "food", "account": "food", "vend item": "Great Value Thin Spaghetti, 48 oz"}, {"amt": 2.97, "qty": "1 × $2.97", "item": "potatoes", "reason": "food", "account": "food", "vend item": "Russet Potatoes, 5 lb bag"}, {"amt": 6.68, "qty": "2 × $3.34", "item": "bread crumbs", "reason": "food", "account": "food", "vend item": "4C Gluten Free Plain Crumbs, 12 oz"}, {"amt": 3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": 3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": 4.22, "qty": "1 × $4.22", "item": "chedar cheese", "reason": "food", "account": "food", "vend item": "Great Value Sharp Cheddar Cheese, 16 oz"}, {"amt": 6.96, "qty": "2 × $3.48", "item": "barbecue sauce", "reason": "food", "account": "food", "vend item": "Jack Daniel''s Original No.7 Recipe Barbecue Sauce, 19 oz"}, {"amt": "0.98", "qty": "1 × $0.98", "item": "croutons", "reason": "food", "account": "food", "vend item": "Great Value Seasoned Croutons, 5 oz"}, {"amt": 1.38, "qty": "1 × $1.38", "item": "noodles", "reason": "food", "account": "food", "vend item": "Barilla Pasta Orzo, 16.0 OZ"}, {"amt": 5.78, "qty": "1 × $5.78", "item": "mozaralla", "reason": "food", "account": "food", "vend item": "Belgioioso Fresh Mozzaralla All-Natural Cheese, 16 oz"}, {"amt": 2.64, "qty": "1 × $2.64", "item": "american cheese", "reason": "food", "account": "food", "vend item": "Great Value White American Cheese Product Singles, 12 oz"}, {"amt": 1.98, "qty": "1 × $1.98", "item": "tortillas", "reason": "food", "account": "food", "vend item": "Great Value Burrito Size Flour Tortillas, 8ct"}, {"amt": 3.74, "qty": "1 × $3.74", "item": "balsamic vinegar", "reason": "food", "account": "food", "vend item": "De Nigris Balsamic Vinegar of Modena, 33.8 fl oz"}, {"amt": 11.31, "qty": "3 × $3.77", "item": "romain", "reason": "food", "account": "food", "vend item": "Organic Romaine Hearts"}, {"amt": 1.98, "qty": "1 × $1.98", "item": "lime juice", "reason": "food", "account": "food", "vend item": "ReaLime 100% Lime Juice, 15 Fl Oz, 1 Count"}, {"amt": "0.58", "qty": "1 × $0.58", "item": "cilantro", "reason": "food", "account": "food", "vend item": "Cilantro, 1 bunch"}, {"amt": 23.92, "qty": "4 × $5.98", "item": "bacon", "reason": "food", "account": "food", "vend item": "Hormel® Natural Choice® Original Uncured Bacon 12 oz. Package"}, {"amt": 1.16, "qty": "2 × $0.58", "item": "green onions", "reason": "food", "account": "food", "vend item": "Green Onion, bunch"}, {"amt": 3.96, "qty": "2 × $1.98", "item": "soy sauce", "reason": "food", "account": "food", "vend item": "Kikkoman Soy Sauce, 15.0 FL OZ"}, {"amt": 2.88, "qty": "4 × $0.72", "item": "water chesnuts", "reason": "food", "account": "food", "vend item": "Dynasty Sliced Water Chestnuts, 8 oz"}, {"amt": 5.82, "qty": "3 × $1.94", "item": "broccoli", "reason": "food", "account": "food", "vend item": "Broccoli, each"}, {"amt": 1.98, "qty": "1 × $1.98", "item": "cantaloupe", "reason": "food", "account": "food", "vend item": "Cantaloupe, each"}, {"amt": 68, "qty": "5 × $13.60", "item": "chicken", "reason": "food", "account": "food", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": 4.14, "qty": "3 × $1.38", "item": "chicken broth", "reason": "food", "account": "food", "vend item": "Great Value Chicken Broth, Reduced Sodium, 32 oz"}, {"amt": 3.45, "qty": "0.87 × $3.97", "item": "asparagus", "reason": "food", "account": "food", "vend item": "Asparagus"}, {"amt": 5.2, "qty": "2.77 × $1.88", "item": "grapes", "reason": "food", "account": "food", "vend item": "Seedless Red Grapes, 2 lb bag"}, {"amt": "0.53", "item": "sales tax", "reason": "food", "account": "food", "vend item": "Total Tax"}, {"amt": -2.18, "qty": "1 × $2.18", "item": "rice", "reason": "food", "account": "dcard", "vend item": "Thai Kitchen Asian Creations Brown Rice Stir-Fry Noodles, 8 oz"}, {"amt": -2.43, "qty": "6.41 lb × $0.38 / lb", "item": "bananas", "reason": "food", "account": "dcard", "vend item": "Bananas, each"}, {"amt": -7.25, "qty": "1.04 lb × $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Prima Della Delicatessen Tavern Ham"}, {"amt": -3.56, "qty": "2 × $1.78", "item": "green beans", "reason": "food", "account": "dcard", "vend item": "Del Monte Blue Lake Cut Green Beans, 28 oz"}, {"amt": -5, "qty": "2 × $2.50", "item": "bread", "reason": "food", "account": "dcard", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": -5.47, "qty": "1 × $5.47", "item": "salad dressing", "reason": "food", "account": "dcard", "vend item": "Hidden Valley Original Ranch Salad Dressing, 36 Ounces"}, {"amt": -1.74, "qty": "1 × $1.74", "item": "carrots", "reason": "food", "account": "dcard", "vend item": "Organic Baby Peeled Carrots, 1 lb"}, {"amt": -1.48, "qty": "1 × $1.48", "item": "celery", "reason": "food", "account": "dcard", "vend item": "Celery, each"}, {"amt": -7.04, "qty": "8 × $0.88", "item": "water", "reason": "food", "account": "dcard", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": -5.96, "qty": "2 × $2.98", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": -2.98, "qty": "1 × $2.98", "item": "chips", "reason": "food", "account": "dcard", "vend item": "SunChips® Garden Salsa Flavored Whole Grain Snacks, 7 oz. Bag"}, {"amt": -6.96, "qty": "2 × $3.48", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": -3.28, "qty": "2 × $1.64", "item": "oats", "reason": "food", "account": "dcard", "vend item": "Great Value 100% Whole Grain Quick Oats, 18 oz"}, {"amt": -0.98, "qty": "1 × $0.98", "item": "carrots", "reason": "food", "account": "dcard", "vend item": "Grimmway Farms® Bunny-Luv® Fresh Organic Carrots 16 oz. Bag"}, {"amt": -5.98, "qty": "1 × $5.98", "item": "ground beef", "reason": "food", "account": "dcard", "vend item": "Marketside Grass-Fed Ground Beef 90% Lean 10% Fat"}, {"amt": -4.88, "qty": "2 × $2.44", "item": "beef stock", "reason": "food", "account": "dcard", "vend item": "Kitchen Basics® Original Beef Stock 32 oz. Aseptic Carton"}, {"amt": -11.82, "qty": "1 × $11.82", "item": "chuck roast", "reason": "food", "account": "dcard", "vend item": "Choice Beef Chuck Roast, 2.1-2.7 lbs."}, {"amt": -17.34, "qty": "3 × $5.78", "item": "peanut butter", "reason": "food", "account": "dcard", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": -3.88, "qty": "1 × $3.88", "item": "peppers", "reason": "food", "account": "dcard", "vend item": "Mixed Bell Peppers (Selection May Vary) 3 count"}, {"amt": -1.84, "qty": "2 × $0.92", "item": "beans", "reason": "food", "account": "dcard", "vend item": "Great Value Organic Black Beans, No Salt Added, 15 oz"}, {"amt": -2.92, "qty": "1 × $2.92", "item": "noodles", "reason": "food", "account": "dcard", "vend item": "Great Value Thin Spaghetti, 48 oz"}, {"amt": -2.97, "qty": "1 × $2.97", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "Russet Potatoes, 5 lb bag"}, {"amt": -6.68, "qty": "2 × $3.34", "item": "bread crumbs", "reason": "food", "account": "dcard", "vend item": "4C Gluten Free Plain Crumbs, 12 oz"}, {"amt": -3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": -3.47, "qty": "1 × $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": -4.22, "qty": "1 × $4.22", "item": "chedar cheese", "reason": "food", "account": "dcard", "vend item": "Great Value Sharp Cheddar Cheese, 16 oz"}, {"amt": -6.96, "qty": "2 × $3.48", "item": "barbecue sauce", "reason": "food", "account": "dcard", "vend item": "Jack Daniel''s Original No.7 Recipe Barbecue Sauce, 19 oz"}, {"amt": -0.98, "qty": "1 × $0.98", "item": "croutons", "reason": "food", "account": "dcard", "vend item": "Great Value Seasoned Croutons, 5 oz"}, {"amt": -1.38, "qty": "1 × $1.38", "item": "noodles", "reason": "food", "account": "dcard", "vend item": "Barilla Pasta Orzo, 16.0 OZ"}, {"amt": -5.78, "qty": "1 × $5.78", "item": "mozaralla", "reason": "food", "account": "dcard", "vend item": "Belgioioso Fresh Mozzaralla All-Natural Cheese, 16 oz"}, {"amt": -2.64, "qty": "1 × $2.64", "item": "american cheese", "reason": "food", "account": "dcard", "vend item": "Great Value White American Cheese Product Singles, 12 oz"}, {"amt": -1.98, "qty": "1 × $1.98", "item": "tortillas", "reason": "food", "account": "dcard", "vend item": "Great Value Burrito Size Flour Tortillas, 8ct"}, {"amt": -3.74, "qty": "1 × $3.74", "item": "balsamic vinegar", "reason": "food", "account": "dcard", "vend item": "De Nigris Balsamic Vinegar of Modena, 33.8 fl oz"}, {"amt": -11.31, "qty": "3 × $3.77", "item": "romain", "reason": "food", "account": "dcard", "vend item": "Organic Romaine Hearts"}, {"amt": -1.98, "qty": "1 × $1.98", "item": "lime juice", "reason": "food", "account": "dcard", "vend item": "ReaLime 100% Lime Juice, 15 Fl Oz, 1 Count"}, {"amt": -0.58, "qty": "1 × $0.58", "item": "cilantro", "reason": "food", "account": "dcard", "vend item": "Cilantro, 1 bunch"}, {"amt": -23.92, "qty": "4 × $5.98", "item": "bacon", "reason": "food", "account": "dcard", "vend item": "Hormel® Natural Choice® Original Uncured Bacon 12 oz. Package"}, {"amt": -1.16, "qty": "2 × $0.58", "item": "green onions", "reason": "food", "account": "dcard", "vend item": "Green Onion, bunch"}, {"amt": -3.96, "qty": "2 × $1.98", "item": "soy sauce", "reason": "food", "account": "dcard", "vend item": "Kikkoman Soy Sauce, 15.0 FL OZ"}, {"amt": -2.88, "qty": "4 × $0.72", "item": "water chesnuts", "reason": "food", "account": "dcard", "vend item": "Dynasty Sliced Water Chestnuts, 8 oz"}, {"amt": -5.82, "qty": "3 × $1.94", "item": "broccoli", "reason": "food", "account": "dcard", "vend item": "Broccoli, each"}, {"amt": -1.98, "qty": "1 × $1.98", "item": "cantaloupe", "reason": "food", "account": "dcard", "vend item": "Cantaloupe, each"}, {"amt": -68, "qty": "5 × $13.60", "item": "chicken", "reason": "food", "account": "dcard", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": -4.14, "qty": "3 × $1.38", "item": "chicken broth", "reason": "food", "account": "dcard", "vend item": "Great Value Chicken Broth, Reduced Sodium, 32 oz"}, {"amt": -3.45, "qty": "0.87 × $3.97", "item": "asparagus", "reason": "food", "account": "dcard", "vend item": "Asparagus"}, {"amt": -5.2, "qty": "2.77 × $1.88", "item": "grapes", "reason": "food", "account": "dcard", "vend item": "Seedless Red Grapes, 2 lb bag"}, {"amt": -0.53, "item": "sales tax", "reason": "food", "account": "dcard", "vend item": "Total Tax"}], "header": {"date": "10/1/2017", "total": 284.15, "module": "MJE", "vendor": "Walmart", "location": "Streetsboro, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:22:00.45795-04'); +INSERT INTO log (id, rec, post_stmp) VALUES (22, '{"GL": [{"amt": 2.18, "qty": "1 � $2.18", "item": "rice", "reason": "food", "account": "food", "vend item": "Thai Kitchen Asian Creations Brown Rice Stir-Fry Noodles, 8 oz"}, {"amt": 2.43, "qty": "6.41 lb � $0.38 / lb", "item": "bananas", "reason": "food", "account": "food", "vend item": "Bananas, each"}, {"amt": 7.25, "qty": "1.04 lb � $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "food", "vend item": "Prima Della Delicatessen Tavern Ham"}, {"amt": 3.56, "qty": "2 � $1.78", "item": "green beans", "reason": "food", "account": "food", "vend item": "Del Monte Blue Lake Cut Green Beans, 28 oz"}, {"amt": 5, "qty": "2 � $2.50", "item": "bread", "reason": "food", "account": "food", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": 5.47, "qty": "1 � $5.47", "item": "salad dressing", "reason": "food", "account": "food", "vend item": "Hidden Valley Original Ranch Salad Dressing, 36 Ounces"}, {"amt": 1.74, "qty": "1 � $1.74", "item": "carrots", "reason": "food", "account": "food", "vend item": "Organic Baby Peeled Carrots, 1 lb"}, {"amt": 1.48, "qty": "1 � $1.48", "item": "celery", "reason": "food", "account": "food", "vend item": "Celery, each"}, {"amt": 7.04, "qty": "8 � $0.88", "item": "water", "reason": "food", "account": "food", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": 5.96, "qty": "2 � $2.98", "item": "chips", "reason": "food", "account": "food", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": 2.98, "qty": "1 � $2.98", "item": "chips", "reason": "food", "account": "food", "vend item": "SunChips® Garden Salsa Flavored Whole Grain Snacks, 7 oz. Bag"}, {"amt": 6.96, "qty": "2 � $3.48", "item": "chips", "reason": "food", "account": "food", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": 3.28, "qty": "2 � $1.64", "item": "oats", "reason": "food", "account": "food", "vend item": "Great Value 100% Whole Grain Quick Oats, 18 oz"}, {"amt": "0.98", "qty": "1 � $0.98", "item": "carrots", "reason": "food", "account": "food", "vend item": "Grimmway Farms� Bunny-Luv� Fresh Organic Carrots 16 oz. Bag"}, {"amt": 5.98, "qty": "1 � $5.98", "item": "ground beef", "reason": "food", "account": "food", "vend item": "Marketside Grass-Fed Ground Beef 90% Lean 10% Fat"}, {"amt": 4.88, "qty": "2 � $2.44", "item": "beef stock", "reason": "food", "account": "food", "vend item": "Kitchen Basics� Original Beef Stock 32 oz. Aseptic Carton"}, {"amt": 11.82, "qty": "1 � $11.82", "item": "chuck roast", "reason": "food", "account": "food", "vend item": "Choice Beef Chuck Roast, 2.1-2.7 lbs."}, {"amt": 17.34, "qty": "3 � $5.78", "item": "peanut butter", "reason": "food", "account": "food", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": 3.88, "qty": "1 � $3.88", "item": "peppers", "reason": "food", "account": "food", "vend item": "Mixed Bell Peppers (Selection May Vary) 3 count"}, {"amt": 1.84, "qty": "2 � $0.92", "item": "beans", "reason": "food", "account": "food", "vend item": "Great Value Organic Black Beans, No Salt Added, 15 oz"}, {"amt": 2.92, "qty": "1 � $2.92", "item": "noodles", "reason": "food", "account": "food", "vend item": "Great Value Thin Spaghetti, 48 oz"}, {"amt": 2.97, "qty": "1 � $2.97", "item": "potatoes", "reason": "food", "account": "food", "vend item": "Russet Potatoes, 5 lb bag"}, {"amt": 6.68, "qty": "2 � $3.34", "item": "bread crumbs", "reason": "food", "account": "food", "vend item": "4C Gluten Free Plain Crumbs, 12 oz"}, {"amt": 3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": 3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "food", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": 4.22, "qty": "1 � $4.22", "item": "chedar cheese", "reason": "food", "account": "food", "vend item": "Great Value Sharp Cheddar Cheese, 16 oz"}, {"amt": 6.96, "qty": "2 � $3.48", "item": "barbecue sauce", "reason": "food", "account": "food", "vend item": "Jack Daniel''s Original No.7 Recipe Barbecue Sauce, 19 oz"}, {"amt": "0.98", "qty": "1 � $0.98", "item": "croutons", "reason": "food", "account": "food", "vend item": "Great Value Seasoned Croutons, 5 oz"}, {"amt": 1.38, "qty": "1 � $1.38", "item": "noodles", "reason": "food", "account": "food", "vend item": "Barilla Pasta Orzo, 16.0 OZ"}, {"amt": 5.78, "qty": "1 � $5.78", "item": "mozaralla", "reason": "food", "account": "food", "vend item": "Belgioioso Fresh Mozzaralla All-Natural Cheese, 16 oz"}, {"amt": 2.64, "qty": "1 � $2.64", "item": "american cheese", "reason": "food", "account": "food", "vend item": "Great Value White American Cheese Product Singles, 12 oz"}, {"amt": 1.98, "qty": "1 � $1.98", "item": "tortillas", "reason": "food", "account": "food", "vend item": "Great Value Burrito Size Flour Tortillas, 8ct"}, {"amt": 3.74, "qty": "1 � $3.74", "item": "balsamic vinegar", "reason": "food", "account": "food", "vend item": "De Nigris Balsamic Vinegar of Modena, 33.8 fl oz"}, {"amt": 11.31, "qty": "3 � $3.77", "item": "romain", "reason": "food", "account": "food", "vend item": "Organic Romaine Hearts"}, {"amt": 1.98, "qty": "1 � $1.98", "item": "lime juice", "reason": "food", "account": "food", "vend item": "ReaLime 100% Lime Juice, 15 Fl Oz, 1 Count"}, {"amt": "0.58", "qty": "1 � $0.58", "item": "cilantro", "reason": "food", "account": "food", "vend item": "Cilantro, 1 bunch"}, {"amt": 23.92, "qty": "4 � $5.98", "item": "bacon", "reason": "food", "account": "food", "vend item": "Hormel� Natural Choice� Original Uncured Bacon 12 oz. Package"}, {"amt": 1.16, "qty": "2 � $0.58", "item": "green onions", "reason": "food", "account": "food", "vend item": "Green Onion, bunch"}, {"amt": 3.96, "qty": "2 � $1.98", "item": "soy sauce", "reason": "food", "account": "food", "vend item": "Kikkoman Soy Sauce, 15.0 FL OZ"}, {"amt": 2.88, "qty": "4 � $0.72", "item": "water chesnuts", "reason": "food", "account": "food", "vend item": "Dynasty Sliced Water Chestnuts, 8 oz"}, {"amt": 5.82, "qty": "3 � $1.94", "item": "broccoli", "reason": "food", "account": "food", "vend item": "Broccoli, each"}, {"amt": 1.98, "qty": "1 � $1.98", "item": "cantaloupe", "reason": "food", "account": "food", "vend item": "Cantaloupe, each"}, {"amt": 68, "qty": "5 � $13.60", "item": "chicken", "reason": "food", "account": "food", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": 4.14, "qty": "3 � $1.38", "item": "chicken broth", "reason": "food", "account": "food", "vend item": "Great Value Chicken Broth, Reduced Sodium, 32 oz"}, {"amt": 3.45, "qty": "0.87 � $3.97", "item": "asparagus", "reason": "food", "account": "food", "vend item": "Asparagus"}, {"amt": 5.2, "qty": "2.77 � $1.88", "item": "grapes", "reason": "food", "account": "food", "vend item": "Seedless Red Grapes, 2 lb bag"}, {"amt": "0.53", "item": "sales tax", "reason": "food", "account": "food", "vend item": "Total Tax"}, {"amt": -2.18, "qty": "1 � $2.18", "item": "rice", "reason": "food", "account": "dcard", "vend item": "Thai Kitchen Asian Creations Brown Rice Stir-Fry Noodles, 8 oz"}, {"amt": -2.43, "qty": "6.41 lb � $0.38 / lb", "item": "bananas", "reason": "food", "account": "dcard", "vend item": "Bananas, each"}, {"amt": -7.25, "qty": "1.04 lb � $6.98 / lb", "item": "lunch meat", "reason": "food", "account": "dcard", "vend item": "Prima Della Delicatessen Tavern Ham"}, {"amt": -3.56, "qty": "2 � $1.78", "item": "green beans", "reason": "food", "account": "dcard", "vend item": "Del Monte Blue Lake Cut Green Beans, 28 oz"}, {"amt": -5, "qty": "2 � $2.50", "item": "bread", "reason": "food", "account": "dcard", "vend item": "Sara Lee Artesano Style Bread, 20 oz"}, {"amt": -5.47, "qty": "1 � $5.47", "item": "salad dressing", "reason": "food", "account": "dcard", "vend item": "Hidden Valley Original Ranch Salad Dressing, 36 Ounces"}, {"amt": -1.74, "qty": "1 � $1.74", "item": "carrots", "reason": "food", "account": "dcard", "vend item": "Organic Baby Peeled Carrots, 1 lb"}, {"amt": -1.48, "qty": "1 � $1.48", "item": "celery", "reason": "food", "account": "dcard", "vend item": "Celery, each"}, {"amt": -7.04, "qty": "8 � $0.88", "item": "water", "reason": "food", "account": "dcard", "vend item": "Great Value: Distilled Water, 1 Gal"}, {"amt": -5.96, "qty": "2 � $2.98", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Cheetos Paws, Cheese Flavored Snacks, 7.5 oz. Bag"}, {"amt": -2.98, "qty": "1 � $2.98", "item": "chips", "reason": "food", "account": "dcard", "vend item": "SunChips® Garden Salsa Flavored Whole Grain Snacks, 7 oz. Bag"}, {"amt": -6.96, "qty": "2 � $3.48", "item": "chips", "reason": "food", "account": "dcard", "vend item": "Tostitos® Original Restaurant Style Tortilla Chips, 18 oz. Bag"}, {"amt": -3.28, "qty": "2 � $1.64", "item": "oats", "reason": "food", "account": "dcard", "vend item": "Great Value 100% Whole Grain Quick Oats, 18 oz"}, {"amt": -0.98, "qty": "1 � $0.98", "item": "carrots", "reason": "food", "account": "dcard", "vend item": "Grimmway Farms� Bunny-Luv� Fresh Organic Carrots 16 oz. Bag"}, {"amt": -5.98, "qty": "1 � $5.98", "item": "ground beef", "reason": "food", "account": "dcard", "vend item": "Marketside Grass-Fed Ground Beef 90% Lean 10% Fat"}, {"amt": -4.88, "qty": "2 � $2.44", "item": "beef stock", "reason": "food", "account": "dcard", "vend item": "Kitchen Basics� Original Beef Stock 32 oz. Aseptic Carton"}, {"amt": -11.82, "qty": "1 � $11.82", "item": "chuck roast", "reason": "food", "account": "dcard", "vend item": "Choice Beef Chuck Roast, 2.1-2.7 lbs."}, {"amt": -17.34, "qty": "3 � $5.78", "item": "peanut butter", "reason": "food", "account": "dcard", "vend item": "Jif Natural Low Sodium Creamy Peanut Butter, 40 oz"}, {"amt": -3.88, "qty": "1 � $3.88", "item": "peppers", "reason": "food", "account": "dcard", "vend item": "Mixed Bell Peppers (Selection May Vary) 3 count"}, {"amt": -1.84, "qty": "2 � $0.92", "item": "beans", "reason": "food", "account": "dcard", "vend item": "Great Value Organic Black Beans, No Salt Added, 15 oz"}, {"amt": -2.92, "qty": "1 � $2.92", "item": "noodles", "reason": "food", "account": "dcard", "vend item": "Great Value Thin Spaghetti, 48 oz"}, {"amt": -2.97, "qty": "1 � $2.97", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "Russet Potatoes, 5 lb bag"}, {"amt": -6.68, "qty": "2 � $3.34", "item": "bread crumbs", "reason": "food", "account": "dcard", "vend item": "4C Gluten Free Plain Crumbs, 12 oz"}, {"amt": -3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Blushing Belle Red Potatoes, 1.5 lb"}, {"amt": -3.47, "qty": "1 � $3.47", "item": "potatoes", "reason": "food", "account": "dcard", "vend item": "The Little Potato Company Baby Boomer Yellow Potatoes, 1.5 lb"}, {"amt": -4.22, "qty": "1 � $4.22", "item": "chedar cheese", "reason": "food", "account": "dcard", "vend item": "Great Value Sharp Cheddar Cheese, 16 oz"}, {"amt": -6.96, "qty": "2 � $3.48", "item": "barbecue sauce", "reason": "food", "account": "dcard", "vend item": "Jack Daniel''s Original No.7 Recipe Barbecue Sauce, 19 oz"}, {"amt": -0.98, "qty": "1 � $0.98", "item": "croutons", "reason": "food", "account": "dcard", "vend item": "Great Value Seasoned Croutons, 5 oz"}, {"amt": -1.38, "qty": "1 � $1.38", "item": "noodles", "reason": "food", "account": "dcard", "vend item": "Barilla Pasta Orzo, 16.0 OZ"}, {"amt": -5.78, "qty": "1 � $5.78", "item": "mozaralla", "reason": "food", "account": "dcard", "vend item": "Belgioioso Fresh Mozzaralla All-Natural Cheese, 16 oz"}, {"amt": -2.64, "qty": "1 � $2.64", "item": "american cheese", "reason": "food", "account": "dcard", "vend item": "Great Value White American Cheese Product Singles, 12 oz"}, {"amt": -1.98, "qty": "1 � $1.98", "item": "tortillas", "reason": "food", "account": "dcard", "vend item": "Great Value Burrito Size Flour Tortillas, 8ct"}, {"amt": -3.74, "qty": "1 � $3.74", "item": "balsamic vinegar", "reason": "food", "account": "dcard", "vend item": "De Nigris Balsamic Vinegar of Modena, 33.8 fl oz"}, {"amt": -11.31, "qty": "3 � $3.77", "item": "romain", "reason": "food", "account": "dcard", "vend item": "Organic Romaine Hearts"}, {"amt": -1.98, "qty": "1 � $1.98", "item": "lime juice", "reason": "food", "account": "dcard", "vend item": "ReaLime 100% Lime Juice, 15 Fl Oz, 1 Count"}, {"amt": -0.58, "qty": "1 � $0.58", "item": "cilantro", "reason": "food", "account": "dcard", "vend item": "Cilantro, 1 bunch"}, {"amt": -23.92, "qty": "4 � $5.98", "item": "bacon", "reason": "food", "account": "dcard", "vend item": "Hormel� Natural Choice� Original Uncured Bacon 12 oz. Package"}, {"amt": -1.16, "qty": "2 � $0.58", "item": "green onions", "reason": "food", "account": "dcard", "vend item": "Green Onion, bunch"}, {"amt": -3.96, "qty": "2 � $1.98", "item": "soy sauce", "reason": "food", "account": "dcard", "vend item": "Kikkoman Soy Sauce, 15.0 FL OZ"}, {"amt": -2.88, "qty": "4 � $0.72", "item": "water chesnuts", "reason": "food", "account": "dcard", "vend item": "Dynasty Sliced Water Chestnuts, 8 oz"}, {"amt": -5.82, "qty": "3 � $1.94", "item": "broccoli", "reason": "food", "account": "dcard", "vend item": "Broccoli, each"}, {"amt": -1.98, "qty": "1 � $1.98", "item": "cantaloupe", "reason": "food", "account": "dcard", "vend item": "Cantaloupe, each"}, {"amt": -68, "qty": "5 � $13.60", "item": "chicken", "reason": "food", "account": "dcard", "vend item": "Harvestland Chicken Breast, 2.4-3.6 lbs."}, {"amt": -4.14, "qty": "3 � $1.38", "item": "chicken broth", "reason": "food", "account": "dcard", "vend item": "Great Value Chicken Broth, Reduced Sodium, 32 oz"}, {"amt": -3.45, "qty": "0.87 � $3.97", "item": "asparagus", "reason": "food", "account": "dcard", "vend item": "Asparagus"}, {"amt": -5.2, "qty": "2.77 � $1.88", "item": "grapes", "reason": "food", "account": "dcard", "vend item": "Seedless Red Grapes, 2 lb bag"}, {"amt": -0.53, "item": "sales tax", "reason": "food", "account": "dcard", "vend item": "Total Tax"}], "header": {"date": "10/1/2017", "total": 284.15, "module": "MJE", "vendor": "Walmart", "location": "Streetsboro, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-28 01:22:00.45795-04'); INSERT INTO log (id, rec, post_stmp) VALUES (42, '{"GL": [{"amt": 7.99, "item": "shampoo", "reason": "hygiene", "account": "home supplies", "vend item": "HERBAL"}, {"amt": 7.99, "item": "conditioner", "reason": "hygiene", "account": "home supplies", "vend item": "HERBAL"}, {"amt": 28.74, "qty": 6, "uom": "ea", "item": "legos", "reason": "toys", "account": "recreation", "vend item": "BUILDING SET"}, {"amt": 3.02, "item": "sales tax", "rate": "0.0675", "reason": "sales tax", "account": "sales tax", "vend item": "OH TAX"}, {"amt": -7.99, "item": "shampoo", "reason": "hygiene", "account": "dcard", "vend item": "HERBAL"}, {"amt": -7.99, "item": "conditioner", "reason": "hygiene", "account": "dcard", "vend item": "HERBAL"}, {"amt": -28.74, "qty": 6, "uom": "ea", "item": "legos", "reason": "toys", "account": "dcard", "vend item": "BUILDING SET"}, {"amt": -3.02, "item": "sales tax", "rate": "0.0675", "reason": "sales tax", "account": "dcard", "vend item": "OH TAX"}], "header": {"date": "10/12/2017", "total": 47.74, "module": "MJE", "vendor": "Target", "location": "Stow, OH", "instrument": "Discover Card", "transaction": "purchase"}}', '2017-10-30 22:06:03.552187-04'); @@ -80,6 +80,12 @@ INSERT INTO srce (srce, defn) VALUES ('DCARD', '{"name": "DCARD", "type": "csv", INSERT INTO map_rm (srce, target, regex, seq) VALUES ('DCARD', 'First 20', '{"map": "yes", "defn": [{"key": "{Description}", "flag": "", "field": "f20", "regex": ".{1,20}", "retain": "y"}], "name": "First 20", "where": [{}], "function": "extract", "description": "pull first 20 characters from description for mapping"}', 2); INSERT INTO map_rm (srce, target, regex, seq) VALUES ('HUNT', 'First 20', '{"map": "yes", "defn": [{"key": "{Memo}", "flag": "", "field": "f20", "regex": ".{1,20}", "retain": "y"}], "name": "First 20", "where": [{}], "function": "extract", "description": "pull first 20 characters from description for mapping"}', 1); +INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Strip Amount Commas', '{"defn": [{"key": "{Amount}", "map": "n", "flag": "g", "field": "amount", "regex": ",", "retain": "y", "replace": ""}], "name": "Strip Amount Commas", "where": [{}], "function": "replace", "description": "the Amount field come from PNC with commas embeded so it cannot be cast to numeric"}', 1); +INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Trans Type', '{"defn": [{"key": "{AccountName}", "map": "y", "field": "acctn", "regex": "(.*)", "retain": "n"}, {"key": "{Transaction}", "map": "y", "field": "trans", "regex": "(.*)", "retain": "n"}, {"key": "{Description}", "map": "y", "field": "ini", "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", "retain": "y"}], "name": "Trans Type", "where": [{}], "function": "extract", "description": "extract intial description in conjunction with account name and transaction type for mapping"}', 1); +INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Currency', '{"defn": [{"key": "{Description}", "map": "y", "field": "ini", "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", "retain": "y"}, {"key": "{Description}", "map": "y", "field": "curr1", "regex": ".*(DEBIT|CREDIT).*(USD|CAD).*(?=DEBIT|CREDIT).*(?=USD|CAD).*", "retain": "y"}, {"key": "{Description}", "map": "y", "field": "curr2", "regex": ".*(?=DEBIT|CREDIT).*(?=USD|CAD).*(DEBIT|CREDIT).*(USD|CAD).*", "retain": "y"}], "name": "Currency", "where": [{"Transaction": "Miscellaneous Credits"}, {"Transaction": "Miscellaneous Debits"}], "function": "extract", "description": "pull out currency indicators from description of misc items and map"}', 2); +INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Check Number', '{"defn": [{"key": "{Description}", "map": "n", "field": "checkn", "regex": "[^0-9]*([0-9]*)\\s|$", "retain": "y"}], "where": [{"Transaction": "Checks Paid"}], "function": "extract"}', 2); +INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Parse ACH', '{"defn": [{"key": "{Description}", "map": "n", "flag": "", "field": "Comp Name", "regex": "Comp Name:(.+?)(?=\\d{6} Com|SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Cust ID", "regex": "Cust ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Desc", "regex": "Desc:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Cust Name", "regex": "Cust Name:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Batch Discr", "regex": "Batch Discr:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Comp ID", "regex": "Comp ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Addenda", "regex": "Addenda:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "SETT", "regex": "SETT:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Date", "regex": "Date:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "Time", "regex": "Time:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", "retain": "y"}], "name": "Parse ACH", "where": [{"Transaction": "ACH Credits"}, {"Transaction": "ACH Debits"}], "function": "extract", "description": "parse select components of the description for ACH Credits Receieved"}', 2); +INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Parse Wires', '{"defn": [{"key": "{Description}", "map": "n", "flag": "g", "field": "dparse", "regex": "([A-Z]{3,}?:)(.*)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "beneficiary_components", "regex": "BENEFICIARY:(.*?)AC/(\\d*) (.*)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "originator_components", "regex": "ORIGINATOR:(.*?)AC/(\\d*) (.*)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "OBI", "regex": "OBI:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "RFB", "regex": "RFB:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "ABA", "regex": "ABA:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "BBI", "regex": "BBI:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "BENEBNK", "regex": "BENEBNK:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "IBK", "regex": "IBK:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "RATE", "regex": "RATE:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}, {"key": "{Description}", "map": "n", "flag": "", "field": "RECVBNK", "regex": "RECVBNK:(.*?)(?=[A-Z]{3,}?:|$)", "retain": "y"}], "name": "Parse Wires", "where": [{"Transaction": "Money Transfer DB - Wire"}, {"Transaction": "Money Transfer DB - Other"}, {"Transaction": "Money Transfer CR-Wire"}, {"Transaction": "Money Transfer CR-Other"}, {"Transaction": "Intl Money Transfer Debits"}, {"Transaction": "Intl Money Transfer Credits"}], "function": "extract", "description": "pull out whatever follows OBI in the description until atleast 3 capital letters followed by a colon are encountered"}', 2); -- @@ -145,7 +151,7 @@ INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "BV HEGDE,MD 330-6733"}', '{"party": "Bv Hegde, MD", "reason": "Medical"}'); INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "BV HEGDE,MD 33067333"}', '{"party": "Bv Hegde, MD", "reason": "Medical"}'); INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "BV HEGDE,MD KENT OH"}', '{"party": "Bv Hegde, MD", "reason": "Medical"}'); -INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "CAFE O PLAY CUYAHOGA"}', '{"party": "Café O Play", "reason": "Recreation"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "CAFE O PLAY CUYAHOGA"}', '{"party": "Caf� O Play", "reason": "Recreation"}'); INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "CAJUN GRILL CLEVELAN"}', '{"party": "Cajun Grill", "reason": "Restaurante"}'); INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "CARTER''S #907 STOW O"}', '{"party": "Carters", "reason": "Clothes"}'); INSERT INTO map_rv (srce, target, retval, map) VALUES ('DCARD', 'First 20', '{"f20": "CASHBACK BONUS REDEM"}', '{"party": "Discover Card Rewards", "reason": "Financing"}'); @@ -2518,7 +2524,7 @@ INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (2312, 'HUNT', '{"Dat INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1493, 'DCARD', '{"Amount": "1.99", "Category": "Merchandise", "Post Date": "2015-06-02", "Description": "GOOGLE *MEDIOCRE GOOGLE.COM/CHCAP04O4YZE", "Trans. Date": "2015-06-02"}', '{"f20": "GOOGLE *MEDIOCRE GOO"}', '{"party": "Google Play", "reason": "Recreation"}', '{"f20": "GOOGLE *MEDIOCRE GOO", "party": "Google Play", "Amount": "1.99", "reason": "Recreation", "Category": "Merchandise", "Post Date": "2015-06-02", "Description": "GOOGLE *MEDIOCRE GOOGLE.COM/CHCAP04O4YZE", "Trans. Date": "2015-06-02"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (2098, 'HUNT', '{"Date": "2017-07-25", "Memo": "DOM EAST OHIO ONLINE PMT170725", "Amount": "-39.19", "Payee Name": "DOM EAST OHIO ONLINE PMT", "Category Name": "", "Reference Number": 0}', '{"f20": "DOM EAST OHIO ONLI"}', '{}', '{"f20": "DOM EAST OHIO ONLI", "Date": "2017-07-25", "Memo": "DOM EAST OHIO ONLINE PMT170725", "Amount": "-39.19", "Payee Name": "DOM EAST OHIO ONLINE PMT", "Category Name": "", "Reference Number": 0}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1227, 'DCARD', '{"Amount": "20.05", "Category": "Merchandise", "Post Date": "2015-11-08", "Description": "DISCOUNT DRUG MART 32 STOW OH", "Trans. Date": "2015-11-08"}', '{"f20": "DISCOUNT DRUG MART 3"}', '{"party": "Discount Drug Mart", "reason": "Groceries"}', '{"f20": "DISCOUNT DRUG MART 3", "party": "Discount Drug Mart", "Amount": "20.05", "reason": "Groceries", "Category": "Merchandise", "Post Date": "2015-11-08", "Description": "DISCOUNT DRUG MART 32 STOW OH", "Trans. Date": "2015-11-08"}'); -INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (174, 'DCARD', '{"Amount": "39.50", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}', '{"f20": "CAFE O PLAY CUYAHOGA"}', '{"party": "Café O Play", "reason": "Recreation"}', '{"f20": "CAFE O PLAY CUYAHOGA", "party": "Café O Play", "Amount": "39.50", "reason": "Recreation", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}'); +INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (174, 'DCARD', '{"Amount": "39.50", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}', '{"f20": "CAFE O PLAY CUYAHOGA"}', '{"party": "Caf� O Play", "reason": "Recreation"}', '{"f20": "CAFE O PLAY CUYAHOGA", "party": "Caf� O Play", "Amount": "39.50", "reason": "Recreation", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (2536, 'HUNT', '{"Date": "2015-01-23", "Memo": "DILLEN PRODUCTS PAYROLL 042330", "Amount": "2365.36", "Payee Name": "DILLEN PRODUCTS PAYROLL", "Category Name": "", "Reference Number": 0}', '{"f20": "DILLEN PRODUCTS PAYR"}', '{}', '{"f20": "DILLEN PRODUCTS PAYR", "Date": "2015-01-23", "Memo": "DILLEN PRODUCTS PAYROLL 042330", "Amount": "2365.36", "Payee Name": "DILLEN PRODUCTS PAYROLL", "Category Name": "", "Reference Number": 0}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1675, 'DCARD', '{"Amount": "13.87", "Category": "Supermarkets", "Post Date": "2016-01-21", "Description": "ACME NO. 17 STOW OH", "Trans. Date": "2016-01-21"}', '{"f20": "ACME NO. 17 STOW OH"}', '{"party": "Acme", "reason": "Groceries"}', '{"f20": "ACME NO. 17 STOW OH", "party": "Acme", "Amount": "13.87", "reason": "Groceries", "Category": "Supermarkets", "Post Date": "2016-01-21", "Description": "ACME NO. 17 STOW OH", "Trans. Date": "2016-01-21"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1566, 'DCARD', '{"Amount": "19.25", "Category": "Supermarkets", "Post Date": "2016-07-28", "Description": "GIANT-EAGLE #4032 STOW OH", "Trans. Date": "2016-07-28"}', '{"f20": "GIANT-EAGLE #4032 ST"}', '{"party": "Giant-Eagle", "reason": "Groceries"}', '{"f20": "GIANT-EAGLE #4032 ST", "party": "Giant-Eagle", "Amount": "19.25", "reason": "Groceries", "Category": "Supermarkets", "Post Date": "2016-07-28", "Description": "GIANT-EAGLE #4032 STOW OH", "Trans. Date": "2016-07-28"}'); @@ -2715,7 +2721,7 @@ INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1213, 'DCARD', '{"Am INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1564, 'DCARD', '{"Amount": "61.88", "Category": "Merchandise", "Post Date": "2016-06-15", "Description": "1794MOTHERHOOD #1794 AKRON OH", "Trans. Date": "2016-06-15"}', '{"f20": "1794MOTHERHOOD #1794"}', '{"party": "Motherhood", "reason": "Clothes"}', '{"f20": "1794MOTHERHOOD #1794", "party": "Motherhood", "Amount": "61.88", "reason": "Clothes", "Category": "Merchandise", "Post Date": "2016-06-15", "Description": "1794MOTHERHOOD #1794 AKRON OH", "Trans. Date": "2016-06-15"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1415, 'DCARD', '{"Amount": "10.66", "Category": "Services", "Post Date": "2015-01-02", "Description": "MSFT *OFFICE OFFICE.COM WA", "Trans. Date": "2015-01-02"}', '{"f20": "MSFT *OFFICE OFFICE."}', '{"party": "Microsoft", "reason": "Home Supplies"}', '{"f20": "MSFT *OFFICE OFFICE.", "party": "Microsoft", "Amount": "10.66", "reason": "Home Supplies", "Category": "Services", "Post Date": "2015-01-02", "Description": "MSFT *OFFICE OFFICE.COM WA", "Trans. Date": "2015-01-02"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1301, 'DCARD', '{"Amount": "146.31", "Category": "Merchandise", "Post Date": "2014-05-28", "Description": "WAL-MART SC - #2323 STOW OH", "Trans. Date": "2014-05-28"}', '{"f20": "WAL-MART SC - #2323"}', '{"party": "Wal-Mart", "reason": "Home Supplies"}', '{"f20": "WAL-MART SC - #2323", "party": "Wal-Mart", "Amount": "146.31", "reason": "Home Supplies", "Category": "Merchandise", "Post Date": "2014-05-28", "Description": "WAL-MART SC - #2323 STOW OH", "Trans. Date": "2014-05-28"}'); -INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (175, 'DCARD', '{"Amount": "4.89", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}', '{"f20": "CAFE O PLAY CUYAHOGA"}', '{"party": "Café O Play", "reason": "Recreation"}', '{"f20": "CAFE O PLAY CUYAHOGA", "party": "Café O Play", "Amount": "4.89", "reason": "Recreation", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}'); +INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (175, 'DCARD', '{"Amount": "4.89", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}', '{"f20": "CAFE O PLAY CUYAHOGA"}', '{"party": "Caf� O Play", "reason": "Recreation"}', '{"f20": "CAFE O PLAY CUYAHOGA", "party": "Caf� O Play", "Amount": "4.89", "reason": "Recreation", "Category": "Travel/ Entertainment", "Post Date": "2017-03-20", "Description": "CAFE O PLAY CUYAHOGA FALLOH", "Trans. Date": "2017-03-20"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1418, 'DCARD', '{"Amount": "10.66", "Category": "Services", "Post Date": "2015-04-02", "Description": "MSFT *OFFICE OFFICE.COM WA", "Trans. Date": "2015-04-02"}', '{"f20": "MSFT *OFFICE OFFICE."}', '{"party": "Microsoft", "reason": "Home Supplies"}', '{"f20": "MSFT *OFFICE OFFICE.", "party": "Microsoft", "Amount": "10.66", "reason": "Home Supplies", "Category": "Services", "Post Date": "2015-04-02", "Description": "MSFT *OFFICE OFFICE.COM WA", "Trans. Date": "2015-04-02"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (2073, 'DCARD', '{"Amount": "280.83", "Category": "Merchandise", "Post Date": "2017-08-18", "Description": "WAL-MART SC - #2323 STOW OH", "Trans. Date": "2017-08-18"}', '{"f20": "WAL-MART SC - #2323"}', '{"party": "Wal-Mart", "reason": "Home Supplies"}', '{"f20": "WAL-MART SC - #2323", "party": "Wal-Mart", "Amount": "280.83", "reason": "Home Supplies", "Category": "Merchandise", "Post Date": "2017-08-18", "Description": "WAL-MART SC - #2323 STOW OH", "Trans. Date": "2017-08-18"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (99, 'DCARD', '{"Amount": "11.49", "Category": "Merchandise", "Post Date": "2017-05-07", "Description": "HOBBY LOBBY #405 STOW OH", "Trans. Date": "2017-05-05"}', '{"f20": "HOBBY LOBBY #405 STO"}', '{"party": "Hobby Lobby", "reason": "Home Supplies"}', '{"f20": "HOBBY LOBBY #405 STO", "party": "Hobby Lobby", "Amount": "11.49", "reason": "Home Supplies", "Category": "Merchandise", "Post Date": "2017-05-07", "Description": "HOBBY LOBBY #405 STOW OH", "Trans. Date": "2017-05-05"}'); @@ -3127,6 +3133,67 @@ INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (816, 'DCARD', '{"Amo INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (2395, 'HUNT', '{"Date": "2015-11-25", "Memo": "SUBSTITUTE CHECK", "Amount": "-525.00", "Payee Name": "", "Category Name": "", "Reference Number": 1678}', '{"f20": "SUBSTITUTE CHECK"}', '{}', '{"f20": "SUBSTITUTE CHECK", "Date": "2015-11-25", "Memo": "SUBSTITUTE CHECK", "Amount": "-525.00", "Payee Name": "", "Category Name": "", "Reference Number": 1678}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1783, 'DCARD', '{"Amount": "16.00", "Category": "Supermarkets", "Post Date": "2016-11-03", "Description": "GIANT-EAGLE #4032 STOW OH", "Trans. Date": "2016-11-03"}', '{"f20": "GIANT-EAGLE #4032 ST"}', '{"party": "Giant-Eagle", "reason": "Groceries"}', '{"f20": "GIANT-EAGLE #4032 ST", "party": "Giant-Eagle", "Amount": "16.00", "reason": "Groceries", "Category": "Supermarkets", "Post Date": "2016-11-03", "Description": "GIANT-EAGLE #4032 STOW OH", "Trans. Date": "2016-11-03"}'); INSERT INTO trans (id, srce, rec, parse, map, allj) VALUES (1079, 'DCARD', '{"Amount": "248", "Category": "Medical Services", "Post Date": "2015-10-14", "Description": "STOW DENTAL GROUP INC STOW OH", "Trans. Date": "2015-10-14"}', '{"f20": "STOW DENTAL GROUP IN"}', '{"party": "Stow Dental Group", "reason": "Medical"}', '{"f20": "STOW DENTAL GROUP IN", "party": "Stow Dental Group", "Amount": "248", "reason": "Medical", "Category": "Medical Services", "Post Date": "2015-10-14", "Description": "STOW DENTAL GROUP INC STOW OH", "Trans. Date": "2015-10-14"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CANADA TAX", "acctn": "The HC Operating Company OPERA", "trans": "Detail Debit Adjustments"}', '{"sign": "-1", "party": "PNC", "ledger": "Manual", "reason": "Bank Fees", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH DEBIT SETTLEMENT", "acctn": "The HC Operating Company OPERA", "trans": "ACH Debits"}', '{"sign": "-1", "ledger": "AP - ACH", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "RET DEP ITEM RTM", "acctn": "The HC Operating Company FBO P", "trans": "Deposited Items Returned"}', '{"sign": "-1", "ledger": "Manual", "reason": "Returned Deposit RTM", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "RET DEP ITEM STOP", "acctn": "The HC Operating Company FBO P", "trans": "Deposited Items Returned"}', '{"sign": "-1", "ledger": "Manual", "reason": "Returned Deposit STOP", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CREDIT ADJUSTMENT", "acctn": "The HC Operating Company FBO P", "trans": "Detail Credit Adjustments"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "REFER TO MAKER OF CK RETURN CK", "acctn": "The HC Operating Company OPERA", "trans": "Detail Credit Adjustments"}', '{"sign": "1", "ledger": "Manual", "reason": "Returned Check", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "DEBIT ADJUSTMENT", "acctn": "The HC Operating Company PAYR", "trans": "Detail Debit Adjustments"}', '{"sign": "-1", "ledger": "Manual", "reason": "Payroll Adjustment", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "DEPOSIT", "acctn": "The HC Operating Company FBO P", "trans": "Detail Deposits"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "INTL WIRE OUT", "acctn": "The HC Operating Company OPERA", "trans": "Intl Money Transfer Debits"}', '{"sign": "-1", "ledger": "AP - Wire", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "INTL WIRES OUT", "acctn": "The HC Operating Company OPERA", "trans": "Intl Money Transfer Debits"}', '{"sign": "-1", "ledger": "AP - Wire", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "WHLS LBX DEP", "acctn": "The HC Operating Company FBO P", "trans": "Lockbox Deposits"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "WHLS LBX DEP932855", "acctn": "The HC Operating Company FBO P", "trans": "Lockbox Deposits"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ADVANCE", "acctn": "The HC Operating Company OPERA", "trans": "Miscellaneous Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "Revolver Advance", "trantype": "Revolver Borrow"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "DEPOSIT:", "acctn": "The HC Operating Company FBO P", "trans": "Miscellaneous Credits"}', '{"sign": "1", "ledger": "Manual", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "MISC CREDIT", "acctn": "The HC Operating Company OPERA", "trans": "Miscellaneous Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "Misc Credit", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "PAYMENT", "acctn": "The HC Operating Company FBO P", "trans": "Miscellaneous Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "Revolver Payment", "trantype": "Revolver Borrow"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "PAYMENT", "acctn": "The HC Operating Company FBO P", "trans": "Miscellaneous Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "Revolver Payment", "trantype": "Revolver Payment"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "INTTL WIRES IN", "acctn": "The HC Operating Company FBO P", "trans": "Intl Money Transfer Credits"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "PNC BANK- NJ LOAN PROCEEDS", "acctn": "The HC Operating Company FBO P", "trans": "Money Transfer CR-Other"}', '{"sign": "1", "ledger": "Manual", "reason": "Revolver Advance", "trantype": "Revolver Borrow"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "PNC BANK-PGH LOAN PROCEEDS", "acctn": "The HC Operating Company OPERA", "trans": "Money Transfer CR-Other"}', '{"sign": "1", "ledger": "Manual", "reason": "Revolver Advance", "trantype": "Revolver Borrow"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FED WIRE IN", "acctn": "The HC Operating Company FBO P", "trans": "Money Transfer CR-Wire"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FED WIRE IN", "acctn": "The HC Operating Company OPERA", "trans": "Money Transfer CR-Wire"}', '{"sign": "1", "ledger": "Manual", "reason": "Returned Wires", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "BOOK TRANSFER DEBIT", "acctn": "The HC Operating Company OPERA", "trans": "Money Transfer DB - Other"}', '{"sign": "-1", "ledger": "Manual", "reason": "Returned Item", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FED WIRE OUT", "acctn": "The HC Operating Company FREIG", "trans": "Money Transfer DB - Wire"}', '{"sign": "-1", "ledger": "Manual", "reason": "Freight Wires", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FED WIRE OUT", "acctn": "The HC Operating Company OPERA", "trans": "Money Transfer DB - Wire"}', '{"sign": "-1", "ledger": "AP - Wire", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FED WIRE OUT", "acctn": "The HC Operating Company PAYR", "trans": "Money Transfer DB - Wire"}', '{"sign": "-1", "ledger": "Manual", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FUNDS TRANSFER FROM ACCT", "acctn": "The HC Operating Company FREIG", "trans": "ZBA Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "ZBA Funding", "trantype": "Funding"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FUNDS TRANSFER FROM ACCT", "acctn": "The HC Operating Company OPERA", "trans": "ZBA Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "ZBA Funding", "trantype": "Funding"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FUNDS TRANSFER FROM ACCT", "acctn": "The HC Operating Company PAYR", "trans": "ZBA Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "ZBA Funding", "trantype": "Funding"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FUNDS TRANSFER TO ACCT", "acctn": "The HC Operating Company OPERA", "trans": "ZBA Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "ZBA Funding", "trantype": "Funding"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "FUNDS TRANSFER TO ACCT", "acctn": "The HC Operating Company PAYR", "trans": "ZBA Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "ZBA Funding", "trantype": "Funding"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Currency', '{"ini": "DEPOSIT:", "curr1": ["CREDIT", "USD"], "curr2": ["DEBIT", "CAD"]}', '{"party": "The HC Canada Operating Company, Ltd.", "ledger": "Manual", "reason": "IC - Can to US Settlement", "trantype": "Interco Collection"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CORPORATE ACCOUNT ANALYSIS CHARGE", "acctn": "The HC Operating Company OPERA", "trans": "Miscellaneous Fees"}', '{"sign": "-1", "party": "PNC", "ledger": "Manual", "reason": "Bank Fees", "trantype": "Fees"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "PNC MERCHANT FINCL ADJ", "acctn": "The HC Operating Company FBO P", "trans": "Miscellaneous Fees"}', '{"sign": "-1", "party": "PNC", "ledger": "Manual", "reason": "Bank Fees", "trantype": "Fees"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "PNC BANK- NJ LOAN PMTS", "acctn": "The HC Operating Company FBO P", "trans": "Miscellaneous Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "Revolver Payment", "trantype": "Revolver Payment"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "WITHDRAWAL:", "acctn": "The HC Operating Company FBO P", "trans": "Miscellaneous Debits"}', '{"sign": "-1", "ledger": "Manual", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "BOOK TRANSFER CREDIT", "acctn": "The HC Operating Company FBO P", "trans": "Money Transfer CR-Other"}', '{"sign": "1", "ledger": "Manual", "reason": "Returned Item", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "BOOK TRANSFER CREDIT", "acctn": "The HC Operating Company OPERA", "trans": "Money Transfer CR-Other"}', '{"sign": "1", "ledger": "Manual", "reason": "Returned Item", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "BOOK TRANSFER CREDIT GHFTDD DDA CREDIT", "acctn": "The HC Operating Company FBO P", "trans": "Money Transfer CR-Other"}', '{"sign": "1", "ledger": "Manual", "reason": "Returned Item", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "19UDV", "acctn": "The HC Operating Company PAYR", "trans": "ACH Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "Payroll Credits", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH CREDIT RECEIVED", "acctn": "The HC Operating Company FBO P", "trans": "ACH Credits"}', '{"sign": "1", "ledger": "AR - Collections", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH CREDIT RECEIVED", "acctn": "The HC Operating Company PAYR", "trans": "ACH Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "Payroll Credits", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH CREDIT RETURN", "acctn": "The HC Operating Company OPERA", "trans": "ACH Credits"}', '{"sign": "1", "ledger": "Manual", "reason": "AP ACH Returned", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH DEBIT RECEIVED", "acctn": "The HC Operating Company FBO P", "trans": "ACH Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "Auto ACH Out", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH DEBIT RECEIVED", "acctn": "The HC Operating Company OPERA", "trans": "ACH Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "Auto ACH Out", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH DEBIT RECEIVED", "acctn": "The HC Operating Company PAYR", "trans": "ACH Debits"}', '{"sign": "-1", "ledger": "Manual", "reason": "Auto ACH Out", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CASHED CHECK", "acctn": "The HC Operating Company OPERA", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "AP - Check Run", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CASHED CHECK", "acctn": "The HC Operating Company PAYR", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "Manual", "reason": "Payroll Checks", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CHECK", "acctn": "The HC Operating Company FREIG", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "Manual", "reason": "Freight Checks", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CHECK", "acctn": "The HC Operating Company OPERA", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "AP - Check Run", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "CHECK", "acctn": "The HC Operating Company PAYR", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "Manual", "reason": "Payroll Checks", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "SUBSTITUTE CHK", "acctn": "The HC Operating Company FREIG", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "Manual", "reason": "Freight Checks", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "SUBSTITUTE CHK", "acctn": "The HC Operating Company OPERA", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "AP - Check Run", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "RET DEP ITEM NSF UN", "acctn": "The HC Operating Company FBO P", "trans": "Deposited Items Returned"}', '{"sign": "-1", "ledger": "Manual", "reason": "Returned Deposit NSF", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Currency', '{"ini": "WITHDRAWAL:", "curr1": ["DEBIT", "USD"], "curr2": ["CREDIT", "CAD"]}', '{"party": "The HC Canada Operating Company, Ltd.", "ledger": "Manual", "reason": "IC - US to CAN Settlement", "trantype": "Interco Funding"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Currency', '{"ini": "DEPOSIT:", "curr1": ["CREDIT", "USD"], "curr2": ["DEBIT", "USD"]}', '{"party": "The HC Canada Operating Company, Ltd.", "ledger": "Manual", "reason": "IC - round-trip settlement return", "trantype": "Interco Collection"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Currency', '{"ini": "DEPOSIT:", "curr1": ["DEBIT", "USD"], "curr2": ["CREDIT", "CAD"]}', '{"party": "The HC Canada Operating Company, Ltd.", "ledger": "Manual", "reason": "IC - Can to US Settlement", "trantype": "Interco Collection"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "DEPOSIT:", "acctn": "The HC Operating Company OPERA", "trans": "Miscellaneous Credits"}', '{"sign": "1", "ledger": "Manual", "trantype": "Collections"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "SUBSTITUTE CHK", "acctn": "The HC Operating Company PAYR", "trans": "Checks Paid"}', '{"sign": "-1", "ledger": "Manual", "reason": "Payroll Checks", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH DEBIT RETURN", "acctn": "The HC Operating Company OPERA", "trans": "ACH Debits"}', '{"sign": "-1", "ledger": "manual", "trantype": "Disbursement"}'); +INSERT INTO map_rv (srce, target, retval, map) VALUES ('PNCC', 'Trans Type', '{"ini": "ACH CREDIT SETTLEMENT", "acctn": "The HC Operating Company OPERA", "trans": "ACH Credits"}', '{"sign": "1", "ledger": "manual", "trantype": "Disbursement"}'); -- diff --git a/ubm_schema.sql b/ubm_schema.sql index 03f0034..0c1c241 100644 --- a/ubm_schema.sql +++ b/ubm_schema.sql @@ -440,6 +440,13 @@ CREATE INDEX trans_allj ON trans USING gin (allj); CREATE INDEX trans_rec ON trans USING gin (rec); +-- +-- Name: trans_srce; Type: INDEX; Schema: tps; Owner: - +-- + +CREATE INDEX trans_srce ON trans USING btree (srce); + + -- -- Name: map_rm map_rm_fk_srce; Type: FK CONSTRAINT; Schema: tps; Owner: - --