Well, I said one day I should start with it, so it comes. I need a system for targeting donations by users to concrete requests for help, projects or programs on-line, which I named "Billing System". We discussed it before and agreed that I should provide description of what I want. So, my first package of information, which I need to discuss before I start to realize it.
Idea.
1. Providing records of transactions within special new list "Billing".
2. There are 3 types of records for targeting, which organized in 3 different lists: 1) request fop help (list #19), 2) projects (list 26), 3) programs (list 23). Only one of them - "Program" can be the source for targeting (see forms 2 below).
2. There are 2 kinds of transactions: 1) to input or to withdraw money to\from the system by administrator; 2) targeting for donations inside the system by users.
For example, Rob put 3 euros in cash to moneybox for his personal program #645 (like his purse in a system). Administrator will see his donation with targeting "for program #645) after encashment of moneybox, and will make a record with a help of the first Form "Incomes_outcomes". After that Rob will see 3 euros n balance of his purse #645 on-line. After 2 months he decides to make next donation: 2 euros for request # 69 and 1 euros for request #67, from his purse, and uses a second Form "Targeting". This is an example, but not the only possible example.
Another example. NGO published a program to help birds with #457. After it collects 1000 euroes NGOs decide to provide competition for best solution for birds within local community and ask people to publish their projects on-line and defines the winner-project #331. NGO use form "Targeting" to "transfer" 1000 euroes from its program #457 to project #331.
3. So I'm going to make 2 copies of list "Billing" with 2 forms "Incomes_outcomes" and "Targeting" (see description below) to serve both type of transactions (to input\withdraw money to\from the system and to provide targeting within the system). Records to Incomes_outcomes list can be added by administrator, records to Targeting list can be added by fixed users' groups from front-end.
4. Calculations of balance and expected visualization. For example, Request for help # 69, list #19 "Zayavky". Balance (incomes\outcomes and targeting) for the request #69 should be calculated as: summarize of all records of list "Billing" filtered by Type (list #19) and id of record (#69). Calculated sum should be visible here https://dobrochyn.org/index.php/features/philanthropy-marketplace/details/32/69 in element 287 "???????". After clicking on sum, user can see all details (result of filtering). The same mechanizm for other 2 types (projects - list 26, programs - list 23)
5. Now please check the structure of proposed form 1 ""Incomes_outcomes" at first screenshot,
where:
* Source - list of sources 1 for incomes or outcomes, which are "outside" of the on-line system. Example of incomes' source - "moneybox #31", Example of outcome's source - "hospital #23"
Sum - number with plus - for incomes, with minus - for outcomes
** Type - choice from lists # 19, 23, 26
*** id of record from previously chosen list (Type)
I can do it by myself. What I cannot - to provide calculation, which I described at point 4. So I need a correct code for it to put in element 287.
6. Please, check the structure of proposed form 2 "Targeting" at the next screenshot.
It looks like similar to form 1 with the only difference - Source 2 instead of Source 1, where Source 2 - it should be a choice of programs (records in the list ), where logined user is author.
Where I need a support:
- I don't know how to realize rule for source 2, which I highlighted by italic
- Unlike form 1, where one record provide one operation (plus or minus depend from sign of a sum), one record with a help of form 2 should provide 2 operations at the same time: to plus sum for targeting (request, project or program) and to minus from program, which was defined as a source 2 in this form. I have not been able to figure out how to do it.
There are also 2 more questions, which I have to solve within billing system: -) automatic "returns of targeting" within a system by administrator's decision (when it is impossible to realize user's targeting in real); -) "sms-trigger" to provide transactions with a help of form 2. It looks like both of questions I can discuss later, after realization of above-mentioned base functions.
So, what I'm waiting for: 1) can I take above-mentioned system or you know better solution? 2) if my system is ok, please, provide me necessary information for requests, which I highlighted be red.
Thank you in advance!
Idea.
1. Providing records of transactions within special new list "Billing".
2. There are 3 types of records for targeting, which organized in 3 different lists: 1) request fop help (list #19), 2) projects (list 26), 3) programs (list 23). Only one of them - "Program" can be the source for targeting (see forms 2 below).
2. There are 2 kinds of transactions: 1) to input or to withdraw money to\from the system by administrator; 2) targeting for donations inside the system by users.
For example, Rob put 3 euros in cash to moneybox for his personal program #645 (like his purse in a system). Administrator will see his donation with targeting "for program #645) after encashment of moneybox, and will make a record with a help of the first Form "Incomes_outcomes". After that Rob will see 3 euros n balance of his purse #645 on-line. After 2 months he decides to make next donation: 2 euros for request # 69 and 1 euros for request #67, from his purse, and uses a second Form "Targeting". This is an example, but not the only possible example.
Another example. NGO published a program to help birds with #457. After it collects 1000 euroes NGOs decide to provide competition for best solution for birds within local community and ask people to publish their projects on-line and defines the winner-project #331. NGO use form "Targeting" to "transfer" 1000 euroes from its program #457 to project #331.
3. So I'm going to make 2 copies of list "Billing" with 2 forms "Incomes_outcomes" and "Targeting" (see description below) to serve both type of transactions (to input\withdraw money to\from the system and to provide targeting within the system). Records to Incomes_outcomes list can be added by administrator, records to Targeting list can be added by fixed users' groups from front-end.
4. Calculations of balance and expected visualization. For example, Request for help # 69, list #19 "Zayavky". Balance (incomes\outcomes and targeting) for the request #69 should be calculated as: summarize of all records of list "Billing" filtered by Type (list #19) and id of record (#69). Calculated sum should be visible here https://dobrochyn.org/index.php/features/philanthropy-marketplace/details/32/69 in element 287 "???????". After clicking on sum, user can see all details (result of filtering). The same mechanizm for other 2 types (projects - list 26, programs - list 23)
5. Now please check the structure of proposed form 1 ""Incomes_outcomes" at first screenshot,
where:
* Source - list of sources 1 for incomes or outcomes, which are "outside" of the on-line system. Example of incomes' source - "moneybox #31", Example of outcome's source - "hospital #23"
Sum - number with plus - for incomes, with minus - for outcomes
** Type - choice from lists # 19, 23, 26
*** id of record from previously chosen list (Type)
I can do it by myself. What I cannot - to provide calculation, which I described at point 4. So I need a correct code for it to put in element 287.
6. Please, check the structure of proposed form 2 "Targeting" at the next screenshot.
It looks like similar to form 1 with the only difference - Source 2 instead of Source 1, where Source 2 - it should be a choice of programs (records in the list ), where logined user is author.
Where I need a support:
- I don't know how to realize rule for source 2, which I highlighted by italic
- Unlike form 1, where one record provide one operation (plus or minus depend from sign of a sum), one record with a help of form 2 should provide 2 operations at the same time: to plus sum for targeting (request, project or program) and to minus from program, which was defined as a source 2 in this form. I have not been able to figure out how to do it.
There are also 2 more questions, which I have to solve within billing system: -) automatic "returns of targeting" within a system by administrator's decision (when it is impossible to realize user's targeting in real); -) "sms-trigger" to provide transactions with a help of form 2. It looks like both of questions I can discuss later, after realization of above-mentioned base functions.
So, what I'm waiting for: 1) can I take above-mentioned system or you know better solution? 2) if my system is ok, please, provide me necessary information for requests, which I highlighted be red.
Thank you in advance!