Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate annual & installment based classes #74

Open
ranafaraz opened this issue Mar 9, 2019 · 0 comments
Open

Differentiate annual & installment based classes #74

ranafaraz opened this issue Mar 9, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request modifications new modifications

Comments

@ranafaraz
Copy link
Member

ranafaraz commented Mar 9, 2019

Task:
Differentiate annual & installment based classes at the time of registration of classes.
An integer based field can be used to define monthly difference between installments for individual class. This scenario can be used to automate the fee collection process.

Hints:
Let's suppose, user gives monthly difference of '4' to collect the installments from Class 'A'. And Start the session from Jan-2019 to Jan-2021. The system will automatically gives alert to the accountant whenever the defined monthly cycle is completed; a difference of 4 months.
In this way, an alert regarding fee collection from 'Class A' will be generated in every 4th month of the session i.e.

  • 20th of April
  • 20th of August
  • 20th of December
    And the iteration of installment cycle continues, throughout the session.

The following code can be used to get the current month in integer form. The obtained value can be used to compare the month defined in 'Custom Installment Cycle'.
<?php echo "Today is " . date("Y-m-d") . "<br>"; ?>

The following code can be used to find a difference between specified date and current date. The code can be manipulated in such a way that it can be used to get the required results regarding 'Custom Installment Collection Alert'.

<?php
$d1=strtotime("July 04");
$d2=ceil(($d1-time())/60/60/24);
echo "There are " . $d2 ." days until 4th of July.";
?>

Output: There are 116 days until 4th of July.

@ranafaraz ranafaraz added enhancement New feature or request modifications new modifications labels Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request modifications new modifications
Projects
None yet
Development

No branches or pull requests

3 participants