Skip to content

Commit

Permalink
Update register2.html
Browse files Browse the repository at this point in the history
  • Loading branch information
BrigitteRicher authored Dec 13, 2024
1 parent 7357a5c commit 7c56208
Showing 1 changed file with 45 additions and 7 deletions.
52 changes: 45 additions & 7 deletions gsthst/register2.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,45 @@ <h3 class="mrgn-tp-md">Answer a few questions to find out if you have to registe




<!--QUESTION 2-->
<fieldset name="quest" id="question2" class="hidden mrgn-bttm-md">
<p class="h5 mrgn-tp-md text-info "><span class="text-muted">You indicated that </span><br><big>You supply taxable goods or services</big></p>
<label class="mrgn-tp-sm" for="q2">Which option best describes your situation?</label>
<ul class="list-unstyled cnjnctn-type-or cnjnctn-sm small">
<li class="cnjnctn-col"> If your business has <strong>already received revenues</strong>, continue to find out if you need to register for a GST/HST account, what is your registration date and when to charge the GST/HST.</li>
<li class="cnjnctn-col"> If your business has <strong>not</strong> already received revenues, continue to create scenarios to understand the conditions to register for a GST/HST account.</li>
</ul>

<select class="form-control required" id="q2" onchange="
var q = getElementsByName('quest') ;
for (i=3; i<=q.length; i++)
document.getElementById('question'+i).classList.add('hidden');
var results = getElementsByName('results');
for (i=1; i<=results.length; i++)
document.getElementById('R'+i).classList.add('hidden');
document.getElementById('q3').value = 5;
var q2 = document.getElementById('q2').value;
if (q2 == 0) {
document.getElementById('question3').classList.remove('hidden');
document.getElementById('age').value = 'New'
document.getElementById('numOfQuarters').value = 4 ;
}
else if (q2 == 1) {
document.getElementById('question3').classList.remove('hidden');
document.getElementById('age').value = 'Old'
document.getElementById('numOfQuarters').value = 8 ;
}
">
<option value="5" selected>Make your selection...</option>
<option value="1">Your business has already received revenues</option>
<option value="0">Your business has not already received revenues</option>

</select>
</fieldset>

<!--QUESTION 3 - DROPDOWN-->
<fieldset name="quest" id="question3" class="hidden mrgn-bttm-md">
Expand Down Expand Up @@ -401,9 +439,9 @@ <h3 class="mrgn-tp-md">Answer a few questions to find out if you have to registe
document.getElementById('R'+i).classList.add('hidden');
var q6 = document.getElementsByName('q6');
var q3 = document.getElementById('q3').value;
var q2 = document.getElementById('q2').value;
if (q3 == 0) {
if (q2 == 0) {
if (q6[0].checked) {
document.getElementById('R3').classList.remove('hidden');
}
Expand Down Expand Up @@ -744,7 +782,7 @@ <h3 class="mrgn-tp-md">Answer a few questions to find out if you have to registe
</div>
</div>
<div class="row mrgn-bttm-sm">
<label class="col-md-6 col-sm-7 mrgn-tp-sm text-right hidden-xs" for="quarter3_Old" name="q12_date_Old" id="q12_date2_Old"></label>
<label class="col-md-6 col-sm-7 mrgn-tp-sm text-right hidden-xs" for="quarter3_Old" name="q12_date_Old" id="q12_date2_Old">Q2</label>
<label class="col-xs-12 mrgn-tp-sm text-center visible-xs" name="q12_date_Oldxs"></label>
<div class="col-lg-3 col-sm-4 col-xs-12">
<div class="input-group">
Expand Down Expand Up @@ -985,7 +1023,7 @@ <h3 class="mrgn-tp-md">Answer a few questions to find out if you have to registe
<input class="hidden" id="showFields" type="button" onclick="
var q4 = document.getElementsByName('q4');
var q3 = document.getElementById('q3').value;
var q2 = document.getElementById('q2').value;
var age = document.getElementById('age').value ;
var results = getElementsByName('results');
Expand All @@ -998,7 +1036,7 @@ <h3 class="mrgn-tp-md">Answer a few questions to find out if you have to registe
//How many quarters depending if new business or not
if (q3 == 0) {
if (q2 == 0) {
document.getElementById('question12').classList.remove('hidden');
document.getElementById('numOfQuarters').value = 4 ;
}
Expand Down Expand Up @@ -1038,7 +1076,7 @@ <h3 class="mrgn-tp-md">Answer a few questions to find out if you have to registe
var year = [];
for (i=0; i<dates.length; i++) {
period[i] = Math.ceil(currentMonth/3) -1 + i ;
if (q3 == 0)
if (q2 == 0)
year[i]=currentYear;
else
year[i]=currentYear-2
Expand Down

0 comments on commit 7c56208

Please sign in to comment.