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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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