@jetthai/cuora 1.1.206 → 1.1.207
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.207](https://github.com/jetthai/cuora-module/compare/v1.1.206...v1.1.207) (2023-11-23)
|
|
6
|
+
|
|
5
7
|
### [1.1.206](https://github.com/jetthai/cuora-module/compare/v1.1.205...v1.1.206) (2023-11-21)
|
|
6
8
|
|
|
7
9
|
### [1.1.205](https://github.com/jetthai/cuora-module/compare/v1.1.204...v1.1.205) (2023-11-21)
|
package/package.json
CHANGED
|
@@ -268,8 +268,9 @@ export default function (request, context) {
|
|
|
268
268
|
},
|
|
269
269
|
isSubmittable: (context, event) => {
|
|
270
270
|
const { selectedAmount, userAccountNumber, userAccountName, userAccountBranchCode, depositTime, receipt } = context
|
|
271
|
-
const { branchCodeEnable = '0' } = context.siteConfig
|
|
272
|
-
const defaultCheck =
|
|
271
|
+
const { branchCodeEnable = '0', bankDepositProofIsOptional = '1' } = context.siteConfig
|
|
272
|
+
const defaultCheck =
|
|
273
|
+
selectedAmount && userAccountNumber && userAccountName && depositTime && (receipt || bankDepositProofIsOptional === '0')
|
|
273
274
|
|
|
274
275
|
if (branchCodeEnable === '1') {
|
|
275
276
|
return defaultCheck && userAccountBranchCode
|
|
@@ -382,8 +382,8 @@ export default function (request) {
|
|
|
382
382
|
},
|
|
383
383
|
isSubmittable: (context, event) => {
|
|
384
384
|
const { amount, userAccountNumber, userAccountName, userAccountBranchCode, depositTime, receipt } = context
|
|
385
|
-
const { branchCodeEnable = '0' } = context.siteConfig
|
|
386
|
-
const defaultCheck = amount && userAccountNumber && userAccountName && depositTime && receipt
|
|
385
|
+
const { branchCodeEnable = '0', bankDepositProofIsOptional = '1' } = context.siteConfig
|
|
386
|
+
const defaultCheck = amount && userAccountNumber && userAccountName && depositTime && (receipt || bankDepositProofIsOptional)
|
|
387
387
|
if (branchCodeEnable === '1') {
|
|
388
388
|
return defaultCheck && userAccountBranchCode
|
|
389
389
|
} else {
|