<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Allow Bank Transfers Via Bank Payments]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7639</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7639&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Allow Bank Transfers Via Bank Payments.]]></description>
		<lastBuildDate>Wed, 01 Aug 2018 19:36:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32352#p32352</link>
			<description><![CDATA[<p>Modify the Code block at Line 182 on gl_bank.php with code below. This is to ensure the Edit of Bank Payment.</p><div class="codebox"><pre><code>while ($row = db_fetch($result)) {
                if (is_bank_account($row[&#039;account&#039;]) &amp;&amp; $_GET[&#039;ModifyPayment&#039;]==&#039;Yes&#039; &amp;&amp; $row[&#039;amount&#039;] &gt; 0) //Added block by faisal
                {
                    $cart-&gt;add_gl_item( $row[&#039;account&#039;], $row[&#039;dimension_id&#039;],
                        $row[&#039;dimension2_id&#039;], $row[&#039;amount&#039;], $row[&#039;memo_&#039;]);
                }
                elseif (is_bank_account($row[&#039;account&#039;]) ) {
                    // date exchange rate is currenly not stored in bank transaction,
                    // so we have to restore it from original gl amounts
                    $ex_rate = $bank_trans[&#039;amount&#039;]/$row[&#039;amount&#039;];
                }
                 else {
                    $cart-&gt;add_gl_item( $row[&#039;account&#039;], $row[&#039;dimension_id&#039;],
                        $row[&#039;dimension2_id&#039;], $row[&#039;amount&#039;], $row[&#039;memo_&#039;]);
                }
            }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Wed, 01 Aug 2018 19:36:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32352#p32352</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32351#p32351</link>
			<description><![CDATA[<p>Add this line at Line 411 in gl_bank.php</p><div class="codebox"><pre><code>hidden(&#039;ModifyPayment&#039;,@$_GET[&#039;ModifyPayment&#039;]); //added by faisal
hidden(&#039;NewPayment&#039;,@$_GET[&#039;NewPayment&#039;]); //added by faisal</code></pre></div><p>includes/ui/gl_bank_ui.inc at Line 253 (ignore this code set in above post#1)</p><div class="codebox"><pre><code>if (@$_GET[&#039;NewPayment&#039;] == &#039;Yes&#039; || @$_POST[&#039;NewPayment&#039;] == &#039;Yes&#039; || @$_GET[&#039;ModifyPayment&#039;] == &#039;Yes&#039; || @$_POST[&#039;ModifyPayment&#039;] == &#039;Yes&#039; )
            $skip_bank = !$_SESSION[&quot;wa_current_user&quot;]-&gt;can_access(&#039;SA_BANK2BANK&#039;);
    else {
        $skip_bank = true;
    }

    echo gl_all_accounts_list(&#039;code_id&#039;, null, $skip_bank, true); // modified by faisal</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Wed, 01 Aug 2018 19:19:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32351#p32351</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32317#p32317</link>
			<description><![CDATA[<p>I don&#039;t know. I am out of office a week. Will look at it when I am back.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 29 Jul 2018 20:00:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32317#p32317</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32315#p32315</link>
			<description><![CDATA[<p>@joe: Does this make it to the core?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 29 Jul 2018 16:45:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32315#p32315</guid>
		</item>
		<item>
			<title><![CDATA[Allow Bank Transfers Via Bank Payments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32291#p32291</link>
			<description><![CDATA[<p>I have customized the code as below</p><p>includes/access_levels.inc Line 269<br /></p><div class="codebox"><pre><code>&#039;SA_BANK2BANK&#039; =&gt; array(SS_GL|13, _(&quot;Bank Transfer Through Bank Payment&quot;)), //added by faisal</code></pre></div><p>includes/ui/gl_bank_ui.inc at Line 253</p><div class="codebox"><pre><code>if (@$_GET[&#039;NewPayment&#039;] == &#039;Yes&#039;) //Added by faisal
        $skip_bank = !$_SESSION[&quot;wa_current_user&quot;]-&gt;can_access(&#039;SA_BANK2BANK&#039;);
    else {
        $skip_bank = true;
    }

    echo gl_all_accounts_list(&#039;code_id&#039;, null, $skip_bank, true); // modified by faisal</code></pre></div><br /><p>gl/includes/db/gl_db_banking.inc at Line 477</p><div class="codebox"><pre><code>        if ($trans_type == ST_BANKPAYMENT AND $is_bank_to &amp;&amp; !$_SESSION[&quot;wa_current_user&quot;]-&gt;can_access(&#039;SA_BANK2BANK&#039;))</code></pre></div><p>Line numbers may vary.</p><p>Please test and comment.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Mon, 23 Jul 2018 23:05:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32291#p32291</guid>
		</item>
	</channel>
</rss>
