payservedb 9.5.4 → 9.5.5
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 +1 -0
- package/package.json +1 -1
- package/src/models/bookingreservation.js +11 -0
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
|
@@ -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,
|