-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add confirmation modal before employees are put on the payment waiting list - Update E2E test for payroll_process closes #7459
- Loading branch information
Showing
7 changed files
with
129 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
client/src/modules/multiple_payroll/modals/waitingListConfirmation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<form name="ModalForm" bh-submit="ModalCtrl.submit(ModalForm)" novalidate> | ||
<div class="modal-header"> | ||
<ol class="headercrumb"> | ||
<li class="static" translate>FORM.BUTTONS.PUT_ON_WAITING</li> | ||
</ol> | ||
</div> | ||
|
||
<div class="modal-body"> | ||
<div class="alert alert-warning"> | ||
<i class="fa fa-exclamation-triangle"></i> | ||
<span translate translate-values="ModalCtrl.alertI18nValues" translate-sanitize-strategy="'sce'">FORM.WARNINGS.PUTTING_WAITING_LIST</span> | ||
</div> | ||
|
||
<div class="alert alert-info"> | ||
<i class="fa fa-exclamation-circle"></i> | ||
<span translate translate-values="ModalCtrl.alertI18nValues" translate-sanitize-strategy="'sce'">FORM.INFO.DO_WANT_PUT_WAITING_LIST</span> | ||
</div> | ||
|
||
<!--description --> | ||
<dl> | ||
<dt translate>FORM.LABELS.DESCRIPTION</dt> | ||
</dl> | ||
|
||
<table class="table table-condensed"> | ||
<tbody> | ||
<tr> | ||
<td translate>FORM.INFO.PAYMENT_PERIOD</td> | ||
<td>{{ModalCtrl.employeesNumber}}</td> | ||
</tr> | ||
<tr> | ||
<td translate>FORM.INFO.NUMBER_EMPLOYEES_SELECTED</td> | ||
<td>{{ModalCtrl.paiementPeriodLabel}}</td> | ||
</tr> | ||
<tr> | ||
<td translate>FORM.LABELS.TOTAL</td> | ||
<td>{{ ModalCtrl.totalNetSalary | currency:ModalCtrl.enterprise.currency_id }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" ng-click="ModalCtrl.cancel()" translate> | ||
FORM.BUTTONS.CLOSE | ||
</button> | ||
|
||
<bh-loading-button loading-state="ModalForm.$loading" disabled="ModalCtrl.hasPaymentsAgainstInvoice"> | ||
<span translate>FORM.BUTTONS.CONFIRM</span> | ||
</bh-loading-button> | ||
</div> | ||
</form> |
25 changes: 25 additions & 0 deletions
25
client/src/modules/multiple_payroll/modals/waitingListConfirmation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
angular.module('bhima.controllers') | ||
.controller('ModalWaitingListConfirmationController', ModalWaitingListConfirmationController); | ||
|
||
ModalWaitingListConfirmationController.$inject = [ | ||
'data', 'bhConstants', 'SessionService', '$uibModalInstance', | ||
]; | ||
|
||
function ModalWaitingListConfirmationController( | ||
data, bhConstants, Session, Instance, | ||
) { | ||
const vm = this; | ||
vm.Constants = bhConstants; | ||
vm.submit = submit; | ||
vm.cancel = () => Instance.close(false); | ||
|
||
vm.enterprise = Session.enterprise; | ||
|
||
vm.employeesNumber = data.employeesNumber; | ||
vm.paiementPeriodLabel = data.paiementPeriodLabel; | ||
vm.totalNetSalary = data.totalNetSalary; | ||
|
||
function submit() { | ||
Instance.close(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters