<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Allow Bank Transfers Via Bank Payments]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7639&amp;type=atom" />
	<updated>2018-08-01T19:36:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7639</id>
		<entry>
			<title type="html"><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32352#p32352" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-08-01T19:36:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32352#p32352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32351#p32351" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-08-01T19:19:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32351#p32351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32317#p32317" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-07-29T20:00:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32317#p32317</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Allow Bank Transfers Via Bank Payments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32315#p32315" />
			<content type="html"><![CDATA[<p>@joe: Does this make it to the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-07-29T16:45:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32315#p32315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Allow Bank Transfers Via Bank Payments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32291#p32291" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-07-23T23:05:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32291#p32291</id>
		</entry>
</feed>
