Closed steveblamey closed 2 years ago
The controller has an action that gets the transfer details based on the selected stock item, ::getTransferDetails
. When the form is initially loaded and a stock item has not been chosen, the first item with a balance in the from location is selected as a default.
The default item is not specified for the stock item on view template. The initial state of the form shows the first stock item in the dropdown, that has no stock balance. The balance shown is from another item, that should be selected as the initial default for the dropdown.
Updating the template to add a selected value to the dropdown prevents this problem.
Action: STTransactionController::_new
The form shows an incorrect balance on initial load.