<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10343&amp;type=atom" />
	<updated>2024-08-01T02:58:41Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10343</id>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43285#p43285" />
			<content type="html"><![CDATA[<p>Rafat -Appreciate your information.&nbsp; &nbsp;</p><p>Doing this will remove the&nbsp; &quot;Delayed&quot; payment option in direct purchase invoice. We have other payment option set like bank account or Petty Cash account. We want to remain the&nbsp; &quot;Delayed&quot; as an option&nbsp; but we want the Petty Cash account as the default account when opening up the direct purchase invoice.</p><p>Looking forward for any reply... Thanks</p><div class="quotebox"><cite>rafat wrote:</cite><blockquote><p>@Marc<br />It is possible to do what you asked but you need to change the core a little bit. <br />in .../purchasing/po_entry_items.php around line 485 remove _(&#039;Delayed&#039;) so its like this:<br /></p><div class="codebox"><pre><code> if ($_SESSION[&#039;PO&#039;]-&gt;trans_type == ST_SUPPINVOICE) {
    cash_accounts_list_row(_(&quot;Payment:&quot;), &#039;cash_account&#039;, null, false,);
}</code></pre></div><p>This will give you the list of your cash accounts with the default the first one in alphabetical order if you have more than one.<br />Beware the debit of the account is immediate and there is no need to go to Supplier Payment screen to pay your Suppliers. </p><p>Test it first and then use it if it serves your need.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Marc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9423</uri>
			</author>
			<updated>2024-08-01T02:58:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43285#p43285</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42569#p42569" />
			<content type="html"><![CDATA[<p>Hello...</p><p>Excellent&nbsp; improvement..!!. Will save time registering PO.</p><p>And how to do if I need to display besides cash account, all bank accounts??</p><p>So user could select from what account pay the PO.</p><p>Rafael</p>]]></content>
			<author>
				<name><![CDATA[Rmendez]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40570</uri>
			</author>
			<updated>2023-09-16T10:17:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42569#p42569</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42568#p42568" />
			<content type="html"><![CDATA[<p>Hello all.</p><p>There are missing items in your source.</p><p>I have</p><p>if ($_SESSION[&#039;PO&#039;]-&gt;trans_type == ST_SUPPINVOICE) {<br />&nbsp; &nbsp; cash_accounts_list_row(_(&quot;Payment:&quot;), &#039;cash_account&#039;, null, false, _(&#039;Delayed&#039;));<br />}</p><p>So this should be&nbsp; &nbsp; &nbsp; false, _(&#039;Delayed&#039;));</p><p>I have never seen _false anywhere in the source. It should have cast an error. Also the function parameters are stopped after a , character after _false.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2023-09-16T07:20:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42568#p42568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42562#p42562" />
			<content type="html"><![CDATA[<p>@joe: is this <strong>_false</strong> to <strong>false</strong> dependency on PHP version going to affect FA in general? I cannot find <strong>_false</strong> anywhere in the latest codebase.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2023-09-16T03:54:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42562#p42562</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42533#p42533" />
			<content type="html"><![CDATA[<p>Hello rafat,</p><p>Thanks, its working, I also consider the PHP version</p>]]></content>
			<author>
				<name><![CDATA[Marc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9423</uri>
			</author>
			<updated>2023-08-27T10:36:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42533#p42533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42512#p42512" />
			<content type="html"><![CDATA[<p>Try false instead of _false (remove the underscore).<br />Depending on your PHP version this could be the problem.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2023-08-16T09:39:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42512#p42512</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42511#p42511" />
			<content type="html"><![CDATA[<p>Hello rafat,</p><p>Below is the line 483&nbsp; &nbsp;and they do that in FA ver 2.4.11</p><p>-----------------------------------------------<br />display_po_items($_SESSION[&#039;PO&#039;]);</p><p>start_table(TABLESTYLE2);</p><br /><p>if ($_SESSION[&#039;PO&#039;]-&gt;trans_type == ST_SUPPINVOICE) {<br />&nbsp; &nbsp; cash_accounts_list_row(_(&quot;Payment:&quot;), &#039;cash_account&#039;, null, _false,);<br />}</p><p>textarea_row(_(&quot;Memo:&quot;), &#039;Comments&#039;, null, 70, 4</p>]]></content>
			<author>
				<name><![CDATA[Marc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9423</uri>
			</author>
			<updated>2023-08-16T08:15:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42511#p42511</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42506#p42506" />
			<content type="html"><![CDATA[<p>You have a &#039; that needs to be removed. Paste line 483 here if you face troubles.<br />Also state your FA version and other environment parameters.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2023-08-14T07:13:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42506#p42506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42504#p42504" />
			<content type="html"><![CDATA[<p>Hello Rafat,</p><p>I try to do that but it result to an error below</p><p>Parse error: syntax error, unexpected &#039;) in&nbsp; /xxxx/purchasing/po_entry_items.php on line 483</p>]]></content>
			<author>
				<name><![CDATA[Marc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9423</uri>
			</author>
			<updated>2023-08-14T03:41:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42504#p42504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42503#p42503" />
			<content type="html"><![CDATA[<p>@Marc<br />It is possible to do what you asked but you need to change the core a little bit. <br />in .../purchasing/po_entry_items.php around line 485 remove _(&#039;Delayed&#039;) so its like this:<br /></p><div class="codebox"><pre><code> if ($_SESSION[&#039;PO&#039;]-&gt;trans_type == ST_SUPPINVOICE) {
    cash_accounts_list_row(_(&quot;Payment:&quot;), &#039;cash_account&#039;, null, false,);
}</code></pre></div><p>This will give you the list of your cash accounts with the default the first one in alphabetical order if you have more than one.<br />Beware the debit of the account is immediate and there is no need to go to Supplier Payment screen to pay your Suppliers. </p><p>Test it first and then use it if it serves your need.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2023-08-12T04:16:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42503#p42503</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42501#p42501" />
			<content type="html"><![CDATA[<p>If you have Cash type Bank accounts, it will be available in the drop down next to <strong>Delayed</strong></p><p>Try create Cash accounts from your Bank Accounts and check this again.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2023-08-11T05:26:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42501#p42501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42500#p42500" />
			<content type="html"><![CDATA[<p>In Direct Purchase Invoice Entry&nbsp; the default payment is &quot;Delayed&quot;, how we can change such default to our desired bank account for payment.</p><p>The reason why we want to change is that the default payment is &quot;Delayed&quot; and we do not want to always change it to our bank account every time we do processing the Direct Purchase Invoice Entry.</p>]]></content>
			<author>
				<name><![CDATA[Marc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9423</uri>
			</author>
			<updated>2023-08-11T02:03:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42500#p42500</id>
		</entry>
</feed>
