diff --git a/.env.example b/.env.example index 7374358..2e3e49e 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,7 @@ ONLYOFFICE_PASS= # ONLYOFFICE_NAME= # ONLYOFFICE_PASSWORD= # -# produktor.io operator aliases (CLI-only): +# Optional CLI-only aliases: # OO_URL= # OO_USER= # OO_PASS= diff --git a/cmd/oo/contacts.go b/cmd/oo/contacts.go index 687fa88..818da95 100644 --- a/cmd/oo/contacts.go +++ b/cmd/oo/contacts.go @@ -308,7 +308,7 @@ func personsFixNamesCmd() *cobra.Command { cmd := &cobra.Command{ Use: "fix-names", Short: "Strip company annotations from last names; keep companyId link", - Long: `Repairs CRM persons whose lastName embeds a company ("Thomsen (Acme)") + Long: `Repairs CRM persons whose lastName embeds a company ("Doe (Acme)") or whose firstName is an email. Company belongs on companyId, not in the name. With --company-id, only persons linked to that company are scanned.`, diff --git a/cmd/oo/mails.go b/cmd/oo/mails.go index 8573081..3b90c5a 100644 --- a/cmd/oo/mails.go +++ b/cmd/oo/mails.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "os" "strconv" "strings" @@ -274,7 +275,7 @@ Best regards`, number, cost) return nil } fmt.Printf("draft %s to=%s subject=%q pdfFileId=%d\n", mid, to, subject, fileID) - fmt.Printf("open: https://office.example.com/addons/mail/#drafts\n") + fmt.Printf("open: %s/addons/mail/#drafts\n", strings.TrimRight(os.Getenv("ONLYOFFICE_URL"), "/")) return nil }, } diff --git a/invoices.go b/invoices.go index 6c9cb1d..55cfc34 100644 --- a/invoices.go +++ b/invoices.go @@ -239,7 +239,7 @@ func (c *Client) DeleteInvoice(ctx context.Context, id string) (map[string]any, return c.deleteObject(ctx, fmt.Sprintf("/api/2.0/crm/invoice/%s.json", url.PathEscape(id))) } -// Invoice status ids used by OnlyOffice CRM on produktor.io. +// Invoice status ids used by OnlyOffice CRM. const ( InvoiceStatusDraft = 1 InvoiceStatusBilled = 2