I understand that courses should be completed, but in my case the requirement for application quickly changed and I have not got much time. That is the reason why I am asking for help in my topics
Hi @Ivan
We can override the release action and write our logic based on the requirement.
public class APPaymentEntry_Extension : PXGraphExtension<APPaymentEntry> { public delegate void ReleaseDocDelegate(List<APRegister> list, bool isMassProcess); >PXOverride] public static void ReleaseDoc(List<APRegister> list, bool isMassProcess, ReleaseDocDelegate baseDetails) { // Write your logic baseDetails(list, isMassProcess); } }
Hi @Ivan
We can override the release action and write our logic based on the requirement.
public class APPaymentEntry_Extension : PXGraphExtension<APPaymentEntry> { public delegate void ReleaseDocDelegate(List<APRegister> list, bool isMassProcess); PXOverride] public static void ReleaseDoc(List<APRegister> list, bool isMassProcess, ReleaseDocDelegate baseDetails) { // Write your logic baseDetails(list, isMassProcess); } }
Hi jinin
Thank you for the provided sample of code
I need to clarify one moment
I check the Check Items by payment Method ID field
It’s system name is paymentMethodID
When I try to perform check by this field it is accessible for the entity which you have provided
How can I access this field and other Checks and Payments fields ?
For example if I do it in this way :
Here I can access Checks and Payments fields and perform my check, but such code will be workable only with “SAVE” button and I need to do same thing with RELEASE button
Hi @Ivan The above-mentioned IF condition is wrong. Please try with below code.
The “ReleaseDocProc” method is common method that would be invoked when payment are released directly from screen or processing screen.
Feel free to post for further assistance on this.
Hi @deebhane
Thank you for the provided samples of code.
I receive such error for Method Release in the first example
With second Method ReleaseDocProc everything seems to be okay
As you have mentioned above - I can use any of these methods, I will use the second
I need to clarify two moments with it. The first one - how to extract data for Check and Applications Item inside this method ? For example PaymentMethodID field is absent in doc variable
How to extract Check and Applications fields and columns from Documents to Apply table ?
The second moment is it enough if I just end method in such way ?
I mean is there any data that must obligatory assigned or returned ? I need to clarify it in order omit the corruption of the Acumatica project
Hi @Ivan
Yes, It's a static method. You cant use the Base graph here, We need to write BQL and get the value