This commit is contained in:
hysn99
2024-04-15 16:34:25 +03:00
parent bfcb484104
commit 9a801bbb18
5 changed files with 57 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ type userInfo struct {
accountNo string
}
func (s *Srv) Rpa(companyID float64, month float64, year float64) error {
func (s *Srv) Rpa(companyID float64, month float64, year float64, devMode bool) error {
type CompanyInfo struct {
company *company.Company // float64.Company türünü gömme
month float64 // yeni bir alan ekliyoruz
@@ -79,7 +79,7 @@ func (s *Srv) Rpa(companyID float64, month float64, year float64) error {
// }
//todo: readb company details by name
b := bot.NewLucaBot()
b := bot.NewLucaBot(devMode)
emitLog("Aktarım Başladı")
err = b.Login(user, month, year)
if err != nil {