Skip to content

Conversation

@mladjo2505
Copy link
Contributor

Closes #350

@mladjo2505 mladjo2505 self-assigned this Apr 3, 2017
@mladjo2505 mladjo2505 requested review from sls-lnluksa and stoivo April 3, 2017 08:07
@mladjo2505 mladjo2505 force-pushed the otp_multiple_subunits branch from 9f2309f to 4e569a2 Compare April 11, 2017 08:27
@mladjo2505 mladjo2505 force-pushed the otp_multiple_subunits branch from 4e569a2 to ad753e0 Compare April 11, 2017 08:30
virksomhet_otp_amounts[virksomhet_id] = 0;
}

function refreshSelectedWorkRelations() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of looping though all, pass an element and affect the object that keeps track of what is selected and call the function to render current subunits' OTP, same for salaries.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}

function generateOTPInputsFromSelectedSalaries() {
refreshSelectedSalaries();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed after the above change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

var used_virksomhets = [];
for(var salary_id in salary_virksomhet_array) {
virksomhet_id = salary_virksomhet_array[salary_id];
if (salary_selected[salary_id]) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update based on looping though selected salaries to set its subunit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}
for(var work_relation_id in work_relation_virksomhet_array) {
virksomhet_id = work_relation_virksomhet_array[work_relation_id];
if (work_relations_selected[work_relation_id]) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as for salaries

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}
}

$(document).ready(function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

$query_altinn = "select * from $db_table order by AltinnReport1ID";
$result = $_lib['db']->db_query($query_altinn);

$salary_workrelation_array = array();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to move all js related stuff to one file and unify the php vars needed for it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}
foreach($this->pension as $zone_tax) {
$sumArbeidsgiveravgift += $zone_tax['avgiftsgrunnlagBeloep'] * $zone_tax['prosentsatsForAvgiftsberegning']/100.0;
if (!empty($this->pension[$key_subcompany])) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check this part of the code

@mladjo2505
Copy link
Contributor Author

Fixed AGA calculation and tested it

@mladjo2505 mladjo2505 force-pushed the otp_multiple_subunits branch from 02655ad to b22795b Compare May 11, 2017 15:34
@mladjo2505
Copy link
Contributor Author

mladjo2505 commented May 11, 2017

  • Make resend work. (3h)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants