<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Ftables%2Fcore_restocks</id>
	<title>VbzCart/tables/core restocks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Ftables%2Fcore_restocks"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/tables/core_restocks&amp;action=history"/>
	<updated>2026-07-08T09:01:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/tables/core_restocks&amp;diff=10609&amp;oldid=prev</id>
		<title>Woozle: /* About */ corrected name of linked table</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/tables/core_restocks&amp;diff=10609&amp;oldid=prev"/>
		<updated>2008-11-07T18:02:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;About: &lt;/span&gt; corrected name of linked table&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:02, 7 November 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==About==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==About==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To be replaced by [[../&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;core_restocks_new&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To be replaced by [[../&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;core_restock_new&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==SQL==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==SQL==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE TABLE `core_restocks` (&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE TABLE `core_restocks` (&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/tables/core_restocks&amp;diff=10606&amp;oldid=prev</id>
		<title>Woozle: split off from VbzCart/tables</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/tables/core_restocks&amp;diff=10606&amp;oldid=prev"/>
		<updated>2008-11-07T17:55:38Z</updated>

		<summary type="html">&lt;p&gt;split off from VbzCart/tables&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==About==&lt;br /&gt;
To be replaced by [[../core_restocks_new]]&lt;br /&gt;
==SQL==&lt;br /&gt;
&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE TABLE `core_restocks` (&lt;br /&gt;
   `ID`             INT NOT NULL AUTO_INCREMENT,&lt;br /&gt;
   `ID_Supplier`    INT NOT NULL COMMENT &amp;quot;cat_supp.ID of supplier&amp;quot;,&lt;br /&gt;
   `ID_Warehouse`   INT COMMENT &amp;quot;cat_supp.ID of receiving warehouse&amp;quot;,&lt;br /&gt;
   `PurchOrdNum`    VARCHAR(63) COMMENT &amp;quot;our purchase order number&amp;quot;,&lt;br /&gt;
   `SuppOrdNum`     VARCHAR(63) COMMENT &amp;quot;supplier&amp;#039;s order number&amp;quot;,&lt;br /&gt;
   `SuppInvcNum`    VARCHAR(63) COMMENT &amp;quot;supplier&amp;#039;s invoice number&amp;quot;,&lt;br /&gt;
   `CarrierDescr`   VARCHAR(63) COMMENT &amp;quot;shipping carrier (UPS, USPS...)&amp;quot;,&lt;br /&gt;
/* eventually there will be a table of carriers so we can retrieve tracking info or at least pull it up from the web */&lt;br /&gt;
   `TrackingCode`   VARCHAR(63) COMMENT &amp;quot;carrier&amp;#039;s tracking number&amp;quot;,&lt;br /&gt;
   `TotalCalcMerch` DECIMAL(9,2) COMMENT &amp;quot;total cost of merchandise calculated by us&amp;quot;,&lt;br /&gt;
   `TotalEstFinal`  DECIMAL(9,2) COMMENT &amp;quot;estimate of final charge&amp;quot;,&lt;br /&gt;
   /* amounts from supplier invoice */&lt;br /&gt;
   `TotalInvMerch`  DECIMAL(9,2) COMMENT &amp;quot;total cost of merchandise invoiced&amp;quot;,&lt;br /&gt;
   `TotalInvShip`   DECIMAL(9,2) COMMENT &amp;quot;total shipping cost invoiced&amp;quot;,&lt;br /&gt;
   `TotalInvAdj`    DECIMAL(9,2) COMMENT &amp;quot;total invoice adjustments&amp;quot;,&lt;br /&gt;
/* Final = Merch + Ship + Adj */&lt;br /&gt;
   `TotalInvFinal`  DECIMAL(9,2) COMMENT &amp;quot;final total on invoice (must match amt paid)&amp;quot;,&lt;br /&gt;
   `PayMethod`      VARCHAR(63) COMMENT &amp;quot;how payment was made (typically: which credit card?)&amp;quot;,&lt;br /&gt;
   `WhenCreated`    DATETIME DEFAULT NULL COMMENT &amp;quot;when restock order was started (created)&amp;quot;,&lt;br /&gt;
   `WhenOrdered`    DATETIME DEFAULT NULL COMMENT &amp;quot;when order was placed with supplier&amp;quot;,&lt;br /&gt;
   `WhenConfirmed`  DATETIME DEFAULT NULL COMMENT &amp;quot;when order was confirmed with supplier&amp;quot;,&lt;br /&gt;
   `WhenKilled`     DATETIME DEFAULT NULL COMMENT &amp;quot;when order was negated, cancelled, or otherwise terminated unsuccessfully&amp;quot;,&lt;br /&gt;
   `WhenShipped`    DATETIME DEFAULT NULL COMMENT &amp;quot;when supplier shipped the package&amp;quot;,&lt;br /&gt;
   `WhenReceived`   DATETIME DEFAULT NULL COMMENT &amp;quot;when package was received from supplier&amp;quot;,&lt;br /&gt;
   `WhenDebited`    DATETIME DEFAULT NULL COMMENT &amp;quot;when charge for order was debited&amp;quot;,&lt;br /&gt;
   `WhenExpectedOrig` DATETIME DEFAULT NULL COMMENT &amp;quot;when we originally expected to receive order&amp;quot;,&lt;br /&gt;
   `WhenExpectedFinal` DATETIME DEFAULT NULL COMMENT &amp;quot;most recent ETA&amp;quot;,&lt;br /&gt;
   `isLocked`       BOOL DEFAULT FALSE COMMENT &amp;quot;TRUE = items may not be edited&amp;quot;,&lt;br /&gt;
   `isInvcComplete` BOOL DEFAULT FALSE COMMENT &amp;quot;NO = part of invoice is missing (lost, not filed, etc.); YES = we have complete invoice&amp;quot;,&lt;br /&gt;
   `isInvcPartial`  BOOL DEFAULT FALSE COMMENT &amp;quot;NO = invoice is all together; YES = part of invoice is missing&amp;quot;,&lt;br /&gt;
   `isInvcAbsent`   BOOL DEFAULT FALSE COMMENT &amp;quot;YES = no invoice paperwork from supplier (invoice is known to exist from bank records or earlier data entry)&amp;quot;,&lt;br /&gt;
   `Notes`          TEXT DEFAULT NULL COMMENT &amp;quot;human-entered notes&amp;quot;,&lt;br /&gt;
   PRIMARY KEY(`ID`)&lt;br /&gt;
 )&lt;br /&gt;
 ENGINE = MYISAM;&amp;lt;/mysql&amp;gt;&lt;br /&gt;
&amp;lt;section end=sql /&amp;gt;&lt;br /&gt;
==Notes==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TotalEstFinal&amp;#039;&amp;#039;&amp;#039; has been largely unnecessary, but it may become useful again for budget planning (especially during heavy buying seasons)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;isInvc*&amp;#039;&amp;#039;&amp;#039; fields are meaningless if restock package has not yet been received; one or both of WhenReceived and WhenDebited should be non-NULL in this case, but there may be some situations where we don&amp;#039;t know either of those -- so there should probably be an isRecd flag (add this later).&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>