<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10343</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10343&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Direct Purchase Invoice Entry - Change the default payment Delayed.]]></description>
		<lastBuildDate>Thu, 01 Aug 2024 02:58:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43285#p43285</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Marc)]]></author>
			<pubDate>Thu, 01 Aug 2024 02:58:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43285#p43285</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42569#p42569</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Rmendez)]]></author>
			<pubDate>Sat, 16 Sep 2023 10:17:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42569#p42569</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42568#p42568</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 16 Sep 2023 07:20:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42568#p42568</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42562#p42562</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 16 Sep 2023 03:54:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42562#p42562</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42533#p42533</link>
			<description><![CDATA[<p>Hello rafat,</p><p>Thanks, its working, I also consider the PHP version</p>]]></description>
			<author><![CDATA[null@example.com (Marc)]]></author>
			<pubDate>Sun, 27 Aug 2023 10:36:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42533#p42533</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42512#p42512</link>
			<description><![CDATA[<p>Try false instead of _false (remove the underscore).<br />Depending on your PHP version this could be the problem.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Wed, 16 Aug 2023 09:39:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42512#p42512</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42511#p42511</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Marc)]]></author>
			<pubDate>Wed, 16 Aug 2023 08:15:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42511#p42511</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42506#p42506</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Mon, 14 Aug 2023 07:13:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42506#p42506</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42504#p42504</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Marc)]]></author>
			<pubDate>Mon, 14 Aug 2023 03:41:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42504#p42504</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42503#p42503</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Sat, 12 Aug 2023 04:16:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42503#p42503</guid>
		</item>
		<item>
			<title><![CDATA[Re: Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42501#p42501</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Fri, 11 Aug 2023 05:26:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42501#p42501</guid>
		</item>
		<item>
			<title><![CDATA[Direct Purchase Invoice Entry - Change the default payment Delayed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42500#p42500</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Marc)]]></author>
			<pubDate>Fri, 11 Aug 2023 02:03:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42500#p42500</guid>
		</item>
	</channel>
</rss>
