Заполнение портфеля ДЕПО: кнопка включить/выключить, выбор клиента DEPO (поиск) — «Залить сейчас» только ему или добавить в постоянное; именование (префикс счёта, шаблон договора ЛК, раздел, хранение) — в настройках
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
@@ -16,3 +16,17 @@ func TestLKPaperTypeAndPairs(t *testing.T) {
|
||||
t.Fatalf("%+v", p)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLKContractByAccount(t *testing.T) {
|
||||
def := LKPortfolioSyncSettings{}
|
||||
if got := lkContractByAccount(def, "ВТНКЦ00000816"); got != "ДД-816" {
|
||||
t.Fatalf("по умолчанию: %q", got)
|
||||
}
|
||||
if got := lkContractByAccount(def, "В00000816"); got != "" {
|
||||
t.Fatalf("не торговый счёт: %q", got)
|
||||
}
|
||||
other := LKPortfolioSyncSettings{AccountPrefix: "TR-", ContractTemplate: "D/{n}/2024"}
|
||||
if got := lkContractByAccount(other, "TR-0042"); got != "D/42/2024" {
|
||||
t.Fatalf("другое именование: %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user