@stssocialst-stp/fe-payroll 0.2.0 → 0.2.2

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 CHANGED
@@ -2848,7 +2848,7 @@ function downloadPayroll(payrollId, payrollFileName) {
2848
2848
  }
2849
2849
 
2850
2850
  function PaymentApproveForPaymentDialog(_ref) {
2851
- var _payrollDetail$id, _bistpSummary$reconci, _bistpSummary$total, _bistpSummary$pending, _bistpSummary$rejecte, _bistpSummary$skipped, _bistpSummary$sendFai;
2851
+ var _payrollDetail$id;
2852
2852
  var classes = _ref.classes,
2853
2853
  payroll = _ref.payroll,
2854
2854
  closePayroll = _ref.closePayroll,
@@ -2945,14 +2945,12 @@ function PaymentApproveForPaymentDialog(_ref) {
2945
2945
  var downloadPayrollData = function downloadPayrollData(payrollUuid, payrollName) {
2946
2946
  downloadPayroll(payrollUuid, payrollName);
2947
2947
  };
2948
- var isBistp = (payrollDetail === null || payrollDetail === void 0 ? void 0 : payrollDetail.paymentMethod) === PAYMENT_METHOD.STRATEGY_BISTP_PAYMENT;
2949
- var bistpSummary = (payroll === null || payroll === void 0 ? void 0 : payroll.bistpSummary) || {};
2950
2948
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
2951
2949
  onClick: handleOpen,
2952
2950
  variant: "contained",
2953
2951
  color: "primary",
2954
2952
  className: classes.button
2955
- }, isBistp ? formatMessage('payroll.bistp.viewSummary') : formatMessage('payroll.viewReconciliationSummary')), /*#__PURE__*/React.createElement(Dialog, {
2953
+ }, formatMessage('payroll.viewReconciliationSummary')), /*#__PURE__*/React.createElement(Dialog, {
2956
2954
  open: isOpen,
2957
2955
  onClose: handleClose,
2958
2956
  PaperProps: {
@@ -2971,83 +2969,7 @@ function PaymentApproveForPaymentDialog(_ref) {
2971
2969
  }
2972
2970
  }, formatMessageWithValues('payroll.reconciliationSummary', {
2973
2971
  payrollName: payrollDetail.name
2974
- })), /*#__PURE__*/React.createElement(DialogContent, null, isBistp ? /*#__PURE__*/React.createElement(Grid, {
2975
- container: true,
2976
- spacing: 2,
2977
- style: {
2978
- marginBottom: 16
2979
- }
2980
- }, /*#__PURE__*/React.createElement(Grid, {
2981
- item: true,
2982
- xs: 3
2983
- }, /*#__PURE__*/React.createElement(Paper, {
2984
- elevation: 3,
2985
- style: {
2986
- padding: '20px',
2987
- backgroundColor: '#e8f5e9'
2988
- }
2989
- }, /*#__PURE__*/React.createElement(Typography$1, {
2990
- variant: "h6",
2991
- gutterBottom: true
2992
- }, formatMessage('payroll.bistp.reconciled')), /*#__PURE__*/React.createElement(Typography$1, {
2993
- variant: "body1"
2994
- }, (_bistpSummary$reconci = bistpSummary.reconciled) !== null && _bistpSummary$reconci !== void 0 ? _bistpSummary$reconci : 0, " / ", (_bistpSummary$total = bistpSummary.total) !== null && _bistpSummary$total !== void 0 ? _bistpSummary$total : 0))), /*#__PURE__*/React.createElement(Grid, {
2995
- item: true,
2996
- xs: 3
2997
- }, /*#__PURE__*/React.createElement(Paper, {
2998
- elevation: 3,
2999
- style: {
3000
- padding: '20px',
3001
- backgroundColor: '#fff3e0'
3002
- }
3003
- }, /*#__PURE__*/React.createElement(Typography$1, {
3004
- variant: "h6",
3005
- gutterBottom: true
3006
- }, formatMessage('payroll.bistp.pending')), /*#__PURE__*/React.createElement(Typography$1, {
3007
- variant: "body1"
3008
- }, (_bistpSummary$pending = bistpSummary.pending) !== null && _bistpSummary$pending !== void 0 ? _bistpSummary$pending : 0))), /*#__PURE__*/React.createElement(Grid, {
3009
- item: true,
3010
- xs: 3
3011
- }, /*#__PURE__*/React.createElement(Paper, {
3012
- elevation: 3,
3013
- style: {
3014
- padding: '20px',
3015
- backgroundColor: '#ffebee'
3016
- }
3017
- }, /*#__PURE__*/React.createElement(Typography$1, {
3018
- variant: "h6",
3019
- gutterBottom: true
3020
- }, formatMessage('payroll.bistp.rejected')), /*#__PURE__*/React.createElement(Typography$1, {
3021
- variant: "body1"
3022
- }, (_bistpSummary$rejecte = bistpSummary.rejected) !== null && _bistpSummary$rejecte !== void 0 ? _bistpSummary$rejecte : 0))), /*#__PURE__*/React.createElement(Grid, {
3023
- item: true,
3024
- xs: 3
3025
- }, /*#__PURE__*/React.createElement(Paper, {
3026
- elevation: 3,
3027
- style: {
3028
- padding: '20px',
3029
- backgroundColor: '#e3f2fd'
3030
- }
3031
- }, /*#__PURE__*/React.createElement(Typography$1, {
3032
- variant: "h6",
3033
- gutterBottom: true
3034
- }, formatMessage('payroll.bistp.skippedNib')), /*#__PURE__*/React.createElement(Typography$1, {
3035
- variant: "body1"
3036
- }, (_bistpSummary$skipped = bistpSummary.skippedNib) !== null && _bistpSummary$skipped !== void 0 ? _bistpSummary$skipped : 0))), /*#__PURE__*/React.createElement(Grid, {
3037
- item: true,
3038
- xs: 3
3039
- }, /*#__PURE__*/React.createElement(Paper, {
3040
- elevation: 3,
3041
- style: {
3042
- padding: '20px',
3043
- backgroundColor: '#fce4ec'
3044
- }
3045
- }, /*#__PURE__*/React.createElement(Typography$1, {
3046
- variant: "h6",
3047
- gutterBottom: true
3048
- }, formatMessage('payroll.bistp.sendFailed')), /*#__PURE__*/React.createElement(Typography$1, {
3049
- variant: "body1"
3050
- }, (_bistpSummary$sendFai = bistpSummary.sendFailed) !== null && _bistpSummary$sendFai !== void 0 ? _bistpSummary$sendFai : 0)))) : /*#__PURE__*/React.createElement(Grid, {
2972
+ })), /*#__PURE__*/React.createElement(DialogContent, null, "(", /*#__PURE__*/React.createElement(Grid, {
3051
2973
  container: true,
3052
2974
  spacing: 2
3053
2975
  }, /*#__PURE__*/React.createElement(Grid, {
@@ -3092,7 +3014,7 @@ function PaymentApproveForPaymentDialog(_ref) {
3092
3014
  gutterBottom: true
3093
3015
  }, formatMessage('payroll.summary.deliveredReconciliation')), /*#__PURE__*/React.createElement(Typography$1, {
3094
3016
  variant: "body1"
3095
- }, totalReconciledBillAmount)))), /*#__PURE__*/React.createElement("div", {
3017
+ }, totalReconciledBillAmount)))), ")}", /*#__PURE__*/React.createElement("div", {
3096
3018
  style: {
3097
3019
  backgroundColor: '#DFEDEF'
3098
3020
  }
@@ -3855,13 +3777,13 @@ function PayrollsPage() {
3855
3777
  return /*#__PURE__*/React.createElement("div", {
3856
3778
  className: classes.page
3857
3779
  }, /*#__PURE__*/React.createElement(Helmet, {
3858
- title: formatMessage('paymentPoint.page.title')
3780
+ title: formatMessage('payroll.page.title')
3859
3781
  }), rights.includes(RIGHT_PAYROLL_SEARCH) && /*#__PURE__*/React.createElement(PayrollSearcher$1, null), rights.includes(RIGHT_PAYROLL_CREATE) && withTooltip(/*#__PURE__*/React.createElement("div", {
3860
3782
  className: classes.fab
3861
3783
  }, /*#__PURE__*/React.createElement(Fab, {
3862
3784
  color: "primary",
3863
3785
  onClick: onCreate
3864
- }, /*#__PURE__*/React.createElement(AddIcon, null))), formatMessage('createButton.tooltip')));
3786
+ }, /*#__PURE__*/React.createElement(AddIcon, null))), formatMessage('tooltip.createButton')));
3865
3787
  }
3866
3788
 
3867
3789
  function PayrollPaymentFilesSearcher(_ref) {
@@ -4216,7 +4138,7 @@ function ApprovedPayrollsPage() {
4216
4138
  return /*#__PURE__*/React.createElement("div", {
4217
4139
  className: classes.page
4218
4140
  }, /*#__PURE__*/React.createElement(Helmet, {
4219
- title: formatMessage('paymentPoint.page.title')
4141
+ title: formatMessage('payroll.page.title')
4220
4142
  }), rights.includes(RIGHT_PAYROLL_SEARCH) && /*#__PURE__*/React.createElement(PayrollSearcherApproved$1, {
4221
4143
  classes: classes
4222
4144
  }));
@@ -4625,7 +4547,7 @@ function ReconciledPayrollsPage() {
4625
4547
  return /*#__PURE__*/React.createElement("div", {
4626
4548
  className: classes.page
4627
4549
  }, /*#__PURE__*/React.createElement(Helmet, {
4628
- title: formatMessage('paymentPoint.page.title')
4550
+ title: formatMessage('payroll.page.title')
4629
4551
  }), rights.includes(RIGHT_PAYROLL_SEARCH) && /*#__PURE__*/React.createElement(PayrollSearcherReconciled$1, {
4630
4552
  classes: classes
4631
4553
  }));
@@ -6196,7 +6118,7 @@ function PendingPayrollsPage() {
6196
6118
  return /*#__PURE__*/React.createElement("div", {
6197
6119
  className: classes.page
6198
6120
  }, /*#__PURE__*/React.createElement(Helmet, {
6199
- title: formatMessage('paymentPoint.page.title')
6121
+ title: formatMessage('payroll.page.title')
6200
6122
  }), rights.includes(RIGHT_PAYROLL_SEARCH) && /*#__PURE__*/React.createElement(PayrollSearcherPending$1, {
6201
6123
  classes: classes
6202
6124
  }));