From dd66083f45b7ce9a15043ff0338e7b487cf38a27 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 22 Jul 2025 11:44:32 +0100 Subject: [PATCH] fix typo for gks sendPhoneInvoice function when creating a `phone invoice` the function was checking if `gks-phone` was started, but I believe the script folder name is default `gksphone` --- shared/phones.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/phones.lua b/shared/phones.lua index 3f9b1a1..cf3ee5c 100644 --- a/shared/phones.lua +++ b/shared/phones.lua @@ -171,7 +171,7 @@ function sendPhoneInvoice(data) end }, { - name = "gks-phone", + name = "gksphone", send = function(mailData) -- Defensive check for required fields local required = { "billedCitizenid", "amount", "job", "name", "billerCitizenid", "label" } @@ -197,7 +197,6 @@ function sendPhoneInvoice(data) } } - -- Check each phone system in order and use the first active one. for _, phone in ipairs(phoneSystems) do if isStarted(phone.name) then