Page 1 of 1

Work Order "On Close" event

PostPosted: Tue Oct 21, 2025 2:23 pm
by DamonR
Hi Guys,

I’m doing a plugin that needs to trigger an action when a work orders status is changed to closed.

I’m running into issues detecting this. It sometimes fires too early, for example when the form opens or when default data loads, and in other cases it doesn’t trigger at all when the status is actually set to Closed.

I’m testing under JiwaFinancials.Jiwa.JiwaBillOfMaterialsUI.WorkOrder.WorkOrder using StatusChanged, Saved, or AfterFieldChanged.

I need a single reliable event that represents “the Work Order has just transitioned to Closed”, preferably post-commit.

Re: Work Order "On Close" event  Topic is solved

PostPosted: Tue Oct 21, 2025 2:34 pm
by Mike.Sheen
There is a property, OriginalStatus of the Work Order object - that will be set to something other than Statuses.Closed, and the Status property will be set to Statuses.Closed in the SaveEnd event - which occurs after all database changes committed.

Re: Work Order "On Close" event

PostPosted: Tue Oct 21, 2025 6:37 pm
by DamonR
Thanks Mike. All good now :)