Skip to content

Commit

Permalink
Changed SUPPLY column to STOCK
Browse files Browse the repository at this point in the history
It's called STOCK elsewhere through-out the system and SUPPLY is an
overloaded term generally referring to EITHER demand or supply, see?
  • Loading branch information
kfsone committed Nov 27, 2014
1 parent b1e2c72 commit 16757cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions commands/update_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"\n"
"'Demand' is disabled unless you use '--use-demand'.\n"
"\n"
"'Supply' should be:\n"
"'Stock' should be:\n"
" '-' or '0' if no units are available,\n"
" empty or '?' if SUPPLY is over 10,000,\n"
" or the SUPPLY number followed by L, M or H.\n"
" empty or '?' if STOCK is over 10,000,\n"
" or the STOCK number followed by L, M or H.\n"
"E.g.\n"
" 1L, 50M, 3000H.\n"
"\n"
Expand Down Expand Up @@ -255,7 +255,7 @@ def validate(self, widget):
if re.match(r'^(-|\?|\d+[LlMmHh\?])$', value):
return True
mbox.showerror(
"Invalid supply value",
"Invalid stock value",
"If the item is in-supply, this field should "
"be the number of units followed by one of 'L', "
"'M' or 'H'.\n"
Expand Down Expand Up @@ -406,7 +406,7 @@ def addHeading(text):
addHeading("Paying")
addHeading("Asking")
addHeading("Demand")
addHeading("Supply")
addHeading("Stock")
self.endRow()


Expand Down Expand Up @@ -511,8 +511,8 @@ def describeSupply(units, level):
itemName = row["name"]
paying, asking = row["paying"], row["asking"]
demand = describeSupply(row["demandUnits"], row["demandLevel"])
supply = describeSupply(row["stockUnits"], row["stockLevel"])
self.addItemRow(row["ID"], cat, itemName, paying, asking, demand, supply)
stock = describeSupply(row["stockUnits"], row["stockLevel"])
self.addItemRow(row["ID"], cat, itemName, paying, asking, demand, stock)


for row in self.itemDisplays:
Expand Down

0 comments on commit 16757cd

Please sign in to comment.