Skip to content

Commit

Permalink
Swiped stock movement to have the out movement option come first
Browse files Browse the repository at this point in the history
  • Loading branch information
godfreysseki committed Mar 11, 2024
1 parent 367b86c commit deff3fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/Inventory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ public function displayStockMovementTable()
<td>' . $inventory['remarks'] . '</td>
<!-- Add more columns as needed -->
<td>
<button class="btn btn-info btn-sm assessStockMovement" data-id="' . $inventory['movement_id'] . '">Assess</button>
<button class="btn btn-info btn-sm editStockMovement" data-id="' . $inventory['movement_id'] . '">Edit</button>
<button class="btn btn-danger btn-sm deleteStockMovement" data-id="' . $inventory['movement_id'] . '">Delete</button>
</td>
Expand Down Expand Up @@ -397,8 +398,8 @@ public function displayStockMovementForm($movement_id = null)
<div class="form-group">
<label for="movement_type">Movement Type:</label>
<select class="form-control" id="movement_type" name="movement_type" required>
<option value="IN" ' . (($data['movement_type'] === 'IN') ? "selected" : "") . '>IN</option>
<option value="OUT" ' . (($data['movement_type'] === 'OUT') ? "selected" : "") . '>OUT</option>
<option value="IN" ' . (($data['movement_type'] === 'IN') ? "selected" : "") . '>IN</option>
</select>
<div class="invalid-feedback">Please select the movement type.</div>
</div>
Expand Down

0 comments on commit deff3fb

Please sign in to comment.