tango-api-schema 2.6.7 → 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 +1 -1
- package/schema/billing.model.js +17 -2
package/package.json
CHANGED
package/schema/billing.model.js
CHANGED
|
@@ -50,8 +50,13 @@ const billingSchema = new mongoose.Schema(
|
|
|
50
50
|
},
|
|
51
51
|
proRata: {
|
|
52
52
|
type: String,
|
|
53
|
-
|
|
54
|
-
|
|
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,
|
|
@@ -62,6 +67,16 @@ const billingSchema = new mongoose.Schema(
|
|
|
62
67
|
type: String,
|
|
63
68
|
enum: ['dollar','inr','singaporedollar','euro'],
|
|
64
69
|
},
|
|
70
|
+
// Drives invoice-generation tax behavior. 'domestic' runs the
|
|
71
|
+
// existing GST/IGST/CGST/SGST logic. 'international' suppresses
|
|
72
|
+
// tax lines entirely (the tax array is left empty so totalAmount
|
|
73
|
+
// equals subtotal). Defaults to 'domestic' so existing records
|
|
74
|
+
// keep their current behavior on read.
|
|
75
|
+
taxCalculationType: {
|
|
76
|
+
type: String,
|
|
77
|
+
enum: ['domestic','international'],
|
|
78
|
+
default: 'domestic'
|
|
79
|
+
},
|
|
65
80
|
isInstallationOneTime: {
|
|
66
81
|
type: Boolean,
|
|
67
82
|
default: false
|