<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blog.4penny.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>VS Tools Forum</title><link>http://blog.4penny.net/blogs/</link><description>Your resource for Visual Studio Tools for Dynamics GP</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Adding .FLV MIME Type in IIS </title><link>http://blog.4penny.net/blogs/stevegray/archive/2008/07/11/adding-flv-mime-type-in-iis.aspx</link><pubDate>Fri, 11 Jul 2008 14:03:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1135</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;.FLV files are already the best method for publishing video on the web, and are sure to become even better with the new enhancements in Flash 8. When serving .flv files off of a Windows Server 2003 (or any other Windows server I would imagine) requires setting up the MIME type on the server first (it isn&amp;#39;t one of the native MIME types on MS servers). &lt;/p&gt;
&lt;p&gt;You can figure out easily if your server is configured to support .flv files by posting a .flv file on a server and navigating to the URL of that .flv in a browser. If you see a LONG string of garbage on the screen, your server isn&amp;#39;t set up for .FLVs and needs to have the MIME type set up.&lt;/p&gt;
&lt;p&gt;Adding .flv MIME type in IIS&lt;/p&gt;
&lt;p&gt;1) Select the site to configure in IIS, right click and select &amp;quot;Properties&amp;quot;&lt;br /&gt;2) Under HTTP Headers Tab, select &amp;quot;File Types&amp;quot; under the MIME Map section and select &amp;quot;New Type&amp;quot;&lt;br /&gt;3) Type &amp;quot;.flv&amp;quot; as the associated extension and &amp;quot;video/x-flv&amp;quot; as the content type.&lt;br /&gt;4) Select &amp;quot;OK&amp;quot; and you&amp;#39;re ready to fly!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1135" width="1" height="1"&gt;</description></item><item><title>Dynamics GP POP workflow</title><link>http://blog.4penny.net/blogs/dynamicsgp/archive/2008/07/10/dynamics-gp-pop-workflow.aspx</link><pubDate>Thu, 10 Jul 2008 13:26:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1130</guid><dc:creator>Steve Gray</dc:creator><slash:comments>3</slash:comments><description>&lt;p&gt;This post describes the POP workflow. It&amp;#39;s an &amp;#39;in process&amp;#39; kind of thing - I&amp;#39;ll add as I come across it. If anyone has anything to add please send it...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;POs are entered via PURCHASING &amp;gt; PURCHASE ORDER ENTRY, into POP10100 and POP10110&lt;/p&gt;
&lt;p&gt;RECEIPTS:&lt;br /&gt;There are two types of receipts, SHIPMENT and SHIPMENT/INVOICE&lt;/p&gt;
&lt;p&gt;Shipments (when posted) create a line in POP10500 and lines in POP30300 and POP30310&lt;/p&gt;
&lt;p&gt;Shipment/Invoices (when posted)...&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1130" width="1" height="1"&gt;</description></item><item><title>SOP10100 (SOP_HDR_WORK) Field Definitions</title><link>http://blog.4penny.net/blogs/dynamicsgp/archive/2008/07/07/sop10100-sop-hdr-work-field-definitions.aspx</link><pubDate>Mon, 07 Jul 2008 17:49:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1123</guid><dc:creator>Steve Gray</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Table: SOP_HDR_WORK&lt;br /&gt;&amp;nbsp;&lt;br /&gt;This file stores all unposted transaction information until it is posted. Records in this file relate to a specific record in the Batch_Headers file.&lt;/p&gt;
&lt;p&gt;This table contains the identifying document information for all sales documents entered using the Sales Transaction Entry window (and also the Quotes, Orders, Invoices, and Returns windows). Transaction line item-related records are stored in the SOP_LINE_WORK table. Each record represents a document that has been entered using the Sales Transaction Entry window or created through the transfer process using the Sales Transfer Documents window.&lt;/p&gt;
&lt;p&gt;SOP and MC&lt;br /&gt;The following describes changes made as a result of SOP MC. The focus of this discussion is on a non-MC SOP transaction. In SBF, multiple currencies are not supported.&lt;/p&gt;
&lt;p&gt;Currency ID-This should be blank for non-MC SOP transactions.&lt;br /&gt;Currency Index-This should be the &amp;#39;Functional Currency Index&amp;#39; of globals for non-MC SOP transactions.&lt;br /&gt;Rate Type ID-This should be blank for non-MC SOP transactions.&lt;br /&gt;Exchange Table ID-This should be blank for non-MC SOP transactions.&lt;br /&gt;Exchange Rate-This should be blank for non-MC SOP transactions.&lt;br /&gt;Exchange Date-This should be blank for non-MC SOP transactions.&lt;br /&gt;Time-This should be blank for non-MC SOP transactions.&lt;br /&gt;Rate Calculation Method-This should be blank for non-MC SOP transactions.&lt;br /&gt;&amp;quot;Originating&amp;quot; values-The originating currency values (typically in the format &amp;quot;Originating &amp;quot;) are the primary currency values used for a SOP transaction. The corresponding functional currency values (typically in the format &amp;quot;&amp;quot;) are calculated from the corresponding originating currency value. For a non-MC SOP transaction, the originating and functional currency values will be the same. Leaving either the originating currency value or the functional currency value blank for a non-MC SOP transaction is not allowed. If the value is not being used, both the originating and functional currency values should be blank.&lt;/p&gt;
&lt;p&gt;Optional:&lt;br /&gt;Tax Date - Required for VAT.&lt;br /&gt;Denomination Exchange Rate - Required for Euro Triangulation.&lt;br /&gt;MC Transaction State - Required for Euro.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Display Name&amp;nbsp;Sales Transaction Work&lt;br /&gt;O/S Name&amp;nbsp;SOP10100&lt;/p&gt;
&lt;p&gt;Field descriptions: (Required fields appear in bold and are underlined)&lt;/p&gt;
&lt;p&gt;SOP Type:&amp;nbsp;Values store in the Data Base for SOP Type are as follows:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1 = Quote&lt;br /&gt;&amp;nbsp;2 = Order&lt;br /&gt;&amp;nbsp;3 = Invoice&lt;br /&gt;&amp;nbsp;4 = Return&lt;br /&gt;&amp;nbsp;5 = Back Order&lt;br /&gt;&amp;nbsp;6 = Fulfillment Order (In SBF, this value is not available.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Below are the Visual Positions of the elements in SOP Type DDL when Advanced Distribution is registered.&amp;nbsp; Use global function SOPTypeToInt() to deference the visual position in the SOP Type DDL to the data base value.&amp;nbsp; Use global function IntToSOPType() to cast the data base value into a SOP Type DDL.&amp;nbsp;&amp;nbsp; In SBF, the Fulfillment Order is not available but is still a good practice to use the functions.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;1 = Quote&lt;br /&gt;&amp;nbsp;2 = Order&lt;br /&gt;&amp;nbsp;3 = Fulfillment Order (In SBF, this value is not available.)&lt;br /&gt;&amp;nbsp;4 = Invoice&lt;br /&gt;&amp;nbsp;5 = Return&lt;br /&gt;&amp;nbsp;6 = Back Order (In SBF, this value is not available.)&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SOP Number:&amp;nbsp;The number of the document. This field, along with the Document Type, makes a SOP document unique. (The document should not exist in SOP history).&lt;/p&gt;
&lt;p&gt;Original Type:&amp;nbsp;Blank if this is the original document.&lt;br /&gt;&amp;nbsp;1 = Quote&lt;br /&gt;&amp;nbsp;2 = Order&lt;br /&gt;&amp;nbsp;3 = Invoice&lt;br /&gt;&amp;nbsp;4 = Return&lt;br /&gt;&amp;nbsp;5 = Back Order (In SBF, this value is not available.)&lt;br /&gt;&amp;nbsp;6 = Fulfillment Order (In SBF, this value is not available.)&lt;/p&gt;
&lt;p&gt;Original Number:&amp;nbsp;If the document was created by a transfer, this is the document number from which the document originated.&amp;nbsp; Blank if this is the original document.&lt;/p&gt;
&lt;p&gt;Document ID:&amp;nbsp;Indicates attributes of a transaction.&amp;nbsp; Also know as type ID.&lt;br /&gt;&amp;nbsp;This ID should exist in the SOP_ID_SETP file. In SBF, this field is set to a value of STANDARD. This field is not exposed in the SBF user interface but can be changed through the constant SBM_SOP_DOCTYPEID.&lt;/p&gt;
&lt;p&gt;Document Date:&amp;nbsp;&amp;nbsp;The date associated with this transaction.&lt;/p&gt;
&lt;p&gt;GL Posting Date:&amp;nbsp;Date that will be assigned as the GL Post Date for all transactions in the batch if Posting Setup is set to post by batch date.&lt;/p&gt;
&lt;p&gt;Quote Date:&amp;nbsp;The date of the Quote document.&amp;nbsp; Required for Quote documents only.&lt;/p&gt;
&lt;p&gt;Quote Expiration Date:&amp;nbsp;The User Date of the quote plus the Days to Expire for that Type ID. In SBF, Days to Expire is always set to a value of 0.&lt;/p&gt;
&lt;p&gt;Order Date:&amp;nbsp;&amp;nbsp;The date the order was placed. This field is for user reference only.&lt;/p&gt;
&lt;p&gt;Invoice Date:&amp;nbsp;The date of the Invoice document.&amp;nbsp; Required for Invoice documents only.&lt;/p&gt;
&lt;p&gt;Back Order Date:&amp;nbsp;The date of the backorder document.&amp;nbsp; Required for Back Order documents only.&lt;/p&gt;
&lt;p&gt;Return Date:&amp;nbsp;The date the Return document type.&amp;nbsp; Required for Return documents only.&lt;/p&gt;
&lt;p&gt;Requested Ship Date:&amp;nbsp;Date the items should be shipped.&amp;nbsp; Defaults with the Document Date on Invoice Entry.&lt;/p&gt;
&lt;p&gt;Fulfillment Date:&amp;nbsp;The date the last of the line items for the document were fulfilled.&lt;/p&gt;
&lt;p&gt;Actual Ship Date:&amp;nbsp;This is the date the last of the line items for the document were shipped.&lt;/p&gt;
&lt;p&gt;Discount Date: &amp;nbsp;&amp;nbsp;The date the discount available expires.&amp;nbsp; Will be 00/00/00 if the Terms Discount Available is &lt;br /&gt;Zero or if the SOP Type is a Quote, Return or Back Order.&lt;/p&gt;
&lt;p&gt;Due Date:&amp;nbsp;&amp;nbsp;This field contains the due date for the transaction that is being entered.&lt;br /&gt;Only used on SOP Types 1-3; otherwise, leave this field blank.&lt;/p&gt;
&lt;p&gt;Repeating:&amp;nbsp;Used on Repeating Quotes or Orders. In SBF, this field is always set to a value of 0. This field is not exposed in the SBF user interface.&lt;br /&gt;&amp;nbsp;0 = Non-repeating document&lt;br /&gt;&amp;nbsp;1 = Repeating&lt;/p&gt;
&lt;p&gt;TRX Frequency:&amp;nbsp;The length of time before the document repeats itself. In SBF, this field is not available.&lt;br /&gt;&amp;nbsp;1 = Weekly&lt;br /&gt;&amp;nbsp;2 = Biweekly&lt;br /&gt;&amp;nbsp;3 = Semimonthly&lt;br /&gt;&amp;nbsp;4 = Monthly&lt;br /&gt;&amp;nbsp;5 = Bimonthly&lt;br /&gt;&amp;nbsp;6 = Quarterly&lt;br /&gt;&amp;nbsp;7 = Miscellaneous&lt;/p&gt;
&lt;p&gt;Times Repeated:&amp;nbsp;Incremented each time the document is transferred. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Times To Repeat:&amp;nbsp;Number of times the document will repeat. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Days to Increment:&amp;nbsp;Only used when the TRX Frequency field is 8, Miscellaneous.&lt;br /&gt;If the TRX frequency is Miscellaneous, this field contains the number of days that the document date should be incremented by each time the document is repeated.&amp;nbsp; This field is only used for a quote or an order. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Date Last Repeated:&amp;nbsp;The last time the repeating document was transferred. Updated with the user date at the time of transfer. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Dest Batch 1:&amp;nbsp;This field contains the Batch ID to be used when the document is transferred.&amp;nbsp; In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Dest Batch 2:&amp;nbsp;This field contains the Batch ID to be used when the document is transferred.&amp;nbsp; In SBF, this field is not available&lt;/p&gt;
&lt;p&gt;Use Document ID1:&amp;nbsp;The Document ID to be used when the document is transferred. In SBF, this field is always set to a value of STANDARD when the SOP TYPE is 2 (Order) or 3 (Invoice). This field is not exposed in the SBF user interface.&lt;/p&gt;
&lt;p&gt;Use Document ID2:&amp;nbsp;The Document ID to be used when the document is transferred. In SBF, this field is always set to a value of STANDARD when the SOP TYPE is 1 (Quote) or 2 (Order). This field is not exposed in the SBF user interface.&lt;/p&gt;
&lt;p&gt;Discount Available &lt;br /&gt;Freight:&amp;nbsp;The discount available calculated on the freight amount. This field is used in some tax calculations.&lt;/p&gt;
&lt;p&gt;Discount Available &lt;br /&gt;Misc:&amp;nbsp;The discount available calculated on the miscellaneous amount.&amp;nbsp; Used in some tax calculations.&lt;/p&gt;
&lt;p&gt;Discount Available&lt;br /&gt;Amount:&amp;nbsp; &amp;nbsp;&amp;nbsp;The amount of the discount available on debit type documents, e.g. Quote, Order, Invoice.&lt;/p&gt;
&lt;p&gt;Discount Returned: &amp;nbsp;The amount of discounts returned for Return documents only.&lt;/p&gt;
&lt;p&gt;Discount Taken &lt;br /&gt;Amount:&amp;nbsp;Amount of discount taken on the document (Not used on Return documents).&lt;/p&gt;
&lt;p&gt;Discount Percent &lt;br /&gt;Amount:&amp;nbsp; &amp;nbsp;Used to determine the Discount Available Amount. This field is multiplied by the Total invoice amount to calculate the Discount Available Amount.&amp;nbsp; (Not used if Payment Terms ID is being used).&lt;/p&gt;
&lt;p&gt;Discount Dollar &lt;br /&gt;Amount: &amp;nbsp;When a value exists in this field, it will override the setting in the SY_Payment_Terms file for calculating Discount Amount Available for this transaction only. If there is a value in the Discount Percent Amount field, this field will be empty.&lt;/p&gt;
&lt;p&gt;Discount Available &lt;br /&gt;Taken: &amp;nbsp;This field contains the total amount of discounts available that have been taken.&lt;/p&gt;
&lt;p&gt;Payment Terms ID: &amp;nbsp;&amp;nbsp;Payment terms ID select for this transaction.&amp;nbsp; The payment terms ID should exist in the &lt;br /&gt;SY_Payment_Terms_MSTR file.&lt;/p&gt;
&lt;p&gt;Price Level:&amp;nbsp;The default price level for a customer.&lt;/p&gt;
&lt;p&gt;Location Code: &amp;nbsp;The site id for the transaction. In SBF, this field is always set to a value of MAIN. This field is not exposed in the SBF user interface but can be changed through the constant SBM_IV_SITEID. &lt;/p&gt;
&lt;p&gt;Batch Source:&amp;nbsp;A string value indicating the batch source for the transactions in the batch.&lt;br /&gt;This field should contain Sales Entry or getmsg (SOP_BATCH_SOURCE)) if a batch is entered.&amp;nbsp; When importing, use &amp;#39;Sales Entry&amp;#39;.&lt;/p&gt;
&lt;p&gt;Batch Number: &amp;nbsp;The name of the batch which is saved on the transaction document. It can be re-used once an existing batch has been posted, provided the batch was not a recurring batch. For real-time transactions, a batch record is created using the User ID as the batch number. In SBF, this field is always set to a value of SALES. This field is not exposed in the SBF user interface but can be changed through the constant SBM_SOP_BATCHID. &lt;/p&gt;
&lt;p&gt;Customer Number: &amp;nbsp;This field contains a unique ID used to identify each customer.&amp;nbsp; It must exist in the RM_Customer_Master file.&lt;/p&gt;
&lt;p&gt;Customer Name: &amp;nbsp;The full name for the Customer (up to 30 characters).&lt;/p&gt;
&lt;p&gt;Customer PO Number: &amp;nbsp;This field can be used to track P.O. numbers and print them on invoices or returns.&lt;/p&gt;
&lt;p&gt;Prospect:&amp;nbsp;0 = Existing Customer&lt;br /&gt;&amp;nbsp;1 = Prospect&lt;br /&gt;&amp;nbsp;In SBF, this field is always set to a value of 0. This field is not exposed in the SBF user interface.&lt;/p&gt;
&lt;p&gt;Master Number:&amp;nbsp;The master number of the document (Zero (0) indicates master numbers are not being tracked).&lt;/p&gt;
&lt;p&gt;Packing Slip Number:&amp;nbsp;The next Packing Slip Number from SOP Setup. If a packing slip is printed from Invoice Entry, this field will contain the packing slip number.&lt;/p&gt;
&lt;p&gt;Picking Ticket Number:&amp;nbsp;The next Picking Ticket Number from SOP Setup. Filled in before the Picking Ticket is printed.&lt;/p&gt;
&lt;p&gt;Markdown Amount: &amp;nbsp;Total of the Markdown Amount fields in the corresponding SOP_LINE_WORK records.&lt;/p&gt;
&lt;p&gt;Primary Billto Address &lt;br /&gt;Code: &amp;nbsp;The address code of the Billto address.&lt;/p&gt;
&lt;p&gt;Primary Shipto&lt;br /&gt;Address Code: &amp;nbsp;The address code of the Shipto address.&lt;/p&gt;
&lt;p&gt;Contact Person: &amp;nbsp;Name of Contact at Customer site.&lt;/p&gt;
&lt;p&gt;ShipToName:&amp;nbsp;Name of the Customer to ship to.&amp;nbsp; Frequently used for drop ship items.&lt;/p&gt;
&lt;p&gt;Address 1: &amp;nbsp;Line 1 of the address for the Shipto Address.&lt;/p&gt;
&lt;p&gt;Address 2: &amp;nbsp;Line 2 of the address for the Shipto Address.&lt;/p&gt;
&lt;p&gt;Address 3: &amp;nbsp;Line 3 of the address for the Shipto Address.&lt;/p&gt;
&lt;p&gt;City: &amp;nbsp;City for the Shipto Address.&lt;/p&gt;
&lt;p&gt;State: &amp;nbsp;State for the Shipto Address.&lt;/p&gt;
&lt;p&gt;Zip Code: &amp;nbsp;Zip Code for the Shipto Address. &lt;/p&gt;
&lt;p&gt;Country Code:&amp;nbsp;Country Code for the customers address.&lt;/p&gt;
&lt;p&gt;Country: &amp;nbsp;Country for the Shipto Address. &lt;/p&gt;
&lt;p&gt;Phone Number 1: &amp;nbsp;Phone number 1 from the Shipto address.&lt;/p&gt;
&lt;p&gt;Phone Number 2: &amp;nbsp;Phone number 1 from the Shipto address.&lt;/p&gt;
&lt;p&gt;Phone 3:&amp;nbsp;Phone number 3 from the Shipto address.&lt;/p&gt;
&lt;p&gt;Fax Number: &amp;nbsp;The fax number for the Shipto address.&lt;/p&gt;
&lt;p&gt;Commission Applied &lt;br /&gt;To:&amp;nbsp;This field contains information about how to calculate sales amounts for commission’ calculations.&lt;br /&gt;&amp;nbsp;0 = Sales&lt;br /&gt;&amp;nbsp;1 = Invoice Total&lt;/p&gt;
&lt;p&gt;Commission Amount:&amp;nbsp;Total of all corresponding SOP_Commission_WORK_HIST records for this transaction.&lt;/p&gt;
&lt;p&gt;Commission Sale &lt;br /&gt;Amount:&amp;nbsp;Amount of the sale used to calculate commissions.&lt;/p&gt;
&lt;p&gt;Non-Commissioned &lt;br /&gt;Amount:&amp;nbsp;&amp;nbsp;The dollar amount not used for calculating commissions.&lt;/p&gt;
&lt;p&gt;Shipping Method: &amp;nbsp;Shipping method used by this Customer.&amp;nbsp; It is set up in the Shipping Method Maintenance window (in SBF, the Shipping Methods Setup window), i.e. it must exist in the SY_Shipping_Method_MSTR file.&lt;/p&gt;
&lt;p&gt;Trade Discount &lt;br /&gt;Amount:&amp;nbsp;&amp;nbsp;This field contains the dollar discount that will be applied to the invoice.&lt;/p&gt;
&lt;p&gt;Trade Discount &lt;br /&gt;Percent:&amp;nbsp;The value in this field is multiplied by the Subtotal of the document.&lt;br /&gt;The result is placed in the field Trade Discount Amount.&lt;/p&gt;
&lt;p&gt;Subtotal: &amp;nbsp;&amp;nbsp;The running total of the line items&amp;#39; extended price.&lt;/p&gt;
&lt;p&gt;Remaining Subtotal:&amp;nbsp;The sum of Remaining Price fields in the related SOP_LINE_WORK records.&lt;/p&gt;
&lt;p&gt;Extended Cost:&amp;nbsp;The total of all the extended costs of the line items.&amp;nbsp; Updated when posting.&lt;/p&gt;
&lt;p&gt;Freight Amount:&amp;nbsp;The amount in this field is the amount of freight listed on the invoice.&lt;/p&gt;
&lt;p&gt;Misc Amount: &amp;nbsp;This amount is used to determine the Misc Tax Amount.&lt;/p&gt;
&lt;p&gt;Tax Engine Called:&amp;nbsp;Set to 1 for true. This field indicates whether the tax engine has been run.&lt;/p&gt;
&lt;p&gt;Tax Exempt 1:&amp;nbsp;For customer reference only. May store a tax-exempt field. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Tax Exempt 2:&amp;nbsp;For customer reference only. May store a tax-exempt field. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Tax Registration&lt;br /&gt;Number:&amp;nbsp;This field is where the user can type the customer or vendor&amp;#39;s tax registration number. It will eventually appear as the default value in the customer or vendor address card. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Tax Schedule ID:&amp;nbsp;&amp;nbsp;The ID for the Tax Schedule. The tax schedule should exist in the TX_Schedule_MSTR file.&lt;/p&gt;
&lt;p&gt;Tax Schedule Source:&amp;nbsp;Where the tax schedule defaults from (Internal use only).&lt;/p&gt;
&lt;p&gt;Based On Invoice &lt;br /&gt;Total:&amp;nbsp;This field contains information regarding whether the line item contains taxes that are based on the invoice total.&lt;br /&gt;&amp;nbsp;0 – False.&amp;nbsp; The line items do not contain taxes based on the invoice total.&lt;br /&gt;&amp;nbsp;1 – True.&amp;nbsp; The line items do contain taxes based on the invoice total.&lt;/p&gt;
&lt;p&gt;Freight Schedule ID: &amp;nbsp;The Tax Schedule ID used to determine which tax details are applicable for the freight amount field. There must be a record in the TX_Schedule_MSTR file with this ID. &lt;/p&gt;
&lt;p&gt;Freight Tax Amount: &amp;nbsp;The tax amount calculated based on the &amp;#39;Freight Amount&amp;#39; field. This field is needed for backing out tax included with item price.&lt;/p&gt;
&lt;p&gt;Freight Taxable:&amp;nbsp;The values in this drop down list are used to determine if taxes should be calculated on the Freight Amount.&lt;br /&gt;&amp;nbsp;1 = Taxable&lt;br /&gt;&amp;nbsp;2 = Nontaxable&lt;br /&gt;&amp;nbsp;3 = Base on customers&lt;/p&gt;
&lt;p&gt;Misc Schedule ID: &amp;nbsp;The Tax Schedule ID used to determine which tax details are applicable for the Misc Amount field.&amp;nbsp; There must be a record in the TX_Schedule_MSTR_HDR file with this ID.&lt;/p&gt;
&lt;p&gt;Misc Tax Amount: &amp;nbsp;The tax amount calculated based on the &amp;#39;Misc Amount&amp;#39; field. This field is needed for backing out tax included with item price.&lt;/p&gt;
&lt;p&gt;Misc Taxable:&amp;nbsp;The values in this drop down list are used to determine if taxes should be calculated on the Misc Amount.&lt;br /&gt;&amp;nbsp;1 = Taxable&lt;br /&gt;&amp;nbsp;2 = Nontaxable&lt;br /&gt;&amp;nbsp;3 = Base on customers&lt;/p&gt;
&lt;p&gt;Backout Freight &lt;br /&gt;Amount: &amp;nbsp;If there is a Tax included with item price detail, this is the true Freight amount.&lt;/p&gt;
&lt;p&gt;Backout Misc &lt;br /&gt;Amount: &amp;nbsp;If there is a Tax included with item price detail, this is the true Misc amount.&lt;/p&gt;
&lt;p&gt;Backout Tax Amount: &amp;nbsp;If there was Tax included with item price detail, this is the total tax amount.&lt;/p&gt;
&lt;p&gt;Taxable Tax Amount:&amp;nbsp;The total of all tax amount fields in the SOP_Tax_WORK_HIST table which are marked as Taxable Tax.&lt;/p&gt;
&lt;p&gt;Tax Amount:&amp;nbsp;The amount in this field is the amount of tax listed on the invoice. This field will not show any tax amounts calculated for Tax Included With Item Price tax details.&lt;/p&gt;
&lt;p&gt;EC Transaction:&amp;nbsp;Used for VAT Line Analysis. Only available if Enable VAT Line Analysis is marked in Company Setup. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Document Amount: &amp;nbsp;The total amount of the transaction.&lt;/p&gt;
&lt;p&gt;Payment Received: &amp;nbsp;The amount received as payment on an Invoice transaction.&lt;/p&gt;
&lt;p&gt;Deposit Received:&amp;nbsp;The amount of payment received on an Order transaction.&lt;/p&gt;
&lt;p&gt;COD Amount: &amp;nbsp;This field is for user reference only. If all or part of the invoice will be paid upon delivery, this amount can be stored in this field.&lt;/p&gt;
&lt;p&gt;Account Amount: &amp;nbsp;For debit documents, this field should be the document amount minus payments received minus discounts taken. For credit documents, the amount on this field should be the document amount minus the amount applied minus payments.&lt;/p&gt;
&lt;p&gt;Sales Territory:&amp;nbsp;This field contains the ID for sales territories a customer is in. In SBF, this field is always set to a value of DEFAULT. This field is not exposed in the SBF user interface, because sales territories are not supported in SBF.&lt;/p&gt;
&lt;p&gt;Salesperson ID: &amp;nbsp;&amp;nbsp;This field contains the ID for the salespersons for the customer.&lt;/p&gt;
&lt;p&gt;UPS Zone:&amp;nbsp;UPS zone for the document.&lt;/p&gt;
&lt;p&gt;Times Printed:&amp;nbsp;The number of times the document has been printed (not updated for Packing Slip or Picking Ticket).&lt;/p&gt;
&lt;p&gt;Posting Status:&amp;nbsp;Leave blank or set to 0 for unposted documents. &lt;/p&gt;
&lt;p&gt;Void Status:&amp;nbsp;This field stores a flag that marks if the document has been voided.&lt;br /&gt;&amp;nbsp;0 = Document has not been voided.&lt;br /&gt;&amp;nbsp;1 = Document has been voided.&lt;/p&gt;
&lt;p&gt;Allocate By:&amp;nbsp;This field indicates how the items should be allocated. In SBF, this field is always set to a value of 1. This field is not exposed in the SBF user interface.&lt;br /&gt;&amp;nbsp;0 = Document/Batch&lt;br /&gt;&amp;nbsp;1 = Line Item&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Note Index:&amp;nbsp;&amp;nbsp;The Index of the note for this document, linked to the Record Notes Master.&amp;nbsp; &lt;br /&gt;Not recommended to import into this field.&lt;/p&gt;
&lt;p&gt;Currency ID:&amp;nbsp;If MC is registered and this a MC transaction then the MC currency. In SBF, this field is not available. Multiple currencies are not supported in SBF. &lt;br /&gt;If non-MC transaction, set to Functional Currency ID. &lt;br /&gt;If MC is not registered, then leave empty.&lt;/p&gt;
&lt;p&gt;Currency Index:&amp;nbsp;The index corresponding to the currency id assigned to this transaction. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;br /&gt;Leave empty if MC is not registered.&amp;nbsp; &lt;br /&gt;Set to Functional Currency Index if MC is registered and this is a non-mc transaction.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Rate Type ID:&amp;nbsp;A unique string describing a rate type identifier. Only used on a MC transaction. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;/p&gt;
&lt;p&gt;Exchange Table ID:&amp;nbsp;A unique string describing an exchange table identifier.&amp;nbsp; Only used on a MC transaction. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;/p&gt;
&lt;p&gt;Exchange Rate:&amp;nbsp;Exchange Rate of the transaction.&amp;nbsp; If not a multi-currency transaction, leave blank.&amp;nbsp; If there is triangulation and both rates are fixed, this is the originating to euro fixed rate.&amp;nbsp; Otherwise this is the variable rate. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;/p&gt;
&lt;p&gt;Denomination Exchange&lt;br /&gt;Rate:&amp;nbsp;Fixed Denomination Exchange Rate. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;br /&gt;The exchange rate between the Euro currency and a denomination currency.&amp;nbsp; It has a value in the asterisked branches of the following scenarios:&lt;br /&gt;(1) Non-Denomination -&amp;gt; *Euro -&amp;gt; *Denomination&lt;br /&gt;(2) *Denomination -&amp;gt; *Euro -&amp;gt; Non-denomination&lt;br /&gt;(3) Denomination -&amp;gt; *Euro -&amp;gt; *Denomination&lt;/p&gt;
&lt;p&gt;The denomination exchange rate from the transaction record. If there is triangulation, this is the fixed rate.&amp;nbsp; If both rates are fixed, this is the euro to functional fixed rate.&amp;nbsp; If there is no triangulation, this is 0.0&lt;/p&gt;
&lt;p&gt;Exchange Date:&amp;nbsp;The date used to create an exchange rate. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;br /&gt;The Date from the Exchange Table if the &amp;#39;Use Rates Without Adding to Table&amp;#39; is not marked.&amp;nbsp; Otherwise, the Exchange Date for this MC Trx only..&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Time:&amp;nbsp;The Time from the Exchange Table if the &amp;#39;Use Rates Without Adding to Table&amp;#39; is not marked.&amp;nbsp; Otherwise, the Time for this MC transaction only. In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;/p&gt;
&lt;p&gt;Rate Calculation Method:&amp;nbsp;Indicates whether the exchange table will use multiply or divide rates.&amp;nbsp; (this value cannot be changed once rates are added, the rates will either be multiply or divide). In SBF, this field is not available. Multiple currencies are not supported in SBF.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 = Multiply&lt;br /&gt;1 = Divide&lt;/p&gt;
&lt;p&gt;MC Transaction State:&amp;nbsp;This field holds the value of what state the system was in when the transaction was posted.&amp;nbsp; There are nine different scenarios.&lt;br /&gt;1.&amp;nbsp;Non-denomination -&amp;gt; Non-denomination - EX: A functional currency of USA.&amp;nbsp; Entering a CAN transaction.&amp;nbsp; A Euro Currency ID is setup in the system.&lt;br /&gt;2.&amp;nbsp;Non-denomination -&amp;gt; Euro - EX: A functional currency of Euro.&amp;nbsp; Entering a USA transaction.&lt;br /&gt;3.&amp;nbsp;Non-denomination -&amp;gt; Euro -&amp;gt; Denomination - EX: A functional currency of French Francs (FF).&amp;nbsp; Entering a USA transaction.&lt;br /&gt;4.&amp;nbsp;Denomination -&amp;gt; Euro -&amp;gt; Non-denomination - EX: A functional currency of USA.&amp;nbsp; Entering a FF transaction.&lt;br /&gt;5.&amp;nbsp;Denomination -&amp;gt; Euro -&amp;gt; Denomination - EX: A functional currency of Deutche Marks (DM).&amp;nbsp; Entering a FF transaction.&lt;br /&gt;6.&amp;nbsp;Denomination -&amp;gt; Euro - EX: A functional currency of Euro.&amp;nbsp; Entering a FF transaction.&lt;br /&gt;7.&amp;nbsp;Euro -&amp;gt; Denomination - EX: A functional currency of FF.&amp;nbsp; Entering a Euro transaction.&lt;br /&gt;8.&amp;nbsp;Euro -&amp;gt; Non-denomination - EX: A functional currency of USA.&amp;nbsp; Entering a Euro transaction.&lt;br /&gt;9.&amp;nbsp;No Euro Currency ID - EX: A functional currency of USA.&amp;nbsp; Entering a CAN transaction.&amp;nbsp; There is no Euro Currency ID or all Denomination Currency ID&amp;#39;s are disabled.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;Acceptable Values and Constants:&lt;br /&gt;0 = MC_NOEURO&lt;br /&gt;1 = MC_NONDENOM_TO_NONDENOM&lt;br /&gt;2 = MC_NONDENOM_TO_EURO&lt;br /&gt;3 = MC_NONDENOM_TO_DENOM&lt;br /&gt;4 = MC_DENOM_TO_NONDENOM&lt;br /&gt;5 = MC_DENOM_TO_DENOM&lt;br /&gt;6 = MC_DENOM_TO_EURO&lt;br /&gt;7 = MC_EURO_TO_DENOM&lt;br /&gt;8 = MC_EURO_TO_NONDENOM&lt;br /&gt;&amp;nbsp;&amp;nbsp;OR&lt;br /&gt;&amp;nbsp;0 = Euro currency is not created or no denomination currencies are enabled.&lt;br /&gt;&amp;nbsp;1 = Originating is not a denomination; Functional is not a denomination&lt;br /&gt;&amp;nbsp;2 = Originating is not a denomination; Functional is the Euro currency.&lt;br /&gt;&amp;nbsp;3 = Originating is not a denomination; Functional is a denomination.&lt;br /&gt;&amp;nbsp;4 = Originating is a denomination; Functional is not a denomination.&lt;br /&gt;&amp;nbsp;5 = Originating is a denomination; Functional is a denomination.&lt;br /&gt;&amp;nbsp;6 = Originating is a denomination; Functional is the Euro currency.&lt;br /&gt;&amp;nbsp;7 = Originating is the Euro currency; Functional is a denomination.&lt;br /&gt;&amp;nbsp;8 = Originating is the Euro currency; Functional is not a denomination.&lt;/p&gt;
&lt;p&gt;TRX Source: &amp;nbsp;This stores an internally assigned audit trail code that gets saved on the record at the time the transaction is posted.&lt;/p&gt;
&lt;p&gt;SOP HDR &lt;br /&gt;Errors 1:&amp;nbsp;Multiselect list box used to track header level posting errors with the following possible errors:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1 **ERROR: No customer record exists for this customer ID.&lt;br /&gt;&amp;nbsp;2 **ERROR: This customer is inactive.&lt;br /&gt;&amp;nbsp;3 **ERROR: No record exists for this salesperson.&lt;br /&gt;&amp;nbsp;4 **ERROR: No tax schedule or detail exists for this ID.&lt;br /&gt;&amp;nbsp;5 **ERROR: The date is missing or invalid.&lt;br /&gt;&amp;nbsp;6 **ERROR: The payment number is missing or invalid.&lt;br /&gt;&amp;nbsp;7 **ERROR: The document total is incorrect.&lt;br /&gt;&amp;nbsp;8 **ERROR: This document has already been posted.&lt;br /&gt;&amp;nbsp;9 **ERROR: No customer summary record exists for this customer ID.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;10 **ERROR: Duplicate document numbers are not allowed.&lt;br /&gt;&amp;nbsp;11 **ERROR: No record exists for this checkbook ID.&lt;br /&gt;&amp;nbsp;12 **ERROR: The document type is invalid.&lt;br /&gt;&amp;nbsp;13 **ERROR: The on-account amount is incorrect.&lt;br /&gt;&amp;nbsp;14 **ERROR: A discount cannot be taken without an amount received.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;15 **ERROR: The commission total does not equal the commission amounts.&lt;br /&gt;&amp;nbsp;16 **ERROR: The General Ledger posting date is missing or invalid.&lt;br /&gt;&amp;nbsp;17 **ERROR: General Ledger cannot be updated. Revert to backup if possible.&lt;br /&gt;&amp;nbsp;18 **ERROR: The cash distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;19 **ERROR: The discount taken distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;20 **ERROR: The receivables distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;21 **ERROR: The disc. available distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;22 **ERROR: The other distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;23 **ERROR: The sales distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;24 **ERROR: The trade discount distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;25 **ERROR: The freight distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;26 **ERROR: The miscellaneous distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;27 **ERROR: The taxes distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;28 **ERROR: The COGS distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;29 **ERROR: The inventory distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;30 **ERROR: The returns distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;31 **ERROR: The sales tax distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;32 **ERROR: The freight tax distribution(s) does not equal the actual amount.&lt;/p&gt;
&lt;p&gt;SOP HDR Errors 2:&amp;nbsp;Multiselect list box used to track header level posting errors with the following possible errors:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1 **ERROR: The miscellaneous distribution(s) does not equal the actual amount.&lt;br /&gt;&amp;nbsp;2 **ERROR: The debit distributions do not equal the credit distributions.&lt;br /&gt;&amp;nbsp;3 **ERROR: Distributions are missing or invalid.&lt;br /&gt;&amp;nbsp;4 **ERROR: No account has been specified for one or more distributions.&lt;br /&gt;&amp;nbsp;5 **ERROR: The distribution type is missing or invalid.&lt;br /&gt;&amp;nbsp;6 **ERROR: One or more line items contain errors.&lt;br /&gt;&amp;nbsp;7 **ERROR: You cannot post any more until Sales Order Processing is registered.&lt;br /&gt;&amp;nbsp;8 **ERROR: The payment date is missing or invalid.&lt;br /&gt;&amp;nbsp;9 **ERROR: Cannot enter a discount taken without one or more payments.&lt;br /&gt;&amp;nbsp;10 **ERROR: Severe error adjusting commissions. Revert to backup if possible.&lt;br /&gt;&amp;nbsp;11 **ERROR: Transaction has been voided.&lt;br /&gt;&amp;nbsp;12 **ERROR: Severe error adjusting taxes. Revert to backup if possible.&lt;br /&gt;&amp;nbsp;13 **ERROR: Unable to obtain Receivables document number.&lt;br /&gt;&amp;nbsp;14 **ERROR: Tax distributions do not match the tax amount.&lt;br /&gt;&amp;nbsp;15 **ERROR: This document contains one or more posting holds.&lt;br /&gt;&amp;nbsp;16 **ERROR: Customer is on hold.&lt;br /&gt;&amp;nbsp;17 **ERROR: The markdown distribution(s) do not equal the actual amount.&lt;br /&gt;&amp;nbsp;18 **ERROR: The date is not in the current fiscal year.&lt;br /&gt;&amp;nbsp;19 **ERROR: The fiscal period is closed.&lt;br /&gt;&amp;nbsp;20 **ERROR: The Period Setup information is missing or incomplete.&lt;br /&gt;&amp;nbsp;21 **ERROR: Batch level errors were encountered.&lt;br /&gt;&amp;nbsp;22 **ERROR: A distribution contains both a debit and a credit amount.&lt;br /&gt;&amp;nbsp;23 **ERROR: The payment distributions do not equal the amount received.&lt;br /&gt;&amp;nbsp;24 **ERROR: The non-commission total does not equal the non-commission amounts.&lt;br /&gt;&amp;nbsp;25 **ERROR: No record exists for this sales territory.&lt;br /&gt;&amp;nbsp;26 **ERROR: The commission sale total does not equal the commission sale amounts.&lt;br /&gt;&amp;nbsp;27 **ERROR: The payment number is not reserved in Receivables Management.&lt;br /&gt;&amp;nbsp;28 **ERROR: Severe error adjusting Inventory. Revert to backup if possible.&lt;br /&gt;&amp;nbsp;29 **ERROR: Terms discount taken can&amp;#39;t be greater than the document total.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;30 **Terms dicount taken is greater than terms discount available.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;31 Transaction Analysis information for this transaction is incorrect or missing.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;32 This transaction contains multicurrency error(s).&lt;/p&gt;
&lt;p&gt;SOP LINE Errors:&amp;nbsp;Multi-select list box used to track line item level posting errors with the following possible errors:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1 **ERROR: Item&amp;#39;s master record does not exist.&lt;br /&gt;&amp;nbsp;2 **ERROR: Item&amp;#39;s site record does not exist.&lt;br /&gt;&amp;nbsp;3 **ERROR: Serial numbers and item&amp;#39;s extended quantity do not balance.&lt;br /&gt;&amp;nbsp;4 **ERROR: Lot quantities and item&amp;#39;s extended quantity do not balance.&lt;br /&gt;&amp;nbsp;5 **ERROR: Serial number already exists for this item in the Serial Number file.&lt;br /&gt;&amp;nbsp;6 **ERROR: Serial number missing for the item and site in the Serial Number file.&lt;br /&gt;&amp;nbsp;7 **ERROR: Lot number missing for this item and site in the Lot Number file.&lt;br /&gt;&amp;nbsp;8 **ERROR: Line accounts are missing or invalid.&lt;br /&gt;&amp;nbsp;9 **ERROR: Returned quantities not distributed properly.&lt;br /&gt;&amp;nbsp;10 **ERROR: Lot number already exists for the item in the Lot Number file.&lt;br /&gt;&amp;nbsp;11 **ERROR: Intrastate information is missing or invalid.&lt;br /&gt;&amp;nbsp;12 **ERROR: Line quantity is zero.&lt;br /&gt;&amp;nbsp;13 **ERROR: Severe error adjusting Inventory. Revert to backup if possible.&lt;br /&gt;&amp;nbsp;14 **ERROR: Line quantity not completely distributed.&lt;br /&gt;&amp;nbsp;15 **ERROR: A portion of the line quantity is set to back order.&lt;br /&gt;&amp;nbsp;16 **ERROR: Line quantity is not properly allocated.&lt;br /&gt;&amp;nbsp;17 **ERROR: Line quantity is not properly fulfilled.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;18 **ERROR: Serial number quantity type is invalid.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;19 **ERROR: Lot number quantity type is invalid.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;20 **ERROR: A qty isn’t available to sell for this lot.&lt;br /&gt;&amp;nbsp;21 **ERROR: Item changed to use ave. cost. Doc. date is from before cost change.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;SOP HDR Flags:&amp;nbsp;This field is used to indicate if the freight amount and misc amount for a document have been transferred.&lt;br /&gt;&amp;nbsp;1 = Freight Transferred&lt;br /&gt;&amp;nbsp;2 = Misc Transferred&lt;br /&gt;&amp;nbsp;3 = Trade Discount Transferred&lt;/p&gt;
&lt;p&gt;SOP MC Posting Error &lt;br /&gt;Messages:&amp;nbsp;1 The currency ID is missing.&lt;br /&gt;&amp;nbsp;2 This company does not have access to this currency ID.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3 The currency ID is inactive for this company.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;4 The rate type ID is missing.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;5 The rate type ID is not associated with the currency ID for this transaction.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;6 The exchange table ID is missing.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;7 The company does not have access to this exchange table ID.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;8 The exchange table ID is inactive for this company.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;9 The exchange rate does not exist.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;10 The exchange rate has expired.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;11 Cannot post Multicurrency transactions to a recurring batch.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;12 The Multicurrency setup information is missing or damaged.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;13 The functional currency is missing.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;14 This company does not have access to the selected functional currency. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;15 The functional currency for this company is inactive.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;16 Originating debits not equal to originating credits.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;17 Originating transaction record missing or damaged.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;18 Error occurred while creating Multicurrency record.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;19 **ERROR: The fixed exchange rate for the Euro Currency ID could not be found.&lt;/p&gt;
&lt;p&gt;Comment ID: &amp;nbsp;The ID of the comment. &lt;/p&gt;
&lt;p&gt;Reference:&amp;nbsp;This field is used in General Ledger to enter transaction comments in all General Ledger transaction entry windows.&lt;/p&gt;
&lt;p&gt;Posted Date: &amp;nbsp;Used for recurring batches, it records the last date this transaction was posted.&lt;/p&gt;
&lt;p&gt;Posted User ID:&amp;nbsp;Used for recurring batches, it records the last user to post this transaction.&lt;/p&gt;
&lt;p&gt;User To Enter:&amp;nbsp;The user ID of the user who entered the record storing this value.&lt;/p&gt;
&lt;p&gt;Created Date:&amp;nbsp;This field contains the system date of the first save of a document.&lt;/p&gt;
&lt;p&gt;Modified Date:&amp;nbsp;Updated with system date each time document is saved.&lt;/p&gt;
&lt;p&gt;Tax Date:&amp;nbsp;Date used on VAT reports different from the document date that is used for tax reporting purposes.&amp;nbsp; This can only be entered if VAT Line Analysis is turned on.&lt;/p&gt;
&lt;p&gt;Apply Withholding:&amp;nbsp;This field contains information indicating whether this document is subject to withholding.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 - True = Document is subject to withholding.&lt;br /&gt;1 - False = Document is not subject to withholding.&lt;/p&gt;
&lt;p&gt;Withholding Amount:&amp;nbsp;This field contains the withholding amount.&lt;/p&gt;
&lt;p&gt;Shipping Document:&amp;nbsp;Flag to indicate that this transaction is a shipping document. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Correction:&amp;nbsp;This field indicates whether a transaction corrects another transaction. In SBF, this field is not available.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 - True = transaction corrects another transaction.&lt;br /&gt;1 - False = transaction does not correct another transaction.&lt;/p&gt;
&lt;p&gt;Simplified:&amp;nbsp;&amp;nbsp;Flag to indicate that this transaction is a Simplified transaction. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Correction to Nonexisting &lt;br /&gt;Transaction:&amp;nbsp;Flag to indicate that this transaction is a correction to a transaction that doesn’t exist (Beginning balance). In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Document Number&lt;br /&gt;Corrected:&amp;nbsp;The Document Number being corrected. In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Sequence Number Corrected: The Sequence Number being corrected (it is possible that a document can be corrected by&amp;nbsp;&amp;nbsp; &lt;br /&gt;more than 1 document). In SBF, this field is not available.&lt;/p&gt;
&lt;p&gt;Sale Date:&amp;nbsp;This date field tracks the physical date of transfer of goods/services.&lt;/p&gt;
&lt;p&gt;SOP HDR Errors 3:&amp;nbsp;Additional Posting Error Messages.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1 You cannot post to a tax date within a closed tax period.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;2 You cannot post to a tax period that has not been set up.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3 ** ERROR: The Total cannot be negative.&lt;/p&gt;
&lt;p&gt;Exceptional Demand:&amp;nbsp;Flag indicating demand that is more that what is typical for and item-site.&lt;/p&gt;
&lt;p&gt;Flags&amp;nbsp;The Flags field is used to determine if the address attributes on the header have been modified.&amp;nbsp; It will also be used to determine if the header’s comment text has been modified or to track whether the picking ticket or packing slip have been printed.&amp;nbsp; The first four positions of the integer will be used.&amp;nbsp; The first position is to flag the Address Attribute as modified.&amp;nbsp; The second position will be used to flag the comment text as modified.&amp;nbsp; The third position will be used to indicate the packing slip has been printed.&amp;nbsp; The fourth position will be used to indicate the picking ticket has been printed.&lt;br /&gt;&amp;nbsp;1 = SOPFLAGS_ADDREDITED&lt;br /&gt;&amp;nbsp;2 = SOPFLAGS_COMMENTEDITED&lt;br /&gt;&amp;nbsp;3 = SOPFLAGS_PACKINGSLIPPRINTED&lt;br /&gt;&amp;nbsp;4 = SOPFLAGS_PICKINGTICKETPRINTED&lt;/p&gt;
&lt;p&gt;Backout Trade Discount&lt;br /&gt;Amount&amp;nbsp;Trade Discount Amount less associated ‘Tax Included in Item Price’ tax.&lt;/p&gt;
&lt;p&gt;GPSFO Integration ID&amp;nbsp;Great Plains Front Office only.&amp;nbsp; Holds the primary key of front office records that are integrated to this record.&lt;/p&gt;
&lt;p&gt;Integration Source&amp;nbsp;Source of integration.&amp;nbsp; If empty, no product is integrated.&amp;nbsp; If this field has a value, product is already integrated to this record, therefore no other product should overwrite.&amp;nbsp; Unique values are assigned by Microsoft Great Plains for integrating products to use to indicate they are integrated to this record.&lt;/p&gt;
&lt;p&gt;Integration ID&amp;nbsp;Empty if Integration Source is empty.&amp;nbsp; Otherwise contains primary key of external system that is integrated with this record.&amp;nbsp; This is for 3rd party integrations into Professional.&lt;/p&gt;
&lt;p&gt;SOP Status:&amp;nbsp;&amp;nbsp;Status of the document.&amp;nbsp; Status, Document Type and constant pairs are below.&lt;br /&gt;&amp;nbsp;SOP Status &amp;nbsp;&amp;nbsp;&amp;nbsp;SOP Type&amp;nbsp;&amp;nbsp;Constant&lt;br /&gt;&amp;nbsp;1 - New&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Order&amp;nbsp;&amp;nbsp;&amp;nbsp;SOP_STATUS_NEW&lt;br /&gt;&amp;nbsp;2 - Ready to Print Pick Ticket&amp;nbsp;&amp;nbsp;Fulfillment Order&amp;nbsp;&amp;nbsp;SOP_STATUS_READYTOPICK&lt;br /&gt;&amp;nbsp;3 - Unconfirmed Pick&amp;nbsp;&amp;nbsp;Fulfillment Order&amp;nbsp;&amp;nbsp;SOP_STATUS_UNCONFIRMEDPICK&lt;br /&gt;&amp;nbsp;4 - Ready to Print Pack Slip&amp;nbsp;&amp;nbsp;Fulfillment Order&amp;nbsp;&amp;nbsp;SOP_STATUS_READYTOPACK&lt;br /&gt;&amp;nbsp;5 - Unconfirmed Pack&amp;nbsp;&amp;nbsp;Fulfillment Order&amp;nbsp;&amp;nbsp;SOP_STATUS_UNCONFIRMEDPACK&lt;br /&gt;&amp;nbsp;6 - Shipped&amp;nbsp;&amp;nbsp;&amp;nbsp;Fulfillment Order&amp;nbsp;&amp;nbsp;SOP_STATUS_SHIPPED&lt;br /&gt;&amp;nbsp;7 - Ready to Post&amp;nbsp;&amp;nbsp;&amp;nbsp;Invoice&amp;nbsp;&amp;nbsp;&amp;nbsp;SOP_STATUS_READYTOPOST&lt;br /&gt;&amp;nbsp;8 - In Process&amp;nbsp;&amp;nbsp;&amp;nbsp;Order&amp;nbsp;&amp;nbsp;&amp;nbsp;SOP_STATUS_INPROCESS&lt;br /&gt;&amp;nbsp;9 - Complete&amp;nbsp;&amp;nbsp;&amp;nbsp;Order&amp;nbsp;&amp;nbsp;&amp;nbsp;SOP_STATUS_COMPLETE&lt;/p&gt;
&lt;p&gt;Ship Complete Document:&amp;nbsp;Flag used to determine whether customer is unwilling to accept multiple shipments.&lt;/p&gt;
&lt;p&gt;Direct Debit:&amp;nbsp;Document is available for Direct Debit processing.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The following fields must be imported regardless of if Multi-Currency is registered.&amp;nbsp; If the transaction is not a multi-currency transaction, then fill the field with the same value of the corresponding non-mc field.&amp;nbsp; Example:&amp;nbsp; If Discount Available Freight=$3.00, then set Originating Discount Available Freight to the same amount.&amp;nbsp; If Discount Available Freight = $0.&amp;nbsp; Then leave the Originating Discount Available Freight blank also.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Orig Discount Available Freight:&amp;nbsp;The originating discount available freight amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Discount Available Misc:&amp;nbsp;The originating discount available miscellaneous amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Discount Available Amount:&amp;nbsp;The originating discounts available amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Discount Returned:&amp;nbsp;&amp;nbsp;&amp;nbsp;The originating amount of discounts returned. This is only for &amp;quot;Return&amp;quot; type &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;documents.&lt;/p&gt;
&lt;p&gt;Orig Discount Taken Amount:&amp;nbsp;&amp;nbsp;The originating discount taken amount from the transaction record.&lt;/p&gt;
&lt;p&gt;Orig Discount Dollar Amount:&amp;nbsp;&amp;nbsp;The originating discount amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Discount Available Taken:&amp;nbsp;The originating discounts available taken amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Markdown Amount:&amp;nbsp;The originating markdown amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Commission Amount:&amp;nbsp;The originating commission amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Commission Sales Amount:&amp;nbsp;The originating commission sales amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Non-Commissioned Amount:&amp;nbsp;Non-commissioned amount in the originating currency.&lt;/p&gt;
&lt;p&gt;Orig Trade Discount Amount:&amp;nbsp;&amp;nbsp;The originating trade discount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Subtotal:&amp;nbsp;&amp;nbsp;The originating subtotal amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Remaining Subtotal:&amp;nbsp;The originating remaining subtotal amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Extended Cost:&amp;nbsp;The originating extended cost of the transaction.&lt;/p&gt;
&lt;p&gt;Orig Freight Amount:&amp;nbsp;The originating amount of Freight charges from the transaction record.&lt;/p&gt;
&lt;p&gt;Orig Misc Amount:&amp;nbsp;&amp;nbsp;The originating amount of Misc charges from the transaction record.&lt;/p&gt;
&lt;p&gt;Orig Freight Tax Amount:&amp;nbsp;Same description as Freight Tax Amount but in the Originating Currency.&amp;nbsp; Set to Freight Tax Amount for non-MC transaction.&lt;/p&gt;
&lt;p&gt;Orig Misc Tax Amount:&amp;nbsp;Same description as Misc Tax Amount but in the Originating Currency.&amp;nbsp; Set to Misc Tax Amount for non-MC transaction.&lt;/p&gt;
&lt;p&gt;Orig Backout Freight Amount:&amp;nbsp;The originating amount of Freight less any amount of tax calculated for a Tax Included with Item Price tax detail.&lt;/p&gt;
&lt;p&gt;Orig Backout Misc Amount:&amp;nbsp;The originating amount of Misc less any amount of tax calculated for a Tax Included with Item Price tax detail.&lt;/p&gt;
&lt;p&gt;Orig Backout Tax Amount:&amp;nbsp;The originating backout tax amount of the transaction&lt;/p&gt;
&lt;p&gt;Orig Taxable Tax Amount:&amp;nbsp;The originating taxable tax amount of the transaction.&lt;/p&gt;
&lt;p&gt;Orig Tax Amount:&amp;nbsp;&amp;nbsp;Tax amount assigned to this detail in the original currency.&amp;nbsp; Set to Tax Amount if non-MC transaction.&lt;/p&gt;
&lt;p&gt;Orig Document Amount:&amp;nbsp;The originating document amount from the transaction. &lt;/p&gt;
&lt;p&gt;Orig Payment Received:&amp;nbsp;The originating payment received amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Deposit Received:&amp;nbsp;The originating deposit received amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig COD Amount:&amp;nbsp;The originating COD amount of the transaction.&lt;/p&gt;
&lt;p&gt;Orig Account Amount:&amp;nbsp;The originating account amount from the transaction.&lt;/p&gt;
&lt;p&gt;Orig Backout Trade Discount Amount:&amp;nbsp;The originating trade discount amount less associated ‘Tax Included in Item Price’ tax.&lt;br /&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1123" width="1" height="1"&gt;</description></item><item><title>Disabling buttons on click in ASP.NET </title><link>http://blog.4penny.net/blogs/aspnet/archive/2008/07/02/disabling-buttons-on-click-in-asp-net.aspx</link><pubDate>Wed, 02 Jul 2008 16:36:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1121</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Just to give props, I found this here: &lt;a href="http://geekswithblogs.net/jwhitehorn/archive/2006/06/17/82214.aspx"&gt;http://geekswithblogs.net/jwhitehorn/archive/2006/06/17/82214.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but I don&amp;#39;t like to leave valuable info on the internet, it might get deleted. Plus, I have to spend the 30 minutes hunting it down again &amp;lt;smiles&amp;gt;&lt;/p&gt;
&lt;p&gt;We have all seen the websites that disable &amp;quot;submit&amp;quot; buttons when you click on them. This is often done to prevent users from clicking the button multiple times.&lt;br /&gt;Normally this is accomplished using an &amp;#39;onclick&amp;#39; JavaScript event to disable the button. In ASP.NET, each server side item already has a onclick event handler which calls the server back for event processing.&lt;br /&gt;To accomplish the same thing in ASP.NET, you could easily do:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; Button1.Attributes.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"onclick"&lt;/span&gt;, &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"this.disabled=true;"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; ClientScript.GetPostBackEventReference(Button1, &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;""&lt;/span&gt;).ToString()) &lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1121" width="1" height="1"&gt;</description></item><item><title>Cursor Template</title><link>http://blog.4penny.net/blogs/sqlserver/archive/2008/07/01/cursor-template.aspx</link><pubDate>Tue, 01 Jul 2008 13:22:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1115</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This is the cursor template that I use... it works better than the default one, and allows BREAK and CONTINUE easily&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; curName &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;CURSOR&lt;/span&gt; KEYSET &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;FOR&lt;/span&gt; 
 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;select&lt;/span&gt; *
  &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;from&lt;/span&gt; mytablename
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; variables
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;OPEN&lt;/span&gt; curName
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;WHILE&lt;/span&gt; 1=1 
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;BEGIN&lt;/span&gt;
 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;FETCH&lt;/span&gt; NEXT &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;FROM&lt;/span&gt; curSopUpdate23 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;INTO&lt;/span&gt; @sopnumbe,@soptype,@dtOnTruck, @dtOnJob
 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;@@fetch_status&lt;/span&gt; &amp;lt;&amp;gt; 0 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;begin&lt;/span&gt;
  &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;break&lt;/span&gt;
 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; 


&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;END&lt;/span&gt;
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;CLOSE&lt;/span&gt; curName
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;DEALLOCATE&lt;/span&gt; curName&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1115" width="1" height="1"&gt;</description></item><item><title>Subsonic VB Setup</title><link>http://blog.4penny.net/blogs/vbnet/archive/2008/06/24/subsonic-vb-setup.aspx</link><pubDate>Tue, 24 Jun 2008 12:17:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1096</guid><dc:creator>Crystal</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Web.config&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;configSections&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;section name=&amp;quot;SubSonicService&amp;quot; type=&amp;quot;SubSonic.SubSonicSection, SubSonic&amp;quot; requirePermission=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;lt;/configSections&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;SubSonicService defaultProvider=&amp;quot;OnlineNotes&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clear/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;OnlineNotes&amp;quot; type=&amp;quot;SubSonic.SqlDataProvider, SubSonic&amp;quot; connectionStringName=&amp;quot;OnlineNotes&amp;quot; generatedNamespace=&amp;quot;OnlineNotes&amp;quot; &amp;nbsp;&amp;nbsp;includeTableList=&amp;quot;^_&amp;quot; includeProcedureList=&amp;quot;^FP&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;br /&gt;&amp;lt;/SubSonicService&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;VisualStudio &amp;gt; Tools &amp;gt; External Tools &amp;gt; Add &lt;br /&gt;&amp;nbsp;Name is Subsonic DAL and browse for the exe file&lt;br /&gt;&amp;nbsp;&amp;nbsp;C:\Program Files\SubSonic\SubSonic 2.0.3\SubCommander\sonic.exe&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;Arguments: generate/out App_Code\Generated/lang vb&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Initial Directory: Project Directory&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;x Use Output Window&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x Prompt for arguments&lt;br /&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1096" width="1" height="1"&gt;</description></item><item><title>'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'</title><link>http://blog.4penny.net/blogs/crystal_reports/archive/2008/06/23/crystalreportviewer-is-ambiguous-in-the-namespace-crystaldecisions-web.aspx</link><pubDate>Mon, 23 Jun 2008 16:14:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1093</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Also:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;13&amp;nbsp;&amp;#39;ReportDocument&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.CrystalReports.Engine&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;11&amp;nbsp;18&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;15&amp;nbsp;&amp;#39;DiskFileDestinationOptions&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.Shared&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;47&amp;nbsp;26&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;16&amp;nbsp;&amp;#39;ExportDestinationType&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.Shared&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;50&amp;nbsp;57&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;17&amp;nbsp;&amp;#39;ExportFormatType&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.Shared&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;51&amp;nbsp;52&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I solved this by going to Project Propertities &amp;gt; References, somehow I had references to two different versions of crystal in my project. While doing this I noticed that the references kept coming back. I searched the project and found that I had double lines iin the web config to different versions of Crystal. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1093" width="1" height="1"&gt;</description></item><item><title>Grant permissions cursor</title><link>http://blog.4penny.net/blogs/sqlserver/archive/2008/06/13/grant-permissions-cursor.aspx</link><pubDate>Fri, 13 Jun 2008 12:43:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1064</guid><dc:creator>Crystal</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;DECLARE @name varchar(255),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @sql varchar(255)&lt;/p&gt;
&lt;p&gt;DECLARE curName CURSOR KEYSET FOR &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sys.objects&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where type = &amp;#39;p&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;OPEN curName&lt;/p&gt;
&lt;p&gt;WHILE 1=1 &lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FETCH NEXT FROM curName INTO @name&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if @@fetch_status &amp;lt;&amp;gt; 0 begin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @sql = &amp;#39;grant exec on &amp;#39; + @name + &amp;#39; to chemsys&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec (@sql)&lt;br /&gt;END&lt;/p&gt;
&lt;p&gt;CLOSE curName&lt;br /&gt;DEALLOCATE curName&lt;br /&gt;GO&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1064" width="1" height="1"&gt;</description></item><item><title>RUN my Windows Service without installing and starting it</title><link>http://blog.4penny.net/blogs/vbnet/archive/2008/06/10/run-my-windows-service-without-installing-and-starting-it.aspx</link><pubDate>Tue, 10 Jun 2008 13:23:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1059</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I am often asked the question &amp;quot;Can&amp;#39;t I just RUN my Windows Service without installing and starting it?&amp;quot;.&lt;/p&gt;
&lt;p&gt;My answer usually is &amp;quot;No, you can&amp;#39;t but...&amp;quot;&lt;/p&gt;
&lt;p&gt;There is a &amp;quot;but&amp;quot;: you can create your Windows service as a hybrid application, so it will run as a console application also.&lt;/p&gt;
&lt;p&gt;Why would you want to do that?&lt;br /&gt;•&amp;nbsp;It makes debugging from within Visual Studio a breeze &lt;br /&gt;•&amp;nbsp;Sometimes you want to show some debugging information in a production environment by using Console.WriteLine() &lt;br /&gt;•&amp;nbsp;You don&amp;#39;t always want to install your service to see if it runs in a particular environment&lt;br /&gt;Turning a .NET Windows service into a hybrid application is actually very simple. In your Main() method you add the following:&lt;br /&gt;static class Program&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; static void Main(params string[] parameters)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (parameters.Length &amp;gt; 0 &amp;amp;&amp;amp; parameters[0].ToLower() == &amp;quot;/console&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MyService().RunConsole(parameters);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceBase.Run(new ServiceBase[] { new MyService() });&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;Then, in your service class, add a RunConsole() method:&lt;br /&gt;&amp;nbsp;&amp;nbsp; public void RunConsole(string[] args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OnStart(args);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&amp;quot;Service running... Press any key to stop&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Read();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OnStop();&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;That&amp;#39;s all there is to it. To run your service as a console app, just specify &amp;quot;/console&amp;quot; as the first paramter when running the .EXE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1059" width="1" height="1"&gt;</description></item><item><title>Build a Table from Code</title><link>http://blog.4penny.net/blogs/aspnet/archive/2008/05/23/build-a-table-from-code.aspx</link><pubDate>Fri, 23 May 2008 18:07:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1033</guid><dc:creator>corey</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Set the table on the aspx page to have a runat=&amp;quot;server&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;table&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;id&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="tblReport"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;runat&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="server"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;tr&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;width&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="100"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="ReportSubtitle"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
            Unit
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;width&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="100"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="ReportSubtitle"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
            Date
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;width&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="100"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="ReportSubtitle"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
                       
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;width&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="100"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="ReportSubtitle"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
            Cash Deposit
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;width&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="100"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="ReportSubtitle"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
            Proof to Bank
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;width&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="100"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;="ReportSubtitle"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
            Initials
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;td&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;tr&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;table&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the code behind, add something like:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Sub&lt;/span&gt; bindData()
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; ds &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; DataSet &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; CulinartDB.SPs.FpPOSDailySummaryReport(Session(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"startdate"&lt;/span&gt;), Session(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"enddate"&lt;/span&gt;)).GetDataSet()


        &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'get a list of the units in the dataset&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; units &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; (From dr &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;In&lt;/span&gt; ds.Tables(0).Rows _
                    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Select&lt;/span&gt; locndscr &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"locndscr"&lt;/span&gt;), locncode &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"locncode"&lt;/span&gt;), total &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"TotalCashDeposit"&lt;/span&gt;)).Distinct()


        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;For&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Each&lt;/span&gt; u &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;In&lt;/span&gt; units
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; locn &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; u.locncode


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'build the header&lt;/span&gt;
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; rowHeader &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableRow()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cell &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
            cell.ColSpan &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 6
            cell.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_title"&lt;/span&gt;
            cell.InnerHtml &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; u.locndscr
            rowHeader.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cell)
            tblReport.Rows.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(rowHeader)


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'add the lines&lt;/span&gt;
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; lines &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; From dr &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;In&lt;/span&gt; ds.Tables(0) _
                        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Select&lt;/span&gt; docdate &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"docdate"&lt;/span&gt;), cashDeposit &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"CashDeposit"&lt;/span&gt;), totalCashDeposit &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"TotalCashDeposit"&lt;/span&gt;), locncode &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; dr(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"locncode"&lt;/span&gt;) _
                        Where locncode &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; locn


            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;For&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Each&lt;/span&gt; l &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;In&lt;/span&gt; lines
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; row &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableRow()
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cName &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cDt &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cTotalDesc &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cCashDeposit &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cProof &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cInit &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()


                &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'set the properties on the cells&lt;/span&gt;
                cName.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell"&lt;/span&gt;
                cDt.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell"&lt;/span&gt;
                cTotalDesc.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell"&lt;/span&gt;
                cCashDeposit.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell"&lt;/span&gt;
                cProof.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_blank"&lt;/span&gt;
                cInit.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_blank"&lt;/span&gt;


                &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'set the cell text&lt;/span&gt;
                cDt.InnerText &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Date&lt;/span&gt;.Parse(l.docdate).ToShortDateString()
                cTotalDesc.InnerText &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Daily Total"&lt;/span&gt;
                cCashDeposit.InnerText &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;CType&lt;/span&gt;(l.cashDeposit, &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Double&lt;/span&gt;).ToString(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"C"&lt;/span&gt;)
                cProof.InnerHtml &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"&amp;amp;nbsp;"&lt;/span&gt;
                cInit.InnerHtml &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"&amp;amp;nbsp;"&lt;/span&gt;


                &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'add the cells to the row&lt;/span&gt;
                row.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cName)
                row.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cDt)
                row.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cTotalDesc)
                row.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cCashDeposit)
                row.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cProof)
                row.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cInit)


                &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'add the row to the table&lt;/span&gt;
                tblReport.Rows.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(row)



            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Next&lt;/span&gt;


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'build the footer&lt;/span&gt;
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; rowFooter &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableRow()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cNameF &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cDtF &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cTotalDescF &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cCashDepositF &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cProofF &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()
            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; cInitF &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; HtmlTableCell()


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'set the properties&lt;/span&gt;
            cNameF.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell"&lt;/span&gt;
            cDtF.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell"&lt;/span&gt;
            cTotalDescF.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_title"&lt;/span&gt;
            cCashDepositF.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_title"&lt;/span&gt;
            cProofF.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_blank"&lt;/span&gt;
            cInitF.ID &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"report_cell_blank"&lt;/span&gt;


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'set the text&lt;/span&gt;
            cTotalDescF.InnerText &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Unit Total"&lt;/span&gt;
            cCashDepositF.InnerText &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;CType&lt;/span&gt;(u.total, &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Double&lt;/span&gt;).ToString(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"C"&lt;/span&gt;)


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'add the cells to the row&lt;/span&gt;
            rowFooter.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cNameF)
            rowFooter.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cDtF)
            rowFooter.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cTotalDescF)
            rowFooter.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cCashDepositF)
            rowFooter.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cProofF)
            rowFooter.Cells.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(cInitF)


            &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'add the row&lt;/span&gt;
            tblReport.Rows.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(rowFooter)


        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Next&lt;/span&gt;



    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1033" width="1" height="1"&gt;</description></item><item><title>Disabling a Button when Clicked</title><link>http://blog.4penny.net/blogs/aspnet/archive/2008/05/21/disabling-a-button-when-clicked.aspx</link><pubDate>Wed, 21 May 2008 16:52:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1024</guid><dc:creator>corey</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;To disable a button when it is clicked, add the following to the load event:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;btnSave.Attributes.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Add&lt;/span&gt;(&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"onclick"&lt;/span&gt;, &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"this.disabled=true;"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; ClientScript.GetPostBackEventReference(btnSave, &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;""&lt;/span&gt;).ToString())&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will cause the button to disable via javascript before the postback happens.&amp;nbsp; This prevents things like credit card transactions from going through more than once.&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1024" width="1" height="1"&gt;</description></item><item><title>Used Javascript to check a radio box</title><link>http://blog.4penny.net/blogs/javascript/archive/2008/05/21/used-javascript-to-check-a-radio-box.aspx</link><pubDate>Wed, 21 May 2008 14:30:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1023</guid><dc:creator>Crystal</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;In a recent project I needed to check a radio button based on whether or not a text field was populated. &lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;script language=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"javascript"&lt;/span&gt; type=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"text/javascript"&lt;/span&gt;&amp;gt;
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; (document.frmCreateAccount.EMail.value==&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;""&lt;/span&gt;)
      {
        document.frmCreateAccount.OKToEMailYes.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;checked&lt;/span&gt;=true;
      }
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;else&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; (document.frmCreateAccount.EMail.value!&lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt;&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;""&lt;/span&gt;)
      {
      }
&amp;lt;/script&amp;gt; &lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1023" width="1" height="1"&gt;</description></item><item><title>Returning the current time in SQL Server</title><link>http://blog.4penny.net/blogs/sqlserver/archive/2008/05/15/returning-the-current-time-in-sql-server.aspx</link><pubDate>Thu, 15 May 2008 12:10:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1013</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;From a recent email:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to use SmartList Builder to build a query where a calculation is required showing the number of days an A/R transaction is past due.&amp;nbsp; Obviously, I have the DOCDATE from RM20101 but I need a column that tells me the current date so I can make this comparison…and I am not sure if there is a SQL Server table that I can pull in that shows this information to me.&amp;nbsp; I am pretty certain that there is not a GP table with current date in it just sitting there by default.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Answer:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Select&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;getdate&lt;/span&gt;(), &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;convert&lt;/span&gt;(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(10),&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;getdate&lt;/span&gt;(),101)&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Getdate() returns a date/time, the second part will strip the time&lt;br /&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1013" width="1" height="1"&gt;</description></item><item><title>How to write to the application event log using VB.NET</title><link>http://blog.4penny.net/blogs/vbnet/archive/2008/05/08/how-to-write-to-the-application-event-log-using-vb-net.aspx</link><pubDate>Thu, 08 May 2008 19:04:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:998</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Here a sample of code that will write to the application event log, using VB..NET:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Function&lt;/span&gt; WriteToEventLog(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; Entry &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;String&lt;/span&gt;)


    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; appName &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;String&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Server Maintenance"&lt;/span&gt;
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; eventType &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; EventLogEntryType &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; EventLogEntryType.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Error&lt;/span&gt;
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; logName &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Application"&lt;/span&gt;


    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; objEventLog &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; EventLog()


    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Try&lt;/span&gt;
        &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'Register the App as an Event Source&lt;/span&gt;
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;If&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Not&lt;/span&gt; EventLog.SourceExists(appName) &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Then&lt;/span&gt;
            EventLog.CreateEventSource(appName, logName)
        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;backg