unchained
unchained copied to clipboard
[FEATURE REQUEST] Quotations for multiple products
Introduction currently request for quotation can be done for only one product at a time. but it's possible there might be scenarios where a user can make a request for a quotation request to more than one product.
Describe the solution you'd like
add a new mutation to make requests for multiple product quotation requests or update the existing mutation.requestQuotation to accept an array of productid and configurations
Describe the design of the solution in detail Current quotation request implementation
requestQuotation(productId: $productId, configuration: $configuration): Quotation!
updated quotation request mutation
input QuotationRequestInput {
productId: $productId
configuration: $configuration
}
type Quotation {
_id: ID!
user: User!
products: [Product!]! //array of products
status: QuotationStatus!
created: DateTime!
expires: DateTime
updated: DateTime
isExpired(referenceDate: Timestamp): Boolean
quotationNumber: String
fullfilled: DateTime
rejected: DateTime
country: Country
currency: Currency
configuration: [ProductConfigurationParameter!]
documents(type: QuotationDocumentType = PROPOSAL): [Media!]!
}
requestQuotation(request: [QuotationRequestInput!]!): Quotation!