payservedb 7.8.9 → 7.9.0
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
|
@@ -10,7 +10,6 @@ const powerMeterPowerChargeSchema = new mongoose.Schema({
|
|
|
10
10
|
type: String,
|
|
11
11
|
required: true
|
|
12
12
|
},
|
|
13
|
-
// KPLC Power Charges
|
|
14
13
|
fuelCostCharge: {
|
|
15
14
|
type: Number,
|
|
16
15
|
required: true
|
|
@@ -42,12 +41,46 @@ const powerMeterPowerChargeSchema = new mongoose.Schema({
|
|
|
42
41
|
totalCharge: {
|
|
43
42
|
type: Number,
|
|
44
43
|
required: true
|
|
44
|
+
},
|
|
45
|
+
energyCharge: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 0
|
|
48
|
+
},
|
|
49
|
+
powerFactorSurcharge: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: 0
|
|
52
|
+
},
|
|
53
|
+
tariff: {
|
|
54
|
+
type: String,
|
|
55
|
+
enum: [
|
|
56
|
+
'Domestic Lifeline',
|
|
57
|
+
'Domestic Ordinary 1',
|
|
58
|
+
'Domestic Ordinary 2',
|
|
59
|
+
'Commercial Low Voltage',
|
|
60
|
+
'Commercial Medium Voltage',
|
|
61
|
+
'Industrial Low Voltage',
|
|
62
|
+
'Industrial Medium Voltage',
|
|
63
|
+
'Industrial High Voltage'
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
assumedConsumedUnit: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: 0
|
|
69
|
+
},
|
|
70
|
+
repPercentage: {
|
|
71
|
+
type: Number,
|
|
72
|
+
default: 5
|
|
73
|
+
},
|
|
74
|
+
vatPercentage: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 16
|
|
45
77
|
}
|
|
46
|
-
|
|
47
78
|
}, {
|
|
48
79
|
timestamps: true
|
|
49
80
|
});
|
|
50
81
|
|
|
82
|
+
powerMeterPowerChargeSchema.index({ facilityId: 1, yearMonth: 1 }, { unique: true });
|
|
83
|
+
|
|
51
84
|
const PowerMeterPowerCharge = mongoose.model('PowerMeterPowerCharge', powerMeterPowerChargeSchema);
|
|
52
85
|
|
|
53
|
-
module.exports = PowerMeterPowerCharge;
|
|
86
|
+
module.exports = PowerMeterPowerCharge;
|