@shisyamo4131/air-guard-v2-schemas 1.3.1-dev.24 → 1.3.1-dev.25

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Billing.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "1.3.1-dev.24",
3
+ "version": "1.3.1-dev.25",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/Billing.js CHANGED
@@ -153,7 +153,9 @@ export default class Billing extends FireModel {
153
153
  // 消費税額を計算
154
154
  Object.defineProperty(this, "taxAmount", {
155
155
  get() {
156
- return Math.floor(this.subtotal * 0.1); // 10% 切り捨て
156
+ return this.operationResults.reduce((sum, item) => {
157
+ return sum + (item.tax || 0);
158
+ }, 0);
157
159
  },
158
160
  set() {},
159
161
  enumerable: true,