payservedb 7.9.0 → 7.9.1

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/index.js CHANGED
@@ -204,6 +204,7 @@ const models = {
204
204
  PowerNegativeBalance: require("./src/models/power_meter_negative_balance"),
205
205
  PowerCommandQueue: require("./src/models/power_meter_command_queue"),
206
206
  PowerNotification: require("./src/models/power_sms_notification"),
207
+ PowerPrepaidOrder: require("./src/models/power_prepaid_orders"),
207
208
  FacilityWalletTransactionsMetadata: require("./src/models/facilityWalletTransactionsMetadata"),
208
209
  NegativeBalance: require("./src/models/water_meter_negative_amounts"),
209
210
  MasterWorkplan: require("./src/models/master_workplan"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "7.9.0",
3
+ "version": "7.9.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,79 @@
1
+ const mongoose = require('mongoose');
2
+
3
+ const PowerPrepaidOrderSchema = new mongoose.Schema({
4
+ orderNo: {
5
+ type: String,
6
+ required: true,
7
+ unique: true
8
+ },
9
+ energy_charge: {
10
+ type: String,
11
+ required: true
12
+ },
13
+ fuel_cost_charge: {
14
+ type: String,
15
+ required: true
16
+ },
17
+ forex_adjustment_charge: {
18
+ type: String,
19
+ required: true
20
+ },
21
+ inflation_adjustment_charge: {
22
+ type: String,
23
+ required: true
24
+ },
25
+ warma_levy_charge: {
26
+ type: String,
27
+ required: true
28
+ },
29
+ erc_levy_charge: {
30
+ type: String,
31
+ required: true
32
+ },
33
+ rep_levy_charge: {
34
+ type: String,
35
+ required: true
36
+ },
37
+ power_factor_surchage: {
38
+ type: Number,
39
+ default: 0
40
+ },
41
+ vat: {
42
+ type: String,
43
+ required: true
44
+ },
45
+ total_amount: {
46
+ type: Number,
47
+ required: true
48
+ },
49
+ year_month: {
50
+ type: String,
51
+ required: true
52
+ },
53
+ added_on: {
54
+ type: String,
55
+ required: true
56
+ },
57
+ time: {
58
+ type: String,
59
+ required: true
60
+ },
61
+ customer_type: {
62
+ type: String,
63
+ required: true
64
+ },
65
+ units: {
66
+ type: Number,
67
+ required: true
68
+ },
69
+ tenant_id: {
70
+ type: mongoose.Schema.Types.ObjectId,
71
+ ref: 'Customer',
72
+ }
73
+ }, {
74
+ timestamps: true
75
+ });
76
+
77
+ const PowerPrepaidOrder = mongoose.model('PowerPrepaidOrder', PowerPrepaidOrderSchema);
78
+
79
+ module.exports = PowerPrepaidOrder;