<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Changing dimension reset allocation]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2726&amp;type=atom" />
	<updated>2012-01-05T10:45:33Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2726</id>
		<entry>
			<title type="html"><![CDATA[Re: Changing dimension reset allocation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=11450#p11450" />
			<content type="html"><![CDATA[<p>Ok</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2012-01-05T10:45:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=11450#p11450</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing dimension reset allocation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=11449#p11449" />
			<content type="html"><![CDATA[<p>When we fixed it a couple of months ago, it was only fixed in the customer transactions. I forgot to fix it correctly in Journal Inquiry. <br />It should only be allowed to edit the sales invoices when there are no allocations. The complexity is too huge for fixing this.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-01-05T10:43:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=11449#p11449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing dimension reset allocation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=11448#p11448" />
			<content type="html"><![CDATA[<p>Hi Joe<br />I don&#039;t think editing it is a bug as it&#039;s a feature I asked for a couple of month ago (the feature was to be able to change the dimension on an invoice or everything else). This why you authorized the editing of it in the journal inquiry. However I agree that the normal editing shouldn&#039;t be allowed therefore changing the dimension should use this way. So I understand if you are removing this possibility as it&#039;s bugger.</p><p>Anyway that would be nice to have a way to edit/modify dimensions on GL transaction or Journal (as that doesn&#039;t really change anything to the GL)</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2012-01-05T09:34:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=11448#p11448</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing dimension reset allocation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=11446#p11446" />
			<content type="html"><![CDATA[<p>I see that you have used the Journal Inquiry for editing the sales invoice. The Journal Inquiry shouldn&#039;t have allowed you to edit allocated invoices. This is a bug.<br />In Customer Transactions you are not allowed to edit allocated invoices.<br />This bug is fixed in HG repository and come in the next minor release.</p><p>You can also replace this function on line 106 in /gl/inquiry/journal_inquiry.php.<br /></p><div class="codebox"><pre><code>function edit_link($row)
{
    global $editors;

    $ok = true;
    if ($row[&#039;type&#039;] == ST_SALESINVOICE)
    {
        $myrow = get_customer_trans($row[&quot;type_no&quot;], $row[&quot;type&quot;]);
        if ($myrow[&#039;alloc&#039;] != 0 || get_voided_entry(ST_SALESINVOICE, $row[&quot;type_no&quot;]) !== false)
            $ok = false;
    }        
    return isset($editors[$row[&quot;type&quot;]]) &amp;&amp; !is_closed_trans($row[&quot;type&quot;], $row[&quot;type_no&quot;]) &amp;&amp; $ok ? 
        pager_link(_(&quot;Edit&quot;), 
            sprintf($editors[$row[&quot;type&quot;]], $row[&quot;type_no&quot;], $row[&quot;type&quot;]),
            ICON_EDIT) : &#039;&#039;;
}</code></pre></div><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-01-04T23:26:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=11446#p11446</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Changing dimension reset allocation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=11445#p11445" />
			<content type="html"><![CDATA[<p>Hi </p><p>I changed the dimension of some invoices, for some reason it reset all the customer payement allocations.<br />I can deal with that (except I have 35 allocations to do again manually), even though I just want to set a dimension on the GL.</p><p>However , what seems more weird is that the debtor_trans have the opposite amount allocated, meaning when I allocate a payment to an invoice, I still have to allocate the same amount to fillfull it. Is it a bug or an expected behavior ?</p><p>Hopefully , I backed up my database before doing that so I&#039;ll just restore it (except the gl_trans table which what I want) ;-)</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2012-01-04T20:47:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=11445#p11445</id>
		</entry>
</feed>
