tango-api-schema 2.6.8 → 2.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.6.8",
3
+ "version": "2.6.9",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -50,8 +50,13 @@ const billingSchema = new mongoose.Schema(
50
50
  },
51
51
  proRata: {
52
52
  type: String,
53
- enum: ['before15','after15'],
54
- default: 'after15'
53
+ // 'prorate' = always bill for actual working days (no bump).
54
+ // 'flat' = always bill for the full month regardless of working days.
55
+ // 'before15' / 'after15' = legacy values, still accepted for backward
56
+ // compatibility. Backend reads before15 as flat and after15 as
57
+ // prorate at invoice-generation time.
58
+ enum: ['prorate','flat','before15','after15'],
59
+ default: 'prorate'
55
60
  },
56
61
  paymentCategory: {
57
62
  type: String,