I have an application I am creating that uses EConnect to insert and update info in GP. When I import customers into GP I want to include a credit limit. Basically I am using taUpdateCreateCustomerRcd and I am setting the credit limit in the following way: customer.CRLMTTYP = 2; customer.CRLMTAMT = 1000; customer.CRLMTPAM = 0; customer.CRLMTPER = 0; For some reason this never inserts the credit limit as $1000 and always leaves it as Unlimited, is there something I am missing to get this working? Here is the rest of the code I use when I insert a customer just for reference: RMCustomerMasterType customertype = new RMCustomerMasterType(); taUpdateCreateCustomerRcd customer = new taUpdateCreateCustomerRcd(); customer.CUSTNMBR = "Test123"; customer.CUSTNAME = "Test"; customer.SHRTNAME = "Test"; customer.ADRSCODE = "PRIMARY"; customer.ADDRESS1 = "123 Test St"; customer.CITY = "Toronto"; customer.STATE = "ON"; customer.PHNUMBR1 = "5555555555"; customer.FAX = ""; customer.INACTIVE = 0; customer.TAXSCHID = ""; customer.STMTNAME = "Test"; customer.PRSTADCD = "PRIMARY"; customer.PRBTADCD = "PRIMARY"; customer.STADDRCD = "PRIMARY"; customer.SLPRSNID = ""; customer.SALSTERR = ""; customer.COMMENT1 = ""; customer.COMMENT2 = ""; customer.PYMTRMID = "Net 15"; customer.CUSTCLAS = "DEFAULT"; customer.BALNCTYP = 0; customer.BANKNAME = ""; customer.CHEKBKID = ""; customer.CRLMTTYP = 2; customer.CRLMTAMT = 1000; customer.CRLMTPAM = 0; customer.CRLMTPER = 0; customer.CURNCYID = ""; customer.DEFCACTY = 0; customer.DISGRPER = 0; customer.DUEGRPER = 0; customer.FINCHDLR = 0; customer.FNCHATYP = 0; customer.FNCHPCNT = 0; customer.KPCALHST = 1; customer.KPDSTHST = 1; customer.KPERHIST = 1; customer.KPTRXHST = 1; customer.MINPYDLR = 0; customer.MINPYPCT = 0; customer.MINPYTYP = 0; customer.MXWOFTYP = 1; customer.MXWROFAM = 0; customer.Post_Results_To = 0; customer.PRCLEVEL = ""; customer.RATETPID = ""; customer.Revalue_Customer = 1; customer.SHIPMTHD = ""; customer.STMTCYCL = 5; customer.UpdateIfExists = 1; customer.UseCustomerClass = 0;
↧