<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://doc-en-mirror.openflyers.com/index.php?action=history&amp;feed=atom&amp;title=AdminDoc2.0howto</id>
	<title>AdminDoc2.0howto - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://doc-en-mirror.openflyers.com/index.php?action=history&amp;feed=atom&amp;title=AdminDoc2.0howto"/>
	<link rel="alternate" type="text/html" href="https://doc-en-mirror.openflyers.com/index.php?title=AdminDoc2.0howto&amp;action=history"/>
	<updated>2026-05-01T16:31:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://doc-en-mirror.openflyers.com/index.php?title=AdminDoc2.0howto&amp;diff=193&amp;oldid=prev</id>
		<title>imported&gt;Claratte: /* Subvention depends of the flight time */</title>
		<link rel="alternate" type="text/html" href="https://doc-en-mirror.openflyers.com/index.php?title=AdminDoc2.0howto&amp;diff=193&amp;oldid=prev"/>
		<updated>2008-06-25T21:00:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Subvention depends of the flight time&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Manage specific accountancy for subsidized members=&lt;br /&gt;
==problem description==&lt;br /&gt;
*Among your members, some of them come from a specific organisation which support them. This support (or allocation) is given either before or after spends are done. So, you want that OF knows their subvention.&lt;br /&gt;
*Moreover, you want that OF alerts them when their expenses are below a level (like for other members)&lt;br /&gt;
==solution==&lt;br /&gt;
===Subvention is known before the expenses are done and independent of the flights===&lt;br /&gt;
*create a specific club account, for example: &amp;quot;supporter&amp;quot;&lt;br /&gt;
*add a transfer between this account and the member account according to the support amount.&lt;br /&gt;
That's all!&lt;br /&gt;
Doing that, supported members will have their account credited according to the subvention and thus, when the expenses will be greater to the credit amount, the balance will be negative.&lt;br /&gt;
===Subvention depends of the flight time===&lt;br /&gt;
*define a specific pool for these members (for example: &amp;quot;supported&amp;quot;)&lt;br /&gt;
*set these members to this group (and only this group)&lt;br /&gt;
*define a specific club account (for example: &amp;quot;subvention&amp;quot;)&lt;br /&gt;
*go to the &amp;quot;Accounts/Pricing/Flight hours pricing&amp;quot; page and add a line:&lt;br /&gt;
**name: &amp;quot;support distribution&amp;quot;&lt;br /&gt;
**formula: max((sumFlightHour(%PILOT,position,day,aircraftType1,aircraftType2,etc)+%DURATION-X),0)*$price&lt;br /&gt;
where:&lt;br /&gt;
***position should be set to null (=any position), 0(=left) or 1(=right)&lt;br /&gt;
***day: day number to take in account&lt;br /&gt;
***aircraftType1,etc: to restrict the flights from specific aircraft types (aircraft type id are shown in the aircraft type list)&lt;br /&gt;
***X:replace by the limit supported flight time (in sexacentimal)&lt;br /&gt;
***$price: variable name defined and set in &amp;quot;Account/pricing/variables setting&amp;quot; and &amp;quot;Account/pricing/values setting&amp;quot;&lt;br /&gt;
**Left account:member account&lt;br /&gt;
**transaction direction: from right account to left account&lt;br /&gt;
**right account:club account (&amp;quot;subvention&amp;quot;)&lt;br /&gt;
**affected pool: &amp;quot;supported&amp;quot;&lt;br /&gt;
**other items: like other lines&lt;br /&gt;
*You have to add one line like this one for each different price&lt;br /&gt;
Doing that enable the club:&lt;br /&gt;
*to regroup supported bill in one account&lt;br /&gt;
*to have a right member account balance according to his real subvention (and when his flight time is greater than the allocated subvention, to have a debit)&lt;/div&gt;</summary>
		<author><name>imported&gt;Claratte</name></author>
	</entry>
</feed>