<?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%2Frstk_lines</id>
	<title>VbzCart/tables/rstk lines - 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%2Frstk_lines"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/tables/rstk_lines&amp;action=history"/>
	<updated>2026-06-25T16:52:37Z</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/rstk_lines&amp;diff=10602&amp;oldid=prev</id>
		<title>Woozle: extracted from VbzCart/tables</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/tables/rstk_lines&amp;diff=10602&amp;oldid=prev"/>
		<updated>2008-11-07T17:45:30Z</updated>

		<summary type="html">&lt;p&gt;extracted 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;
[[category:VbzCart/tables]]This is the older version which includes data about items received and customer-order distribution. To be replaced by [[../rstk_lines_new]].&lt;br /&gt;
==SQL==&lt;br /&gt;
&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE TABLE `rstk_lines` (&lt;br /&gt;
   `ID`          INT NOT NULL AUTO_INCREMENT,&lt;br /&gt;
   `ID_Restock`  INT COMMENT &amp;quot;core_restocks.ID of restock this item belongs to&amp;quot;,&lt;br /&gt;
   `ID_Item`     INT COMMENT &amp;quot;cat_items.ID of item being restocked&amp;quot;,&lt;br /&gt;
   `ID_Order`    INT COMMENT &amp;quot;core_orders.ID of order which generated this line&amp;quot;,&lt;br /&gt;
   `Descr`       VARCHAR(255) DEFAULT NULL COMMENT &amp;quot;Item description as given at time of shopping&amp;quot;,&lt;br /&gt;
/* timestamps */&lt;br /&gt;
   `WhenCreated` DATETIME DEFAULT NULL &amp;quot;when this line was added&amp;quot;,&lt;br /&gt;
   `WhenVoided`  DATETIME DEFAULT NULL &amp;quot;when this line was voided; not NULL = ignore this line&amp;quot;,&lt;br /&gt;
/* quantities - data from creation of restock */&lt;br /&gt;
   `QtyNeed`     INT COMMENT &amp;quot;quantity needed, either for an order or to keep stock at desired level&amp;quot;,&lt;br /&gt;
   `QtyOrd`      INT COMMENT &amp;quot;quantity actually ordered&amp;quot;,&lt;br /&gt;
   `QtyExp`      INT COMMENT &amp;quot;quantity actually expected, if supplier doesn&amp;#039;t have enough available to fill the order&amp;quot;,&lt;br /&gt;
   `isGone`      BOOL COMMENT &amp;quot;YES = item discontinued, no more available&amp;quot;, /* data from invoice */&lt;br /&gt;
   `InvcLineNo`  DECIMAL(3,3) COMMENT &amp;quot;line number (use decimals for multiple restock lines as single invoice line)&amp;quot;,&lt;br /&gt;
   `InvcQtyOrd`  INT COMMENT &amp;quot;quantity ordered&amp;quot;,&lt;br /&gt;
   `InvcQtySent` INT COMMENT &amp;quot;quantity shipped to us&amp;quot;,&lt;br /&gt;
/* quantities - data from receiving the items */&lt;br /&gt;
   `QtyRecd`     INT COMMENT &amp;quot;quantity actually received&amp;quot;,&lt;br /&gt;
   `QtyFiled`    INT COMMENT &amp;quot;quantity moved into stock&amp;quot;,&lt;br /&gt;
/* cost information */&lt;br /&gt;
   `CostExpPer`  DECIMAL(9,2) COMMENT &amp;quot;expected per-item cost&amp;quot;,&lt;br /&gt;
   `CostInvPer`  DECIMAL(9,2) COMMENT &amp;quot;invoiced per-item cost&amp;quot;,&lt;br /&gt;
   `CostInvTot`  DECIMAL(9,2) COMMENT &amp;quot;invoice line total (CostExpPer x InvcQtySent) for this item&amp;quot;,&lt;br /&gt;
   `CostActTot`  DECIMAL(9,2) COMMENT &amp;quot;actual (best) line total as used for reconciling&amp;quot;,&lt;br /&gt;
   `CostActBal`  DECIMAL(9,2) COMMENT &amp;quot;running total, calculated from CostActTot; may be unnecessary anywhere except Access&amp;quot;,&lt;br /&gt;
   `Notes`       VARCHAR(255) COMMENT &amp;quot;human-entered notes on this line item&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;
* if &amp;#039;&amp;#039;&amp;#039;isGone&amp;#039;&amp;#039;&amp;#039; is TRUE, then ideally:&lt;br /&gt;
** don&amp;#039;t carry items forward into next restock&lt;br /&gt;
** mark item as discontinued in catalog&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>