I am not sure whether I broke the flow and introduced this bug. When I am editing a PO and confirming the PO (see Fig 2). 

The changes get updated in database however the save button is still there. But the PO gets confirmed (See fig 3).

I need the save button to be replaced with "Edit" button (By default it was like that).

Can anyone suggest What could be wrong or any settings stuff??

Any help is appreciated..
![FIg 1](https://i.stack.imgur.com/vwJVJ.png)
![Fig 2](https://i.stack.imgur.com/TXJhM.png)
![enter image description here](https://i.stack.imgur.com/0uNGk.png)