acumatica - I'm getting "Cannot generate the next number for the AR Last Reference Number sequence" error when adding payment for sales order through web API -


when trying add payment sales order through web service api, got "px.data.pxsetpropertyexception: error: error occurred while processing field payment ref. : cs error #30: cannot generate next number ar last reference number sequence..". code follows:

  ar302000content ar302000 = context.ar302000getschema();   context.ar302000clear();    list<command> cmds = new list<command>();     //add header info   cmds.add(new value { value = " <new>", linkedcommand = ar302000.paymentsummary.referencenbr });   cmds.add(new value { value = "payment", linkedcommand = ar302000.paymentsummary.type, commit = true });   cmds.add(new value { value = "a123456", linkedcommand = ar302000.paymentsummary.customer });   cmds.add(new value { value = "main", linkedcommand = ar302000.paymentsummary.location });   cmds.add(new value { value = "creditcard", linkedcommand = ar302000.paymentsummary.paymentmethod });   cmds.add(new value { value = "300.00", linkedcommand = ar302000.paymentsummary.paymentamount});   cmds.add(new value { value = "t123456", linkedcommand = ar302000.paymentsummary.paymentref, commit = true });   cmds.add(new value { value = "99000001", linkedcommand = ar302000.paymentsummary.cashaccount });    cmds.add(ar302000.orderstoapply.servicecommands.newrow);   cmds.add(new value { value = "00001234", linkedcommand = ar302000.orderstoapply.ordernbr });   cmds.add(new value { value = "so", linkedcommand = ar302000.orderstoapply.ordertype });   cmds.add(new value { value = "300.00", linkedcommand = ar302000.orderstoapply.ordertotal });   cmds.add(new value { value = "300.00", linkedcommand = ar302000.orderstoapply.appliedtoorder });    cmds.add(ar302000.actions.save);    ar302000content[] ar302000content = context.ar302000submit(cmds.toarray()); 

i checked "numbering sequences" configuration , looks payment related numbering sequence "arpayment", correct , plus believe "arpayment" "referencenbr" anyway.

there doesn't seem numbering sequence "paymentref", seems error message complaining about. based on "help" document, "payment ref" should able accept given string, did seems not working...

anybody knows wrong?

i found problem - when created payment, part of mandatory requirements, assigned cash account, associated 1 of "payment method" - credit card, however, reason, in cash account page, "credit card" payment method specified "ar - suggest next number", have no idea means, honest. after unchecked checkbox, became ok. guess checkbox means "payment ref" field on "payment , application" screen needs auto-generated, it's confusing there mentioning "payment ref.".

anyway, problem has been resolved , of responses!


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -