<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Handling Access Setup for Version2 of a Module]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8372&amp;type=atom" />
	<updated>2019-09-02T02:29:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8372</id>
		<entry>
			<title type="html"><![CDATA[Re: Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35886#p35886" />
			<content type="html"><![CDATA[<p>On Fresh Installation</p><p>Version 1<br /></p><div class="codebox"><pre><code>[Section353280] =&gt; 1
    [Area353380] =&gt; 1
    [Area353381] =&gt; 1
    [Area353382] =&gt; 1
    [Area353383] =&gt; 1
    [Area353384] =&gt; 1
    [Area353385] =&gt; 1
    [Area353386] =&gt; 1
    [Area353387] =&gt; 1
    [Area353388] =&gt; 1
    [Area353389] =&gt; 1
    [Area353390] =&gt; 1
    [Area353391] =&gt; 1
    [Area353392] =&gt; 1
    [Area353393] =&gt; 1
    [Area353394] =&gt; 1
    [Area353365] =&gt; 1
    </code></pre></div><p>Version2<br /></p><div class="codebox"><pre><code>[Section418816] =&gt; 1
    [Area418916] =&gt; 1
    [Area418917] =&gt; 1
    [Area418918] =&gt; 1
    [Area418919] =&gt; 1
    [Area418920] =&gt; 1
    [Area418921] =&gt; 1
    [Area418922] =&gt; 1
    [Area418923] =&gt; 1
    [Area418924] =&gt; 1
    [Area418925] =&gt; 1
    [Area418926] =&gt; 1
    [Area418927] =&gt; 1
    [Area418928] =&gt; 1
    [Area418929] =&gt; 1
    [Area418930] =&gt; 1
    [Area418931] =&gt; 1
    </code></pre></div><p>@poncho1234 YOu can take any module and rename it and install it. The Section and Area Codes will be different.</p><p>My Problem is to copy the Section and Area Settings from Version 1 to Version 2.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-09-02T02:29:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35886#p35886</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35885#p35885" />
			<content type="html"><![CDATA[<p>I already have renamed the module. My basic module is <strong>clearing</strong> and the version 2 is <strong>clearingv2</strong>. Security settings are just same in hooks.php except the one mentioned in post#3</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-09-02T02:10:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35885#p35885</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35883#p35883" />
			<content type="html"><![CDATA[<p>@boxygen - this doesn&#039;t answer your question; could you just rename the module, keeping the existing security settings?</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-09-01T15:07:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35883#p35883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35882#p35882" />
			<content type="html"><![CDATA[<p>Wonder if the constants are case sensitive and can contain numbers - SS_CLEARINGINVOICEv2</p><p>FA cleverly manages to get new sequential values if existing ones are occupied (105).</p><p>105 * 256 (shift left 8) = 38400.</p><p>Obviously you have tried to install, remove and re-install the module several times.</p><p>Try it on a fresh FA install with no other module and see what comes of it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-09-01T14:59:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35882#p35882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35874#p35874" />
			<content type="html"><![CDATA[<p>My hooks.php is almost the same except below</p><p>Version 1<br /></p><div class="codebox"><pre><code>define (&#039;SS_CLEARINGINVOICE&#039;, 105&lt;&lt;8);</code></pre></div><p>Version2<br /></p><div class="codebox"><pre><code>define (&#039;SS_CLEARINGINVOICEv2&#039;, 105&lt;&lt;8);</code></pre></div><br /><p>But the resulting Section and Area Numbers are different</p><p>Version1<br /></p><div class="codebox"><pre><code>[Section5006336] =&gt; 1
    [Area5006436] =&gt; 1
    [Area5006437] =&gt; 1
    [Area5006438] =&gt; 1
    [Area5006439] =&gt; 1
    [Area5006440] =&gt; 1
    [Area5006441] =&gt; 1
    [Area5006442] =&gt; 1
    [Area5006443] =&gt; 1
    [Area5006444] =&gt; 1
    [Area5006445] =&gt; 1
    [Area5006446] =&gt; 1
    [Area5006447] =&gt; 1
    [Area5006448] =&gt; 1
    [Area5006449] =&gt; 1
    [Area5006450] =&gt; 1
    [Area5006451] =&gt; 1</code></pre></div><p>Version2<br /></p><div class="codebox"><pre><code>[Section6054912] =&gt; 1
    [Area6055012] =&gt; 1
    [Area6055013] =&gt; 1
    [Area6055014] =&gt; 1
    [Area6055015] =&gt; 1
    [Area6055016] =&gt; 1
    [Area6055017] =&gt; 1
    [Area6055018] =&gt; 1
    [Area6055019] =&gt; 1
    [Area6055020] =&gt; 1
    [Area6055021] =&gt; 1
    [Area6055022] =&gt; 1
    [Area6055023] =&gt; 1
    [Area6055024] =&gt; 1
    [Area6055025] =&gt; 1
    [Area6055026] =&gt; 1
    [Area6055027] =&gt; 1</code></pre></div><br /><p>I am trying to understand that which factor is bringing this difference in code of both Versions.</p><p>My First version is installed on 76th Position and New Version is installed in 92nd Position in installed_extensions.php.</p><p>@apmuthu, Can you help me to understand the logic. Its bit tricky using bitwise operators.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-09-01T07:22:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35874#p35874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35872#p35872" />
			<content type="html"><![CDATA[<p>Version 2 should be a new module (with it&#039;s own distinct name) in your case as you want to have both versions concurrently with only a subset using the new version. A separate script in your new version module must independently migrate the security settings as needed or have it set anew in it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-09-01T06:05:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35872#p35872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Handling Access Setup for Version2 of a Module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35847#p35847" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I have module <strong>clearing</strong> and there are 10 companies on it. Now I want to launch version 2 of this module without changing the first version. <strong>clearingv2</strong>. I don&#039;t want all clients to shift to this new version.</p><p>When I do this and install this new version as a new module and shift any of these clients to this new version. I lost all security settings for this new version.</p><p>Since there are many roles in each company it is very tedious to reassign all security settings.</p><p>Is there any way that my version2 inherits the security settings of version1?</p><p>Your support is highly appreciated.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-08-30T04:33:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35847#p35847</id>
		</entry>
</feed>
