From c81944c559b2994fd894e8e03d155c0ff085b3a7 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 13 Apr 2021 01:30:40 -0500 Subject: [PATCH] Fix wrong var name --- scripts/server/business.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/server/business.js b/scripts/server/business.js index f465e362..009e6531 100644 --- a/scripts/server/business.js +++ b/scripts/server/business.js @@ -86,7 +86,7 @@ function loadBusinessLocationsFromDatabase(businessId) { let dbQueryString = ""; if(dbConnection) { - bbQueryString = `SELECT * FROM biz_loc WHERE biz_loc_biz = ${businessId}`; + dbQueryString = `SELECT * FROM biz_loc WHERE biz_loc_biz = ${businessId}`; dbQuery = queryDatabase(dbConnection, dbQueryString); if(dbQuery) { if(dbQuery.numRows > 0) { @@ -623,6 +623,7 @@ function orderItemForBusinessCommand(command, params, client) { getPlayerData(client).businessOrderBusiness = businessId; getPlayerData(client).businessOrderItem = itemType; getPlayerData(client).businessOrderValue = value; + getPlayerData(client).businessOrderCost = orderTotalCost; showPlayerPrompt(client, AG_PROMPT_BIZORDER, `Ordering ${amount} ${getPluralForm(getItemTypeData(itemType).name)} (${getItemValueDisplay(itemType, value)}) at $${pricePerItem} each will cost a total of $${orderTotalCost}`, "Business Order Cost"); }