示例#1
0
        /// <summary>
        /// Example of how to add a ExternalDetail
        /// </summary>
        /// <param name="orgCode"></param>
        /// <param name="Description">The Description that you want to attach the ExternalDetail to</param>
        /// <param name="ExternalGLAccount">This is the user-configurable External GLAccount code the ExternalDetail takes place in</param>
        /// <param name="ExternalGLDesc">This should be set to the ExternalGLDesc of the ExternalDetail </param>
        /// <param name="Currency">This should be set to the Currency of the ExternalDetail </param>
        public ExternalDetailsModel Add()
        {
            var myExternalDetail = new ExternalDetailsModel
            {
                OrgCode           = "10",
                Description       = "B-Facility Fees Mystern",
                ExternalGLAccount = "0000-600-60-21015",
                ExternalGLDesc    = "B-Facility Fees Mystern",
                GLAccount         = "123456789",
                GLSubAccount      = "",
                Resource          = 5042,
                Currency          = "USD"
            };

            return(APIUtil.AddExternalDetailWithoutConflictCheck(USISDKClient, myExternalDetail));
        }