<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Adding Recovery On Cash Invoice]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6603&amp;type=atom" />
	<updated>2016-12-21T13:28:55Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6603</id>
		<entry>
			<title type="html"><![CDATA[Re: Adding Recovery On Cash Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27105#p27105" />
			<content type="html"><![CDATA[<p>Shipping can be used for the excess and worded so or transferred by JV.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-12-21T13:28:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27105#p27105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Recovery On Cash Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27093#p27093" />
			<content type="html"><![CDATA[<p>The process you suggested is by default process of front accounting but I have a customized need to record a payment without leaving invoice form. </p><p>I have added a text box on order entry form and added a custom coded defined above but having issues in calling the recovery text box value in that custom code</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-12-19T14:31:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27093#p27093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Recovery On Cash Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27091#p27091" />
			<content type="html"><![CDATA[<p>Make a cash receipt for the amount you want to show in &quot;Recovery&quot; and allocate it to the appropriate partially unpaid invoice. Keep the rest of the cash for the cash invoice allocation.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-12-19T11:55:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27091#p27091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Adding Recovery On Cash Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27088#p27088" />
			<content type="html"><![CDATA[<p>I am trying to add a Field Recovery on Cash Invoice. Sometimes while recording a cash invoice we are also receiving some outstanding recovery against previous invoices. I am trying to add a option that payment recorded at Invoice Screen shall create a Customer Payment</p><p>&lt;a href=&quot;http://prntscr.com/dl88p5&quot;&gt;Click Here to View the Screen&lt;/a&gt;</p><p>Then I added following lines of code in /sales/includes/db/sales_invoice_db.inc on Line 183 onwards</p><p>&nbsp; &nbsp; &nbsp; &nbsp; global $water_business;<br />&nbsp; &nbsp; &nbsp; &nbsp; $recovery=100;//$invoice-&gt;recovery;<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($water_business)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write_customer_payment(0, $invoice-&gt;customer_id, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $invoice-&gt;Branch, $invoice-&gt;pos[&#039;pos_account&#039;], $date_,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Refs-&gt;get_next(ST_CUSTPAYMENT), $recovery, 0,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Cash invoice&#039;).&#039; &#039;.$invoice_no);</p><br /><p>Now I need to know how to pass the value in the Recovery Filed till here. I am not very good at php so I don&#039;t know how to change the /sales/includes/cart_class.inc</p><p>I also need to save this information in a field recovery in sales_orders table. That I will create a field there.</p><p>@apmuthu Can you help me?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-12-19T10:18:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27088#p27088</id>
		</entry>
</feed>
