I have a customization on the Opportunities screen that overrides the Persist() method.Basically the code is iterating the Products.Cache.Cached collection and checking if a particular inventory item is added and also calculating the total amount of the the extended price.If the item does not exist a new line is added and populated with a calculation using the total.This is all working very well, but i've noticed an issue where the Products.Cache.Cached collection contains values from previously loaded records.For example if I have an opportunity loaded on screen with 3 lines with a total of $500, and I select the add new record toolbar button. Once i enter the required fields on the new record and save. The total of 500 is being pulled from the previous opportunity and my new line is added based on the total 500 when it should be 0 because no lines have been added to the new opportunity.Any idea why the cache is not clearing when adding a new record. Any way I can work around it.Tha
I’m attempting to override the ReleaseFromHold action on the POOrderEntry graph, I need to add my own validation before the baseMethod is called.I created the delegate using the following code, but I receive the error message below.I’ve been able to override other action on this same graph using this method, is there something unique about the ReleaseFromHold action? public delegate IEnumerable ReleaseFromHoldDelegate(PXAdapter adapter); [PXOverride] protected IEnumerable ReleaseFromHold(PXAdapter adapter, ReleaseFromHoldDelegate baseMethod) { return adapter.Get(); } 8/18/2023 2:46:05 PM Error:Attempt by method 'Wrapper.PX.Objects.PO.Cst_POOrderEntry.ReleaseFromHoldGeneratedWrapper(PX.Objects.PO.POOrderEntry, PX.Data.PXAdapter)' to access method 'PX.Objects.PO.POOrderEntry_Ext.ReleaseFromHold(PX.Data.PXAdapter, ReleaseFromHoldDelegate)' failed. at Wrapper.PX.Objects.PO.Cst_POOrderEntry.ReleaseFromHoldGeneratedWrapper(POOrderEntry g, PXAda
Good day, I would like to use the same report designer report in both the AR Print/Email Invoice that I just revised in SO Print Invoice.I basically want the user to have the same report used in the Print Forms area. Hate have to redo it. Report version is here Sales Orders I need also here: Your assistance would be greatly appreciated.Thank youEvan
I’m using a dialog for data entry, and I’m having issues initializing the filter view with values before displaying the dialog.I’ve tried several different approaches based on searching the Acumatica source, my latest attempt is in the following code block.The dialog always initially shows without any of the pre set data displayed. If I enter in the additional data and save, a new record is correctly created with the prefilled values.When I debug, I can see the values are updated before the AskExt call, they just do not display on form.If I run the action a second time after the first record is updated, the dialog shows the previously input data including the prefilled values.I seems like this should work, I’m handling for the multiple calls for the AskExt by checking the for Answer == None and only initializing the fiilter in that case. I’ve tried it with and without passing the RefreshRequired parameter as true. Same results. Action - this is in POOrderEntry extension publ
Trying to convert the code below for the 2022 R1 release. The PX.Objects.CT.CTBillEngine.ARContractInvoiceEntry graph has been removed, but I cannot find what it should be replaced with.The code is updating some custom fields on the Invoice generated from the Run Contract Billing action. public delegate void BillDelegate(Nullable<Int32> contractID, Nullable<DateTime> date); [PXOverride] public void Bill(Nullable<Int32> contractID, Nullable<DateTime> date, BillDelegate baseMethod) { PXGraph.InstanceCreated.AddHandler<PX.Objects.CT.CTBillEngine.ARContractInvoiceEntry>((graph) => { graph.RowInserted.AddHandler<ARInvoice>((sender, e) => { ARInvoice inv = (ARInvoice)e.Row; // pull value from custom UsrCustPO field Contract ContractRow = Contract.PK.Find(Base, contractID); // extension name: ContractExt
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.