@stssocialst-stp/fe-payroll 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +16 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5798,6 +5798,7 @@ function PaymentPendingPayrollPaymentDialog(_ref) {
|
|
|
5798
5798
|
var classes = _ref.classes,
|
|
5799
5799
|
payroll = _ref.payroll,
|
|
5800
5800
|
fetchPayroll = _ref.fetchPayroll,
|
|
5801
|
+
closePayroll = _ref.closePayroll,
|
|
5801
5802
|
payrollDetail = _ref.payrollDetail;
|
|
5802
5803
|
var modulesManager = useModulesManager();
|
|
5803
5804
|
var _useState = useState((_payrollDetail$id = payrollDetail === null || payrollDetail === void 0 ? void 0 : payrollDetail.id) !== null && _payrollDetail$id !== void 0 ? _payrollDetail$id : null),
|
|
@@ -5865,6 +5866,10 @@ function PaymentPendingPayrollPaymentDialog(_ref) {
|
|
|
5865
5866
|
setTotalReconciledBillAmount(reconciledAmount);
|
|
5866
5867
|
}
|
|
5867
5868
|
}, [isOpen, payroll]);
|
|
5869
|
+
var closePayrollCallback = function closePayrollCallback() {
|
|
5870
|
+
closePayroll(payrollDetail, formatMessageWithValues('payroll.mutation.closeLabel', mutationLabel(payrollDetail)));
|
|
5871
|
+
handleClose();
|
|
5872
|
+
};
|
|
5868
5873
|
var downloadPayrollData = function downloadPayrollData(payrollUuid, payrollName) {
|
|
5869
5874
|
downloadPayroll(payrollUuid, payrollName);
|
|
5870
5875
|
};
|
|
@@ -5970,7 +5975,15 @@ function PaymentPendingPayrollPaymentDialog(_ref) {
|
|
|
5970
5975
|
margin: '0 16px',
|
|
5971
5976
|
marginBottom: '15px'
|
|
5972
5977
|
}
|
|
5973
|
-
}, formatMessage('payroll.summary.download'))
|
|
5978
|
+
}, formatMessage('payroll.summary.download')), /*#__PURE__*/React.createElement(Button, {
|
|
5979
|
+
onClick: closePayrollCallback,
|
|
5980
|
+
variant: "contained",
|
|
5981
|
+
color: "primary",
|
|
5982
|
+
style: {
|
|
5983
|
+
margin: '0 16px',
|
|
5984
|
+
marginBottom: '15px'
|
|
5985
|
+
}
|
|
5986
|
+
}, formatMessage('payroll.summary.approveAndClose'))), /*#__PURE__*/React.createElement("div", {
|
|
5974
5987
|
style: {
|
|
5975
5988
|
"float": 'right',
|
|
5976
5989
|
paddingRight: '16px'
|
|
@@ -5993,7 +6006,8 @@ var mapStateToProps$1 = function mapStateToProps(state) {
|
|
|
5993
6006
|
};
|
|
5994
6007
|
var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
5995
6008
|
return bindActionCreators({
|
|
5996
|
-
fetchPayroll: fetchPayroll
|
|
6009
|
+
fetchPayroll: fetchPayroll,
|
|
6010
|
+
closePayroll: closePayroll
|
|
5997
6011
|
}, dispatch);
|
|
5998
6012
|
};
|
|
5999
6013
|
var PayrollPendingPayrollSummary = connect(mapStateToProps$1, mapDispatchToProps$1)(PaymentPendingPayrollPaymentDialog);
|