Project

General

Profile

Edit Copy Actions

Feature #11316

closed

Feature #7963: In product quotation from admin panel will able to update the real time payment using card / pos terminal like landscaping invoice payment flow and send payment notifications based on the flag from admin side

sales creation failed due to UserId

Added by Divya Inapakurthi about 12 hours ago. Updated about 11 hours ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
10/05/2026
Due date:
% Done:

100%

Estimated time:

Description

Error updating payment: Error: Sale validation failed: userId: Path `userId` is required.
at ValidationError.inspect (C:\Users\Lenovo\Desktop\pos main\evergreen_pos_be\node_modules\mongoose\lib\error\validation.js:52:26)
at formatValue (node:internal/util/inspect:877:19)
at inspect (node:internal/util/inspect:404:10)
at formatWithOptionsInternal (node:internal/util/inspect:2402:40)
at formatWithOptions (node:internal/util/inspect:2264:10)
at console.value (node:internal/console/constructor:345:14)
at console.error (node:internal/console/constructor:412:61)
at Object.updatePayment (C:\Users\Lenovo\Desktop\pos main\evergreen_pos_be\src\services\nursery\sale.service.js:802:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async exports.addProductInstallmentAndPayViaAdmin (C:\Users\Lenovo\Desktop\pos main\evergreen_pos_be\src\controllers\ProductQuotation\product-quote.controller.js:9269:11) {
errors: {
userId: ValidatorError: Path `userId` is required.
at validate (C:\Users\Lenovo\Desktop\pos main\evergreen_pos_be\node_modules\mongoose\lib\schemaType.js:1404:13)
at SchemaType.doValidate (C:\Users\Lenovo\Desktop\pos main\evergreen_pos_be\node_modules\mongoose\lib\schemaType.js:1388:7)
at C:\Users\Lenovo\Desktop\pos main\evergreen_pos_be\node_modules\mongoose\lib\document.js:3096:18
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
properties: [Object],
kind: 'required',
path: 'userId',
value: undefined,
reason: undefined,
[Symbol(mongoose#validatorError)]: true
}
},
_message: 'Sale validation failed'
}
[addProductInstallmentAndPayViaAdmin] Sale payment update failed: Sale validation failed: userId: Path `userId` is required.
Fetching image from URL: https://s3.amazonaws.com/evergreenposimages.evergreenfarmsusa.com/1779953837050-converted.webp
PDFKit failed to render logo buffer: Unknown image format.
Generating receipt 🌳🌳🍃🍃🍃: {


Add

Subtasks


Add

Related issues

Edit Copy Actions

Also available in: Atom PDF