Type search words and press enter
Check your pre-qualified business loan offer in TallyCapital with a single click! Based on your financial data, get a tentative offer and apply for a business loan in TallyPrime!
https://help.tallysolutions.com/docs/td9rel54/faq/7659.html

Identifying deletion or cancellation of vouchers using Function LastResult

Presently, this is not possible using Function LastResult since the querybox appearing for deletion/ cancellation of vouchers is controlled by the platform.  Function LastResult only responds to the success or failure of the last executed action within the current Function.

For example , if a Function is invoked and action Delete Object is specified, the immediate $$LastResult will return Yes since Action Delete Object is executed successfully but there is a Query Box displayed by the Platform confirming for deletion, where user might have selected No.  In such case, though the Object is not deleted or cancelled, we might end up getting a result Yes since the preceding Action Delete Object is executed successfully.

To resolve this currently, we can make use of variables for updating the MasterIDs of the Vouchers being selected for deletion/cancellation. Once, the deletion/cancellation action is issued, one need to find the vouchers with Master IDs (from the variable) and if found, one can be assured that the Objects are not deleted else they are deleted.