Skip to content

Commit

Permalink
Allow stock line note to be longer
Browse files Browse the repository at this point in the history
  • Loading branch information
sde1000 committed Feb 16, 2024
1 parent 23dfc0e commit 0fb3263
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions quicktill/stocklines.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,9 @@ def __init__(self, stockline):
super().__init__(7, 60, title=f"Set the note on {stockline.name}",
colour=ui.colour_input)
self.win.drawstr(2, 2, 6, "Note: ", align=">")
self.notefield = ui.editfield(2, 8, 47, f=stockline.note, keymap={
keyboard.K_CLEAR: (self.dismiss, None)})
self.notefield = ui.editfield(
2, 8, 47, f=stockline.note, flen=200,
keymap={keyboard.K_CLEAR: (self.dismiss, None)})
self.b = ui.buttonfield(4, 26, 7, "Set", keymap={
keyboard.K_CASH: (self.enter, None)})
ui.map_fieldlist([self.notefield, self.b])
Expand Down

0 comments on commit 0fb3263

Please sign in to comment.