First a little bit of background. The main company is setup with Z-C$ (Canadian currency) as the functional currency and we do sales in the US in Z-US$ as well. We take deposits on orders before they are produced and then the balance when completed. I have been using eConnect to insert a sales order with payments. If I attempt to insert a sales order with a Z-US$ currency and a DOCDATE different than the sales order DOCDATE I get the error below. I also noticed that the GP application itself disables the payment date and posting date controls in the multicurrency scenario. When I look at taSopHdrIvcInsert my guess is that it does this for currency exchange. I asked the users how they manage to enter payments with a different date than the sales order DOCDATE and they said that they change the sales order DOCDATE, enter the payment and then change the sales order DOCDATE back. Unfortunately I can't do that through eConnect or I am not aware of a way to do that and I have to put all payments on the sales order as a single xml file so that won't work with multiple payments with different dates. Any thoughts/ideas? Is there a way to turn off those restrictions?
Microsoft.Dynamics.GP.eConnect.eConnectException: Sql procedure error codes returned:
Error Number = 1321 Stored Procedure= taSopHdrIvcInsert Error Description = The payment doc date must = the trx doc date for MC trxs
Node Identifier Parameters: taSopHdrIvcInsert
SOPNUMBE = ORD17627
SOPTYPE = 2
Related Error Code Parameters for Node : taSopHdrIvcInsert
DOCDATE = 2013-04-22
<taSopHdrIvcInsert>
<SOPTYPE>2</SOPTYPE>
<DOCID>REGULAR</DOCID>
<SOPNUMBE>ORDxxxxx</SOPNUMBE>
<ORIGNUMB />
<TAXSCHID />
<FRTSCHID />
<SHIPMTHD>TRUCK/COM CARRI</SHIPMTHD>
<TAXAMNT>0.00</TAXAMNT>
<LOCNCODE>PLANT</LOCNCODE>
<DOCDATE>2013-04-22</DOCDATE>
<FREIGHT>484.55</FREIGHT>
<CUSTNMBR>CASHUS</CUSTNMBR>
<CSTPONBR>Qxxxxx-1</CSTPONBR>
<ShipToName>Replaced Name</ShipToName>
<ADDRESS1>Replaced Address</ADDRESS1>
<ADDRESS2 />
<ADDRESS3 />
<CNTCPRSN>Replaced</CNTCPRSN>
<FAXNUMBR>00000000000000</FAXNUMBR>
<CITY>Lake Bluff</CITY>
<STATE>IL</STATE>
<ZIPCODE>60044</ZIPCODE>
<COUNTRY>United States</COUNTRY>
<PHNUMBR1>55555555555000</PHNUMBR1>
<PHNUMBR2>00000000000000</PHNUMBR2>
<PHNUMBR3>00000000000000</PHNUMBR3>
<SUBTOTAL>1540.77</SUBTOTAL>
<DOCAMNT>2025.32</DOCAMNT>
<PYMTRCVD>1012.66</PYMTRCVD>
<USER2ENT>Replaced</USER2ENT>
<BACHNUMB>WEBORDERS</BACHNUMB>
<FRTTXAMT>0.00</FRTTXAMT>
<ORDRDATE>2013-04-22</ORDRDATE>
<CREATETAXES>0</CREATETAXES>
<DEFTAXSCHDS>0</DEFTAXSCHDS>
<CURNCYID>Z-US$</CURNCYID>
<ReqShipDate>2013-04-29</ReqShipDate>
<CKCreditLimit>0</CKCreditLimit>
<UpdateExisting>0</UpdateExisting>
<CMMTTEXT>Need Van</CMMTTEXT>
</taSopHdrIvcInsert>
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.CreateTransactionEntity(String ConnectionString, String sXML)