Good Evening,
i’d like to know if i am doing something wrong in my thinking,
or if its something else. Let’s start with the general game plan.
Game Plan
We have created several new Status to symbolice the process after a Sales Order is finished.
For our purpose i tried to start with two new Status.
Y - Billed
X - Partly Billed
My plan is to change the Status based on one field:
SOOrder.UnbilledOrderTotal
This field alone gives me much information to work with,
therefore i created several conditions to use in workflow actions.
(Ignore the placeholder Names)
The Conditions
IsInvoiceCreatedFully | UnbilledOrderTotal = 0
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/99430993-0e86-404a-8f2b-3d3516e64984.png)
IsInvoiceCreatedPartial | UnbilledOrderTotal > 0 AND UnbilledOrderTotal <> &OrderTotal]
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/82c09078-73c3-450d-a1dc-cc5b2887622d.png)
Here u can see i check if UnbilledOrderTotal is higher 0 AND if UnbilledOrderTotal is not the same as OrderTotal.
IsInvoicesDeleted | UnbilledOrderTotal = aOrderTotal]
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/346b9b63-e154-4d04-a6ab-86e960193f55.png)
If UnbilledOrderTotal equals OrderTotal
In my eyes, these should work.
Actions
As described in this wonderful PDF https://openuni.acumatica.com/wp-content/uploads/2017/08/W150_Workflows_2021R2.pdf i tried to create the Auto-Run Action under Example 2.1.4
For that i created several Actions the way its described in the PDF.
AutoAssign-Beendet (Beendet => Finished)
AutoAssign-InFaktura (In Faktura => Billed)
AutoAssign-T-InFaktura (Teilweise in Faktura => Partly Billed)
Those are all Workflow Actions.
Following the Example i’ve added the Actions as Transition to the Status “Completed” to the Status “Partly Billed” (for Example).
Workflow
This is how it looks inside of Status C (Completed)
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/da53d2b0-5e91-40ae-96b4-b95291e1cc37.png)
And this is the Transition itself.
The Trigger Name is correct (Referring to the Action AutoAssign-T-InFaktura)
Target State is Correct also. Nothing else to do here.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/c12a88c2-860a-4b9c-a134-0a717304430c.png)
I tried this with several different Conditions,
but it wont reliable switch the Status. Sometimes it switches to “Billed”,
sometimes it just stays at Completed - Never to “Partly Billed” tho. With my other Transitions (Partly Billed/Billed -> Completed) its the same. If i delete the Invoice, it just stays at the current Status and does not go back to Completed.
I dont really see or know why, so if someone could help,
i’d appreciate it.
Greetings