payservedb 6.8.3 → 6.8.4
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
|
@@ -147,6 +147,90 @@ const facilityInvoiceContractSchema = new mongoose.Schema({
|
|
|
147
147
|
type: Boolean,
|
|
148
148
|
default: true,
|
|
149
149
|
},
|
|
150
|
+
header: {
|
|
151
|
+
companyName: {
|
|
152
|
+
type: String,
|
|
153
|
+
required: true,
|
|
154
|
+
trim: true,
|
|
155
|
+
},
|
|
156
|
+
companyAddress: {
|
|
157
|
+
type: String,
|
|
158
|
+
required: true,
|
|
159
|
+
trim: true,
|
|
160
|
+
},
|
|
161
|
+
companyPhone: {
|
|
162
|
+
type: String,
|
|
163
|
+
trim: true,
|
|
164
|
+
},
|
|
165
|
+
companyEmail: {
|
|
166
|
+
type: String,
|
|
167
|
+
trim: true,
|
|
168
|
+
lowercase: true,
|
|
169
|
+
match: [/^\S+@\S+\.\S+$/, "Please enter a valid email address"],
|
|
170
|
+
},
|
|
171
|
+
companyWebsite: {
|
|
172
|
+
type: String,
|
|
173
|
+
trim: true,
|
|
174
|
+
match: [/^https?:\/\/[^\s$.?#].[^\s]*$/, "Please enter a valid URL"],
|
|
175
|
+
},
|
|
176
|
+
taxNumber: {
|
|
177
|
+
type: String,
|
|
178
|
+
trim: true,
|
|
179
|
+
},
|
|
180
|
+
logo: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: null,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
footer: {
|
|
186
|
+
bankName: {
|
|
187
|
+
type: String,
|
|
188
|
+
trim: true,
|
|
189
|
+
},
|
|
190
|
+
accountName: {
|
|
191
|
+
type: String,
|
|
192
|
+
trim: true,
|
|
193
|
+
},
|
|
194
|
+
accountNumber: {
|
|
195
|
+
type: String,
|
|
196
|
+
trim: true,
|
|
197
|
+
},
|
|
198
|
+
swiftCode: {
|
|
199
|
+
type: String,
|
|
200
|
+
trim: true,
|
|
201
|
+
},
|
|
202
|
+
paymentTerms: {
|
|
203
|
+
type: String,
|
|
204
|
+
trim: true,
|
|
205
|
+
default: "Net 30 days",
|
|
206
|
+
},
|
|
207
|
+
latePaymentFee: {
|
|
208
|
+
type: String,
|
|
209
|
+
trim: true,
|
|
210
|
+
},
|
|
211
|
+
taxRate: {
|
|
212
|
+
type: String,
|
|
213
|
+
trim: true,
|
|
214
|
+
},
|
|
215
|
+
additionalNotes: {
|
|
216
|
+
type: String,
|
|
217
|
+
trim: true,
|
|
218
|
+
},
|
|
219
|
+
supportEmail: {
|
|
220
|
+
type: String,
|
|
221
|
+
trim: true,
|
|
222
|
+
lowercase: true,
|
|
223
|
+
match: [/^\S+@\S+\.\S+$/, "Please enter a valid email address"],
|
|
224
|
+
},
|
|
225
|
+
supportPhone: {
|
|
226
|
+
type: String,
|
|
227
|
+
trim: true,
|
|
228
|
+
},
|
|
229
|
+
termsAndConditions: {
|
|
230
|
+
type: String,
|
|
231
|
+
trim: true,
|
|
232
|
+
},
|
|
233
|
+
},
|
|
150
234
|
createdAt: {
|
|
151
235
|
type: Date,
|
|
152
236
|
default: Date.now,
|