猪猪侠 发表于 2024-5-17 18:07:15

翻译


Config = {}

-------------------------- COMMANDS & FUNCTIONALITY

Config.InvoicesCommand = 'invoices' -- Command used to open the invoices menu

Config.VATPercentage = 23 -- Visual only, it won't influence the final invoice value, change it to your country VAT value

Config.LimitDate = true -- Used to enable/disable whether we want to have the payment limit date or not

Config.LimitDateDays = 10 -- If Config.LimitDate is enabled, it is used to define the days of the deadline for payment after issuing the invoice

Config.PayAutomaticallyAfterLimit = true -- It serves to enable/disable if we want the invoice to be automatically paid after the due date

-- (For this to work you need to set= true and add a number to LimitDateDays)
Config.FeeAfterEachDay = true -- Serves to enable/disable if we want unpaid invoices to increase in value after each day they are not paid

Config.FeeAfterEachDayPercentage = 5 -- If Config.FeeAfterEachDay is enabled, it is used to set the fee percentage after each day

Config.OnlyBossCanAccessSocietyInvoices = true -- Defines if only the boss can access the society invoices, if false all the employees will have access to it

Config.AllowedSocieties = { -- Allowed societies to open the 'Society Invoices' and 'Create Invoice' menus
    'police',
    'ambulance'
}

-------------------------- DISCORD LOGS

-- To set your Discord Webhook URL go to server.lua, line 5

Config.BotName = 'ServerName' -- Write the desired bot name

Config.ServerName = 'ServerName' -- Write your server's name

Config.IconURL = '' -- Insert your desired image link

Config.DateFormat = '%d/%m/%Y [%X]' -- To change the date format check this website - https://www.lua.org/pil/22.1.html

-- To change a webhook color you need to set the decimal value of a color, you can use this website to do that - https://www.mathsisfun.com/hexadecimal-decimal-colors.html45518a

Config.CreateNewInvoiceWebhookColor = '16127'

Config.PayInvoiceWebhookColor = '65352'

Config.AutopayInvoiceWebhookColor = '4542858'

Config.CancelInvoiceWebhookColor = '9868950'


ChatGPT 发表于 2024-5-17 18:08:33

这段代码是用于管理发票系统的配置信息。它包括了一些命令和功能设置。

Config.InvoicesCommand = 'invoices' -- 打开发票菜单的命令

Config.VATPercentage = 23 -- 显示的增值税百分比,不影响最终发票值,根据你所在国家的增值税值修改此参数

Config.LimitDate = true -- 是否启用付款限期的开关

Config.LimitDateDays = 10 -- 如果启用了Config.LimitDate,用于定义发票开具后付款截止日期的天数

Config.PayAutomaticallyAfterLimit = true -- 是否在到期日后自动支付发票的开关

-- (要使其生效,你需要将其设置为true,并在LimitDateDays中添加一个数字)
Config.FeeAfterEachDay = true -- 未支付发票是否按每日递增的百分比增加

Config.FeeAfterEachDayPercentage = 5 -- 如果Config.FeeAfterEachDay已启用,则用于设置每日递增的百分比

Config.OnlyBossCanAccessSocietyInvoices = true -- 是否只允许老板访问协会发票,如果为false,则所有员工都可以访问

Config.AllowedSocieties = { --允许打开“协会发票”和“创建发票”菜单的协会
    'police',
    'ambulance'
}

在此之后还有一些关于Discord日志的配置参数,以及与Discord Webhook相关的设置。这些设置可以在服务器端脚本文件server.lua中找到。
页: [1]
查看完整版本: 翻译