<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Textcart module]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2793&amp;type=atom" />
	<updated>2019-04-04T11:12:41Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2793</id>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34585#p34585" />
			<content type="html"><![CDATA[<p>Brilliant. I&#039;m glad this helped.</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2019-04-04T11:12:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34585#p34585</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34583#p34583" />
			<content type="html"><![CDATA[<p>Thanks elax for fixing the update problem.</p><p>I merged what appear to be the appropriate changes (specifically, the changes in the elax/fa-textcart repository for the latest push, which was titled &quot;Fix PO update problems&quot;). That amounted to two changes in includes/textcart_manager.inc. I worked from the change log in fa-textcart, so that I only took changes that you made in that push. I think that I did not take any changes that are specific to your fork.</p><p>Those changes work for me, though my testing was pretty light; I did an insert, then made some changes and did an update, and it looked good.</p><p>Here is a link to a .zip file that contains my updates for 2.4.6 and this fix: https://rlhamilton.net/textcart/textcart-2.4.6.zip</p><p>Be aware that my experience with programming php and frontaccounting is pretty slim, so although this does work fine for the ways that I use textcart, it would be good if some more experienced people looked at this, too.</p><p>Thanks to elax and apmuthu for your help. I hope this update can be useful to others in the FA community.</p>]]></content>
			<author>
				<name><![CDATA[rlhamilton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14575</uri>
			</author>
			<updated>2019-04-03T23:30:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34583#p34583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34568#p34568" />
			<content type="html"><![CDATA[<p>I&#039;ve pushed my textcart repository on github there</p><p>&nbsp; &nbsp;https://github.com/elax/fa-textcart</p><p>The latest version fixes the Purchase order update problemes. However, this version of textcart is meant to work with my fork of FrontAccountting (which includes a few non-compatible features). An up to date version of text compatible with FA 2.3 should be easily doable by uncherry picking what is specific to my FA fork.</p><p>The main update from the version you should have is the ability to set cart parameter (like customer, date, reference) etc from the text cart.</p><p>I&#039;m happy to answer any question.</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2019-04-01T08:59:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34568#p34568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34400#p34400" />
			<content type="html"><![CDATA[<p>@elax: awaiting the updated version.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-03-04T15:50:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34400#p34400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34395#p34395" />
			<content type="html"><![CDATA[<p>I managed to fix the update (I actually needed it the other day, to amend the quantity of a purchase order without changing anything else).<br />I&#039;ll push my version probably on github if you are intereset.</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2019-03-04T09:37:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34395#p34395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34357#p34357" />
			<content type="html"><![CDATA[<p>I&#039;m glad to do that. It may take a little while, because I still haven&#039;t figured out what&#039;s going on with update. But if I can make that fix, I&#039;ll get you an update.</p>]]></content>
			<author>
				<name><![CDATA[rlhamilton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14575</uri>
			</author>
			<updated>2019-02-27T00:53:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34357#p34357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34315#p34315" />
			<content type="html"><![CDATA[<p>That is indeed perseverance! Thanks. When all works well, kindly send a link to the zipped module for inclusion in the <a href="https://github.com/apmuthu/FA24extensions">FA24extensions repo</a>. It currently is <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Extensions/textcart">in GitHub for the FA 2.3.x</a> branch.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-02-23T06:00:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34315#p34315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34292#p34292" />
			<content type="html"><![CDATA[<p>Hi elax,</p><p>Thanks for the response. At first, the problem was that when I went to a function such as Sales/Direct Invoice, I would get a blank page. I didn&#039;t look any further, since I didn&#039;t want to waste time if there was a 2.4 version available.</p><p>Once I knew there wasn&#039;t a formal 2.4+ version, I looked a little closer, tracking things through the error.log file.</p><p>There were four easy changes:</p><p>1) The contents of includes/manufacturing.inc were moved into inventory.inc in 2.4, so I changed the include call in textcart_manager.inc.</p><p>2) There is a call to check_edit_conflicts() in textcart/sales/sales_order_entry.php that had no arguments. That raised a fatal error, which didn&#039;t occur in 2.3.6, but I suspect the reason there is that I&#039;m using a newer version of php (7.2), which might be pickier. I changed that call to match the equivalent call in the base version of sales_order_entry.php.</p><p>3) The base function get_standard_cost doesn&#039;t exist in 2.4.6. It was replaced by get_unit_cost, which appears to do the same thing (or close enough for my purposes). I changed calls to that function in textcart/sales/sales_order_entry.php, textcart/purchasing/po_entry_items.php, and textcart/includes/textcart_manager.inc.</p><p>4) I changed the version to 2.4.6 in textcart/_init/config so that FA would allow the extension to be enabled. (I had already done that before I sent my first message).</p><p>That got things running, with one exception.</p><p>The one problem I ran into (and which still exists), is with the update option on the text tab. In sales it works fine, but in purchasing, it doesn&#039;t. Here is how to duplicate the problem:</p><p>- Open a Purchase Order Entry or Direct Supplier Invoice<br />- Add a couple of items to the invoice normally<br />- Select the text tab, and you will see lines for the items you added:<br />9780982219102&nbsp; &nbsp; + 1&nbsp; &nbsp; $ 5.66&nbsp; &nbsp; ^ 03/03/2019&nbsp; &nbsp; | &quot;Managing Writers First Edition&quot;<br />9780982219119&nbsp; &nbsp; + 1&nbsp; &nbsp; $ 5.44&nbsp; &nbsp; ^ 03/03/2019&nbsp; &nbsp; | &quot;Conversation and Community First Edition&quot;<br />- Click update.<br />- The date moves to the item description, and the date is replaced with 0. If you select the text tab again, you will see the following:<br />9780982219102&nbsp; &nbsp; + 1&nbsp; &nbsp; $ 5.66&nbsp; &nbsp; ^ 0&nbsp; &nbsp; | &quot;03/03/2019&quot;<br />9780982219119&nbsp; &nbsp; + 1&nbsp; &nbsp; $ 5.44&nbsp; &nbsp; ^ 0&nbsp; &nbsp; | &quot;03/03/2019&quot;</p><p>I don&#039;t use update, in fact, I&#039;m not sure what it does that can&#039;t be done with replace. Fortunately, both replace and insert appear to work fine. </p><p>I am now going another step further, merging your versions of the files under sales, purchasing, and inventory with the 2.4.6 files to see if I can come up with a version of textcart that will more closely match 2.4.6. I&#039;m glad to share those changes with you if they work, and if you&#039;d like to have them.</p><p>So, the bottom line is that with the changes described above, textcart works with the only exception (so far) being the update issue, which I&#039;m able to work around.</p><p>Thanks for your help.<br />Richard</p>]]></content>
			<author>
				<name><![CDATA[rlhamilton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14575</uri>
			</author>
			<updated>2019-02-21T00:02:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34292#p34292</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34288#p34288" />
			<content type="html"><![CDATA[<p>Textcart author here,</p><p>What do you exactly mean by it doesn&#039;t work ? <br />There is no version specific to work with 2.4.x planned, however I don&#039;t think there are fundamental changes between 2.3 and 2.4 which will stop it from working. <br />I don&#039;t use FA 2.4.x but a fork of 2.3.x and I have no plan to upgrade at the moment, therefore I am not planning to upgrade textcart to 2.4. However, I&#039;m happy to provide guindance or help to make it work on 2.4.x</p><p>/elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2019-02-20T11:35:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34288#p34288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34282#p34282" />
			<content type="html"><![CDATA[<p>Is there a version of textcart that will work with 2.4.6 or is there an alternate extension that does the same thing?</p><p>I tried the version in this forum thread, as well as the one in github, but neither works with 2.4.6, and I haven&#039;t been able to find a newer version.</p><p>Thanks for your help.</p>]]></content>
			<author>
				<name><![CDATA[rlhamilton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14575</uri>
			</author>
			<updated>2019-02-20T02:38:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34282#p34282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22256#p22256" />
			<content type="html"><![CDATA[<p>I had made an error in the replacement value and have corrected the post since. Have a go again now.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-21T18:08:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22256#p22256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22255#p22255" />
			<content type="html"><![CDATA[<p>Thanks. I changed and then now when i go in Sales Order Entry, i only see a blank white page with the following message</p><p>Cannot re-assign $this in /home1/dragon/public_html/dragondb/modules/textcart/includes/textcart_manager.inc on line 703</p>]]></content>
			<author>
				<name><![CDATA[sirka]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19866</uri>
			</author>
			<updated>2015-01-21T17:13:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22255#p22255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22254#p22254" />
			<content type="html"><![CDATA[<p>Nice catch. When a class extends another and attempts to override a parent method (function), it should maintain the same number of arguments or the parent method should have default values for missing arguments in the overriding methods.</p><p>For a start, try the following in the file <strong>/modules/textcart/includes/textcart_manager.inc</strong>:<br />Change lines 703 and 733:<br /></p><div class="codebox"><pre><code>  function item_to_text($item) {</code></pre></div><p>to be<br /></p><div class="codebox"><pre><code>  function item_to_text($item, $user_price_dec) {</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-21T16:52:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22254#p22254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22253#p22253" />
			<content type="html"><![CDATA[<p>Thanks. I extracted the files in the zip and placed in the textcart folder on server. </p><p>After activating textcart, now i can go in Sales Order Entry but received the following error message on the top of the page.</p><br /><p>Declaration of ItemsAdjTextCartManager::item_to_text() should be compatible with TextCartManager::item_to_text($item, $user_price_dec) in file: ..../modules/textcart/includes/textcart_manager.inc at line 711<br />..../modules/textcart/sales/sales_order_entry.php:30:&nbsp; &nbsp; include_once()</p><br /><p>Any steps I have done wrong?</p>]]></content>
			<author>
				<name><![CDATA[sirka]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19866</uri>
			</author>
			<updated>2015-01-21T16:33:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22253#p22253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Textcart module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22250#p22250" />
			<content type="html"><![CDATA[<p>I have patched the files needed to incorporate the latest FA v2.3.22+. Kindly verify the commits in my FA repo.</p><p><a href="https://github.com/apmuthu/frontaccounting/commit/74ca11f0275afa148ca9722dbefe83f8e38882ae">Synched textcart patched file inventory/transfers.php with core </a><br /><a href="https://github.com/apmuthu/frontaccounting/commit/6546cc5ff474c11989a932e2bb524432ea9fa260">elax textcart patched files updated to latest in core (sales, inventory, purchasing)</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-21T13:25:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22250#p22250</id>
		</entry>
</feed>
