acumatica - Releasing AR Credit memo from ContractAPI -
i have had few clients inquire apparent inability release documents ar "invoices , memo" screen not "invoice" types (such credit memos) utilizing contractapi.
looking issue, can indeed see there problem when trying invoke "release" method underlying query generated incorrect resulting in document not found / document not ready release error.
the method being used normal , works fine "inv" type documents:
arinvoice arinvoice = new arinvoice { type = new stringvalue {value = "credit memo"}, referencenbr = new stringvalue {value = *therefnbr*} }; var result = (arinvoice)soapclient.get(arinvoice); invokeresult invokeresult = soapclient.invoke(result, new release()); from can tell, due "currentdocument" view combined defaults on arinvoice_doctype, query being created has result of
where arinvoice.doctype = 'inv' , arinvoice.doctype = 'crm' , arinvoice.refnbr = '{refnbr}' attempting modify view and/or default methods doesn't result progress.
what did find though if modified contract api , added "doctype" , "refnbr" parameter, got around issue.
arinvoice arinvoice = new arinvoice { type = new stringvalue {value = "credit memo"}, referencenbr = new stringvalue {value = *therefnbr*} }; var result = (arinvoice)soapclient.get(arinvoice); release release = new release() { type = result.type, referencenbr = result.referencenbr }; invokeresult invokeresult = soapclient.invoke(result, release); that being said, found if there cacheextensions on arregister, method stops working. in both of cases, there number of user fields on arregister.
we had opened ticket support seeing how ar modules not part of default contract haven't had success getting past "customization, not supported" arguments.
i know ar screens bit touchy contract api there issue somewhere here either in contract subsystem or actual ar invoices screen it's not selecting record before invoking release.
this issue on both latest 5.30 builds latest 6.10 builds.
before start down "rewrite using screenapi" route, has else had similar experience , found workable solution?
Comments
Post a Comment