tango-api-schema 2.0.147 → 2.0.148

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.0.147",
3
+ "version": "2.0.148",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -42,12 +42,6 @@ const invoiceSchema = new mongoose.Schema(
42
42
  totalAmount:{
43
43
  type:Number
44
44
  },
45
- revisedAmount:{
46
- type:Number
47
- },
48
- discount:{
49
- type:Number
50
- },
51
45
  paymentMethod:{
52
46
  type:String
53
47
  },
@@ -97,6 +91,11 @@ const invoiceSchema = new mongoose.Schema(
97
91
  discountPercentage: {
98
92
  type:Number
99
93
  },
94
+ paymentStatus:{
95
+ type:String,
96
+ default:'unpaid',
97
+ enum: ['paid','unpaid']
98
+ },
100
99
  },{
101
100
  strict: true,
102
101
  versionKey: false,
@@ -41,7 +41,15 @@ const paymentAccountSchema = new mongoose.Schema(
41
41
  },
42
42
  branch:{
43
43
  type: String,
44
- }
44
+ },
45
+ credit:{
46
+ type: Number,
47
+ default:0
48
+ },
49
+ currency: {
50
+ type: String,
51
+ enum: [ 'dollar', 'inr' ],
52
+ },
45
53
  },
46
54
  {
47
55
  strict: true,