payservedb 9.5.4 → 9.5.6

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
@@ -94,6 +94,7 @@ const models = {
94
94
  Levy: require("./src/models/levy"),
95
95
  LevyType: require("./src/models/levytype"),
96
96
  LevyContract: require("./src/models/levycontract"),
97
+ ContractPaymentReceipt: require("./src/models/levy_payment_receipt"),
97
98
  DepositSchema: require("./src/models/levy_deposits"),
98
99
  Invoice: require("./src/models/invoice"),
99
100
  CombinedInvoice: require("./src/models/combined_invoice"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "9.5.4",
3
+ "version": "9.5.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -79,6 +79,17 @@ const bookingReservationSchema = new mongoose.Schema({
79
79
  required: true,
80
80
  unique: true
81
81
  },
82
+ // Which staff member created this booking - always an explicit manual
83
+ // selection (never auto-filled from the logged-in user), so the invoice
84
+ // can show "You were served by <name>".
85
+ servedBy: {
86
+ type: mongoose.Schema.Types.ObjectId,
87
+ ref: 'User'
88
+ },
89
+ servedByName: {
90
+ type: String,
91
+ default: ''
92
+ },
82
93
  guestInfo: {
83
94
  name: {
84
95
  type: String,
@@ -84,7 +84,10 @@ const visitLogSchema = new mongoose.Schema({
84
84
  type: mongoose.Schema.Types.ObjectId,
85
85
  ref: 'Facility',
86
86
  required: true // Ensures a facilityId is always provided
87
- }
87
+ },
88
+ idAttachment: {
89
+ type: String,
90
+ },
88
91
  }, {
89
92
  timestamps: true // Automatically add createdAt and updatedAt fields
90
93
  });