An eConnect transaction type that decribes a sale order.
The SOP Transaction schema allows you to use commissions, distributions, header level or detailed taxes, markdown amounts, and items with lot numbers. The guidelines to complete these operations are as follows:
Commissions Use the <taSopHderIvcInsert> XML node to control how commissions are calculated. To let eConnect calculate commission amounts, set the autocreate commissions (CREATECOMM) element to 1. To manually calculate commission amounts, set CREATECOMM to 0 . If CREATECOMM is set to 0, you must use the <taSopCommissions> XML node to specify the commission amount
Manual updates to commissions are not supported. If you attempt to manually update commissions, an error will occur and the transaction will fail. A future release of eConnect will include this functionality. |
Distributions Use the <taSopHdrIvcInsert> XML node to control whether distributions are created. To allow default distributions to be created, set the create distribution (CREATEDIST) element to 1. The CREATEDIST element defaults to a value of 1. To manually create distributions, set CREATEDIST to 0. If CREATEDIST is set to 0, use the <taSopDistribution> XML node to specify the distributions.
Manual updates to distributions are not supported. If you attempt to manually update distributions, an error will occur and the transaction will fail. A future release of eConnect will include this functionality. |
Taxes Use the <taSopHdrIvcInsert> XML node to control how taxes are calculated. To use header level taxes, set the header level taxes (USINGHEADERLEVELTAXES) element to 1. To use detailed taxes, set USINGHEADERLEVELTAXES to 0. The default value for USINGHEADERLEVELTAXES is 0. If you set USINGHEADERLEVELTAXES to 1, be aware of the following:
<taSopLineIvcTaxInsert> LNITMSEQ = 16384,/*Required-Line item sequence*/ TAXDTLID = 'TAX IN ITEM',/*Required-the example uses 10% tax included in item price */ SALESAMT = 454.55, STAXAMNT = 45.45 <taSopHdrIvcInsert TAXAMNT = 0, SUBTOTAL = 500, /*Required*/ DOCAMNT = 500, /*Required*/ USINGHEADERLEVELTAXES = 1, CREATETAXES = 0
Tax engine eConnect includes a tax engine that allows you to automatically create taxes. If you use the tax engine, you no longer need to specify tax information in the tax nodes. The <taSopHdrIvcInsert> XML node contains six elements that control the tax engine. To use the tax engine, be aware of the following:
Manual updates to taxes are not supported. If you attempt to manually update taxes, an error will occur and the transaction will fail. A future release of eConnect will include this functionality. |
You may still use the tax nodes to calculate taxes. However, you no longer need to pass a sequence record of zero through the tax nodes. You only need a sequence record of zero when header level taxes are used. If you specify the taxes, the CREATETAXES element must be set to 0. |
Markdown amounts If you set the markdown percent (MRKDNPCT) of the <taSopLineIvcInsert> XML node, you must set the DEFPRICING element of the <taSopHdrIvcInsert> XML node to 1. This allows eConnect to calculate the DOCAMNT, SUBTOTAL, and mark down amount (MRKDNAMT) elements for the <taSopHdrIvcInsert> XML node.
When using the MRKDNAMT element of the <taSopLineIvcInsert> XML node, you should be aware that the SOP line and SOP header calculate the markdown amounts differently. The line markdown amount is per quantity. The header markdown amount is the total of the markdown amounts from each line item.
Lot numbers eConnect allows you to auto-fulfill lot numbers when the inventory item is tracked as a lot item. When you use the <taSopLotAuto> XML node, it must be called before the <taSopLineIvcInsert> XML node. Set the AUTOALLOCATELOT element of the <taSopLineIvcInsert> XML node with one of the following values:
AUTOALLOCATELOT |
Description |
---|---|
0 |
Auto: Fulfillment of lot numbers occurs automatically. This option uses the existing lot in IV00300. The <taSopLotAuto> XML node is not called. |
1 |
Manual: Fulfillment of lot numbers uses the lot numbers specified by the <taSopLotAuto> XML node. |
2 |
Mixed: Fulfillment of lot numbers uses the lot numbers specified by the <taSopLotAuto> XML node. Remaining quantities use the lots from IV00300. |
The lot schema nodes also exist for purchase order receipts, inventory transactions, and inventory transfers.) |
Pricing engine The eConnect pricing engine allows you to calculate standard or extended pricing using the default pricing (DEFPRICING), extended pricing (DEFEXTPRICE), and the include extended pricing promotion (IncludePromo) elements of the <taSopLineIvcInsert> XML node and the DEFPRICING element of the <taSopHdrIvcInsert> XML node.
Business logic A change to the taCreateSopPaymentInsertRecord stored procedure’s business logic changed how eConnect handles deposits and recognizes revenue. The change allows credit card orders to credit the card at the time the order ships. This allows you to transfer a portion of the credit card payment when the invoice is created. In addition, the revenue for the payment will be recognized only when the invoice is posted and the product ships.
The stored procedure that handles the header uses the header document ID (DOCID) element to determine what appears on the header of the order or invoice. The DOCID element passed to the header does not affect what happens on the line. The business logic that uses the DOCID element of the line nodes exists in the stored procedure that handles lines. If the DOCID element is not specified in the line node, the stored procedure uses a default value. The settings for the default DOCID value determines how item allocation and fulfillment occurs.
Updating SOP documents To update an existing SOP documents, you must comply with the following restrictions:
DOCID ORIGNUMB ORIGTYPE TAXAMNT MRKDNAMT CUSTNMBR SUBTOTAL DOCAMNT USER2ENT ADVPMNTS FRTTXAMT MSCTXAMT ORDRDATE MSTRNUMB APLYWITH WITHHAMT SALEDATE USINGHEADERLEVELTAXES COMMAMNT CURNCYID
Quantity shortages To use the quantity shortage option (QtyShrtOpt) element of the <taSopLineIvcInsert> XML node, you must remember the following restrictions:
<eConnect> <SOPTransactionType> <eConnectProcessInfo /> <taRequesterTrxDisabler_Items> <taRequesterTrxDisabler /> </taRequesterTrxDisabler_Items> <taUpdateCreateItemRcd /> <taUpdateCreateCustomerRcd /> <taCreateCustomerAddress_Items> <taCreateCustomerAddress /> </taCreateCustomerAddress_Items> <taSopSerial_Items> <taSopSerial /> </taSopSerial_Items> <taSopLotAuto_Items> <taSopLotAuto /> </taSopLotAuto_Items> <taSopLineIvcInsert_Items> <taSopLineIvcInsert /> </taSopLineIvcInsert_Items> <taSopLineIvcInsertComponent_Items> <taSopLineIvcInsertComponent /> </taSopLineIvcInsertComponent_Items> <taSopTrackingNum_Items> <taSopTrackingNum /> </taSopTrackingNum_Items> <taSopCommissions_Items> <taSopCommissions /> </taSopCommissions_Items> <taSopLineIvcTaxInsert_Items> <taSopLineIvcTaxInsert /> </taSopLineIvcTaxInsert_Items> <taCreateSopPaymentInsertRecord_Items> <taCreateSopPaymentInsertRecord /> </taCreateSopPaymentInsertRecord_Items> <taSopUserDefined /> <taSopDistribution_Items> <taSopDistribution /> </taSopDistribution_Items> <taAnalyticsDistribution_Items> <taAnalyticsDistribution /> </taAnalyticsDistribution_Items> <taSopMultiBin_Items> <taSopMultiBin /> </taSopMultiBin_Items> <taSopHdrIvcInsert /> <taSopToPopLink /> <taSopUpdateCreateProcessHold /> <taCreateSOPTrackingInfo /> <taMdaUpdate_Items> <taMdaUpdate /> </taMdaUpdate_Items> </SOPTransactionType> </eConnect>