Reference > Shop flow URLs > Order Management subsystem URLs > Order quotation URLs
OrderQuotationCreate URL
Creates quotation orders, if the specified OrderQuotationRel objects still exists.
URL structure
- http:// host/ path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path.
name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />
Parameter values
- quotationData
- The valid value of this parameter is defined by calling the messaging subsystem method. This single valued parameter denotes the information representing a received quotation.
Behavior
- Parse the specified quotationData to discover the following information, which will be included in the created quotation Order:
- Check whether the required OrderQuotationRelId does not refer to an existing OrderQuotationRel object, try rechecking it for up to 20 seconds. If the OrderQuotationRel object still does not exist, ignore the request (return).
- The currency of the quotation is required.
- For each quotation item (identified by an original OrderItemId and no original OrderItemComponentListId), following are required:
- Required: The original OrderItemId. If the original OrderItem no longer exists, ignore the request (return).
- Optional: The supplierPartNumber and supplierData.
- Required: The quoted price.
- Optional: The external UOMCode for quantity amounts in this quotation item.
- Required: The quantity for the price quotation.
- Optional: The quantity that was requested.
- Optional: The quantity available for purchase.
- Optional: The estimated availability time.
- If the OrderQuotationRelId refers to an OrderQuotationRel that already has a quotationOrder, set the quotationOrder to null, and delete the quotationOrder.
- Create an order with status attribute I, and set the quotationOrder attribute of the OrderQuotationRel object to its OrderId. If the quotationSource FulfillmentCenter has a quotationStore, create the order in the quotationStore childStoreId attribute is not null, create the order in the store it specifies. Otherwise, create the order in the store of the shopcart. When creating the quotation Order:
- Copy the Order level information from the shopcart Order.
- To convert from quoted quantities to BaseItem quantities used in the OrderItem neededQuantity attribute, use the externalUOMStandard and the QTYUNITMAP table to determine the quoted QuantityUnit, then convert from that QuantityUnit to the BaseItem quantityMeasure, and then divide by the BaseItem quantityMultiple. To convert from these neededQuantity units to the normalized quantity used in the OrderItem quantity attribute, multiply by the BaseItem quantityMultiple attribute, convert from BaseItem quantityMeasure units to CatalogEntryShipping quantityMeasure units, round up to the nearest multiple of the CatalogEntryShipping quantityMultiple attribute, and divide by the CatalogEntryShipping nominalQuantity.
- Convert the quantity for the price quotation to a normalized quantity, as described above, and then set the unit price (the OrderItem price attribute) to the quoted price divided by the normalized quantity for the price quotation.
- Set the unit price (the OrderItem price attribute) to the quoted price multiplied by the CatalogEntryShipping nominalQuantity and divided by the quantity for the price (converted to the CatalogEntryShipping quantityMeasure). The unit price is rounded appropriately using the CurrencyManager.
- Set the OrderItem prepareFlags attributes to indicate "quotation".
- Convert the quantity that was requested, or, if no quantity was supplied, convert the quantity for the price quotation, and set it to neededQuantity units. Round up to the nearest integer to arrive at the NeededQuantity. Then convert from NeededQuantity units to set the normalized quantity attribute. Then convert the normalized quantity to the NeededQuantity (multiply by the CatalogEntryShipping nominalQuantity, convert to BaseItem quantityMeasure, divide by the BaseItem quantityMultiple and round to the nearest integer) and set the NeededQuantity attribute.
If supplied, convert the quantity available for purchase to a BaseItem quantity, and store it in the availableQuantity attribute. Otherwise, copy the neededQuantity to the availableQuantity. If the quantity available for purchase is not supplied, set the quantity available to the quantity used to calculate the neededQuantity. Convert the quantity available for purchase to a BaseItem quantity and set the availableQuantity attribute. Round down to the nearest integer to arrive at the availableQuantity attribute value.
- Set the shippingAddress and shippingMode to be the same as the value in the OrderItem indicated by the original OrderItemId.
- Set the correlationGroup attribute to be the same as the correlationGroup attribute of the original OrderItemId.
- Set the supplierPartNumber and supplierData attributes.
- Set the OrderItem tradingAgreementId attribute to the tradingAgreementId attribute of the OrderQuotationRel object.
- If the item is a substitution item, set the OrderItems.LineItemType to "ALT".
- When creating a quotation OrderItem representing a DynamicKit, then for each quotation component item, create a new component item in the OICOMPLIST table:
- Set the OrderItemId to indicate the new quotation OrderItem.
- Set the inventoryQuantity attribute to the returned quantity, converted to BaseItem units.
- Set the catalogQuantity to the inventoryQuantity, converted from BaseItem units to CatalogEntryShipping nominalQuantity units, divided by the nominalQuantity.
- Set the unit price and currency to null (only the quoted price of the whole DynamicKit is available).
- Set the configurationId to null. Note: The configurationId is normally supplied by an external configurator. Since the quotation can change the components of a configuration, it would be incorrect to keep the same configurationId. Leaving it null indicates that this configuration arrived as part of a quotation, not from an external configurator.
- Set the required catalogEntryId and specifiedItemId attributes to be the same as in the OrderItemComponentList item specified by the original OrderItemConponentListId.
- Set the supplierPartNumber and supplierData attributes.
Related concepts
Related reference
Order Management subsystem URLs