You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message=string.format('You received a commission check of $%s when %s %s paid a bill of $%s.', commission, Ply.PlayerData.charinfo.firstname, Ply.PlayerData.charinfo.lastname, amount)
297
-
}
298
-
elseifnotSenderPlyandConfig.BillingCommissions[society] then
299
-
invoiceMailData= {
300
-
sender='Billing Department',
301
-
subject='Bill Paid',
302
-
message=string.format('%s %s paid a bill of $%s', Ply.PlayerData.charinfo.firstname, Ply.PlayerData.charinfo.lastname, amount)
message=string.format('You received a commission check of $%s when %s %s paid a bill of $%s.', commission, Ply.PlayerData.charinfo.firstname, Ply.PlayerData.charinfo.lastname, amount)
306
+
}
307
+
elseifnotSenderPlyandConfig.BillingCommissions[society] then
308
+
invoiceMailData= {
309
+
sender='Billing Department',
310
+
subject='Bill Paid',
311
+
message=string.format('%s %s paid a bill of $%s', Ply.PlayerData.charinfo.firstname, Ply.PlayerData.charinfo.lastname, amount)
312
+
}
313
+
end
314
+
ifPly.Functions.RemoveMoney('bank', amount, 'paid-invoice') then
315
+
MySQL.query('DELETE FROM phone_invoices WHERE id = ? and citizenid = ?', { invoiceId, Ply.PlayerData.citizenid })
MySQL.query('DELETE FROM phone_invoices WHERE id = ?', { invoiceId })
320
-
localinvoices=MySQL.query.await('SELECT * FROM phone_invoices WHERE citizenid = ?', { Ply.PlayerData.citizenid })
321
-
ifinvoices[1] ~=nilthen
322
-
Invoices=invoices
331
+
ifPlythen
332
+
localexists=MySQL.query.await('select count(1) as count FROM phone_invoices WHERE id = ? and citizenid = ? and candecline = ?', { invoiceId, Ply.PlayerData.citizenid, 1 })
0 commit comments