@jetthai/cuora 1.1.341-rank-2 → 1.1.341-rank-3

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.341-rank-3](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-2...v1.1.341-rank-3) (2025-03-10)
6
+
5
7
  ### [1.1.341-rank-2](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-1...v1.1.341-rank-2) (2025-03-06)
6
8
 
7
9
  ### [1.1.341-rank-1](https://github.com/jetthai/cuora-module/compare/v1.1.341...v1.1.341-rank-1) (2025-03-05)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.341-rank-2",
3
+ "version": "1.1.341-rank-3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -132,10 +132,13 @@ export default function (request) {
132
132
  const currentRound = event.data?.currentRound || []
133
133
  // 取得結算週期選單列表
134
134
  const cycleOptions = cycleMapping.slice(0, currentRound.length)
135
- // 如果是月結算,則加入全部選項
136
- if (cycle === 'MONTHLY') cycleOptions.push('ALL')
137
135
  // 取得每週期的歷史期數選單列表
138
136
  const roundOptions = roundProcess(currentRound)
137
+ // 如果是月結算,則加入全部選項
138
+ if (cycle === 'MONTHLY') {
139
+ cycleOptions.push('ALL')
140
+ roundOptions.ALL = roundOptions.MONTHLY
141
+ }
139
142
  return {
140
143
  options: { cycle: cycleOptions, round: roundOptions },
141
144
  round: currentRound[currentRound.length - 1],