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