<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to add (Remaining Stock, Sale Price USD, Promotion Price, Image)]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9993</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9993&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to add (Remaining Stock, Sale Price USD, Promotion Price, Image).]]></description>
		<lastBuildDate>Sat, 01 Oct 2022 03:34:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[How to add (Remaining Stock, Sale Price USD, Promotion Price, Image)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41526#p41526</link>
			<description><![CDATA[<div class="codebox"><pre><code>$page_security = &quot;SA_ITEM&quot;;
$path_to_root = &quot;../..&quot;;
include_once($path_to_root . &quot;/includes/session.inc&quot;);
include_once($path_to_root . &quot;/includes/ui.inc&quot;);
include_once($path_to_root . &quot;/inventory/includes/db/items_db.inc&quot;);

$mode = get_company_pref(&#039;no_item_list&#039;);
if ($mode != 0)
    $js = get_js_set_combo_item();
else
    $js = get_js_select_combo_item();

page(_($help_context = &quot;Items&quot;), true, false, &quot;&quot;, $js);

if(get_post(&quot;search&quot;)) {
  $Ajax-&gt;activate(&quot;item_tbl&quot;);
}

start_form(false, false, $_SERVER[&#039;PHP_SELF&#039;] . &quot;?&quot; . $_SERVER[&#039;QUERY_STRING&#039;]);

start_table(TABLESTYLE_NOBORDER);

start_row();

text_cells(_(&quot;Description&quot;), &quot;description&quot;);
submit_cells(&quot;search&quot;, _(&quot;Search&quot;), &quot;&quot;, _(&quot;Search items&quot;), &quot;default&quot;);

end_row();

end_table();

end_form();

div_start(&quot;item_tbl&quot;);
start_table(TABLESTYLE);

$th = array(&quot;&quot;, _(&quot;No&quot;), _(&quot;Item Code&quot;), _(&quot;Description&quot;), _(&quot;Category&quot;), _(&quot;Remaining Stock&quot;), _(&quot;Sale Price USD&quot;), _(&quot;Promotion Price&quot;), _(&quot;Image&quot;));
table_header($th);

$k = 0;
$name = $_GET[&quot;client_id&quot;];
$result = get_items_search(get_post(&quot;description&quot;), @$_GET[&#039;type&#039;]);

while ($myrow = db_fetch_assoc($result))
{
    alt_table_row_color($k);
    $value = $myrow[&#039;item_code&#039;];
    if ($mode != 0) {
        $text = $myrow[&#039;description&#039;];
          ahref_cell(_(&quot;Select&quot;), &#039;javascript:void(0)&#039;, &#039;&#039;, &#039;setComboItem(window.opener.document, &quot;&#039;.$name.&#039;&quot;,  &quot;&#039;.$value.&#039;&quot;, &quot;&#039;.$text.&#039;&quot;)&#039;);
    }
    else {
          ahref_cell(_(&quot;Select&quot;), &#039;javascript:void(0)&#039;, &#039;&#039;, &#039;selectComboItem(window.opener.document, &quot;&#039;.$name.&#039;&quot;, &quot;&#039;.$value.&#039;&quot;)&#039;);
    }
    label_cell($showid);
      label_cell($myrow[&quot;item_code&quot;]);
    label_cell($myrow[&quot;description&quot;]);
      label_cell($myrow[&quot;category&quot;]);
    label_cell($myrow[&#039;???&#039;]);
    label_cell($myrow[&#039;???&#039;]);
    label_cell($myrow[&#039;???&#039;]);
        label_cell($myrow[&#039;???&#039;]);
    end_row();
}

end_table(1);

div_end();
end_page(true);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Sovann)]]></author>
			<pubDate>Sat, 01 Oct 2022 03:34:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41526#p41526</guid>
		</item>
	</channel>
</rss>
