Skip to content

Commit fed34f2

Browse files
author
rdueck
committed
Refactored data retrieval in WC import example, added tables for PurchaseOrder
1 parent 4d0a398 commit fed34f2

File tree

2 files changed

+190
-234
lines changed

2 files changed

+190
-234
lines changed

docs/web_connector/example.sql

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,42 @@ CREATE TABLE IF NOT EXISTS qb_example_item (
154154

155155
-- --------------------------------------------------------
156156

157+
158+
--
159+
-- Table structure for table 'qb_example_purchaseorder'
160+
--
161+
162+
CREATE TABLE IF NOT EXISTS qb_example_purchaseorder (
163+
TxnID varchar(40) NOT NULL,
164+
TimeCreated datetime NOT NULL,
165+
TimeModified datetime NOT NULL,
166+
RefNumber varchar(16) NOT NULL DEFAULT '',
167+
Customer_ListID varchar(40) NOT NULL DEFAULT '',
168+
Customer_FullName varchar(255) NOT NULL DEFAULT '',
169+
PRIMARY KEY (TxnID)
170+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
171+
172+
-- --------------------------------------------------------
173+
174+
175+
--
176+
-- Table structure for table 'qb_example_purchaseorder_lineitem'
177+
--
178+
179+
CREATE TABLE IF NOT EXISTS qb_example_purchaseorder_lineitem (
180+
TxnID varchar(40) NOT NULL,
181+
TxnLineID varchar(40) NOT NULL,
182+
Item_ListID varchar(40) NOT NULL DEFAULT '',
183+
Item_FullName varchar(255) NOT NULL DEFAULT '',
184+
Descrip text NOT NULL,
185+
Quantity int(10) unsigned NOT NULL,
186+
Rate float NOT NULL,
187+
PRIMARY KEY (TxnID,TxnLineID)
188+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
189+
190+
-- --------------------------------------------------------
191+
192+
157193
--
158194
-- Table structure for table 'qb_example_salesorder'
159195
--

0 commit comments

Comments
 (0)