<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — ASK Codeflow workorder]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5317&amp;type=atom" />
	<updated>2014-11-19T04:50:41Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5317</id>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21522#p21522" />
			<content type="html"><![CDATA[<p>give me some time for make another way to make it <img src="https://frontaccounting.com/punbb/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[maulana]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19698</uri>
			</author>
			<updated>2014-11-19T04:50:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21522#p21522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21519#p21519" />
			<content type="html"><![CDATA[<p>I can only say, that the BOM is always used as a base when the assembly/manufacturing is done.<br />When manufacturing, the stock is first handled when you produce the items.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-11-18T17:53:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21519#p21519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21518#p21518" />
			<content type="html"><![CDATA[<p>@joe: <br />Just wanted to know if such a feature exists!<br />And if so, what are the menu click and entry sequences to achieve it. <br />Not the code behind it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-18T17:48:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21518#p21518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21516#p21516" />
			<content type="html"><![CDATA[<p>@apmuthu</p><p>It is a bit too complicated to describe the workorder flow here. Let us just assume that the code works in the core.&nbsp; If you try to modify this, you are often on your own and should have some professional skill in programming.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-11-18T17:44:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21516#p21516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21514#p21514" />
			<content type="html"><![CDATA[<p>@maulana</p><p>Please set the variable, $go_debug to 1 in config.php to trap any errors.</p><p>Immediately I can not find any errors.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-11-18T17:40:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21514#p21514</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21513#p21513" />
			<content type="html"><![CDATA[<p>@joe: I did not mean this code. I meant:</p><p>How is the work flow managed in FA when a single BoM is used to produce a set of products and not just one product. <br />How does the system handle the stock moves then?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-18T17:39:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21513#p21513</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21511#p21511" />
			<content type="html"><![CDATA[<p>I haven&#039;t been followed this in detail. Please give me som time to have a look. It is easy to produce some wrong code.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-11-18T17:36:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21511#p21511</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21507#p21507" />
			<content type="html"><![CDATA[<p>Your flow is wrong.<br />There must be a stock transfer when you use a BoM to manufacture - whether it is one or more products. In your flow, you are preventing any stock transfer in the second sql if there is only one product - if the $nope is actually one or more products made.</p><p>@joe, how is this implemented in FA for now? Should he use kits in manufacture?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-18T15:51:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21507#p21507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21505#p21505" />
			<content type="html"><![CDATA[<p>is there any solution? or should i change my idea of this flow?</p>]]></content>
			<author>
				<name><![CDATA[maulana]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19698</uri>
			</author>
			<updated>2014-11-18T13:18:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21505#p21505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21504#p21504" />
			<content type="html"><![CDATA[<p>The syntax is correct. The next statement is returning from the function with an array of fields from the first sql instead of an integer that should be the last insert id of the second sql. The calling script is expecting an integer in return.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-18T13:15:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21504#p21504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21502#p21502" />
			<content type="html"><![CDATA[<p>its on db_fetch_row($result) line, is something wrong with that?</p><p>for the if code block, i just trying like get_location_name function, i think maybe it works<br />but before it i try using without if statement and still like this</p>]]></content>
			<author>
				<name><![CDATA[maulana]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19698</uri>
			</author>
			<updated>2014-11-18T12:17:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21502#p21502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21501#p21501" />
			<content type="html"><![CDATA[<p>Check which statement is causing the blank by commenting out your code block and then working in.</p><p>Is your test case passing into the initial if code block at all? If so, it will just return (that&#039;s what your code directs)&nbsp; without doing anything since there is just 1 record.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-18T11:48:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21501#p21501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21500#p21500" />
			<content type="html"><![CDATA[<p>This is the main problem right now, blank. with this problem, i cant even see the form for test a modification code<br />http://s25.postimg.org/xk6fplz2n/blankerror.png</p><p>what i trying to do is make modification about BoM Material, i want to make a BoM can produce more than one product.<br />so the idea is make additional column in stock_master named bom_quantity, then on add_stock_move function i want to make $quantity * bom_quantity<br />why i use discount_percent field? it&#039;s just a test for make sql statement SELECT for get bom_quantity with the same stock_id</p>]]></content>
			<author>
				<name><![CDATA[maulana]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19698</uri>
			</author>
			<updated>2014-11-18T11:43:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21500#p21500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21498#p21498" />
			<content type="html"><![CDATA[<p>The variable <strong>$nope</strong> is just the first record if it passes the initial single record if check when the second sql is attempted. Otherwise if there is only 1 record, the second sql will not be attempted at all. This variable is sought to fill in the discount_percent field.</p><p>What are you trying to do?</p><p>What happens if there are no results from the first sql? You will be assigning null to a not null field or boolean false to a integer field. The following may work after the initial single record if check fails.</p><div class="codebox"><pre><code>$nope =  ($row[0] ? $row[0] : 0);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-18T11:12:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21498#p21498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASK Codeflow workorder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21493#p21493" />
			<content type="html"><![CDATA[<p>my version is PHP 5.5 and MySQL 5.6, is any problem with that? or should i use another version of XAMPP?</p><p>but sir, my screen on work_order_entry.php is blank,its because of two db_query, when i delete db_query, my screen back to normal<br />and i already change to $result</p>]]></content>
			<author>
				<name><![CDATA[maulana]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19698</uri>
			</author>
			<updated>2014-11-18T10:05:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21493#p21493</id>
		</entry>
</feed>
