{"action":"created","issue":{"url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/issues/3644","labels_url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/issues/3644/labels{/name}","comments_url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/issues/3644/comments","events_url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/issues/3644/events","html_url":"https://github.com/GoldenSoftwareLtd/gedemin/issues/3644","id":102366443,"number":3644,"title":"Создание нового типа складского документа","user":{"login":"gsbelarus","id":5175764,"avatar_url":"https://avatars.githubusercontent.com/u/5175764?v=3","gravatar_id":"","url":"https://api.github.com/users/gsbelarus","html_url":"https://github.com/gsbelarus","followers_url":"https://api.github.com/users/gsbelarus/followers","following_url":"https://api.github.com/users/gsbelarus/following{/other_user}","gists_url":"https://api.github.com/users/gsbelarus/gists{/gist_id}","starred_url":"https://api.github.com/users/gsbelarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsbelarus/subscriptions","organizations_url":"https://api.github.com/users/gsbelarus/orgs","repos_url":"https://api.github.com/users/gsbelarus/repos","events_url":"https://api.github.com/users/gsbelarus/events{/privacy}","received_events_url":"https://api.github.com/users/gsbelarus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/labels/Depot","name":"Depot","color":"ededed"},{"url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/labels/Priority-High","name":"Priority-High","color":"eb6420"},{"url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/labels/Type-Task","name":"Type-Task","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"zholnerovich","id":11497757,"avatar_url":"https://avatars.githubusercontent.com/u/11497757?v=3","gravatar_id":"","url":"https://api.github.com/users/zholnerovich","html_url":"https://github.com/zholnerovich","followers_url":"https://api.github.com/users/zholnerovich/followers","following_url":"https://api.github.com/users/zholnerovich/following{/other_user}","gists_url":"https://api.github.com/users/zholnerovich/gists{/gist_id}","starred_url":"https://api.github.com/users/zholnerovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zholnerovich/subscriptions","organizations_url":"https://api.github.com/users/zholnerovich/orgs","repos_url":"https://api.github.com/users/zholnerovich/repos","events_url":"https://api.github.com/users/zholnerovich/events{/privacy}","received_events_url":"https://api.github.com/users/zholnerovich/received_events","type":"User","site_admin":false},"milestone":null,"comments":26,"created_at":"2015-08-21T12:15:21Z","updated_at":"2015-08-25T11:20:29Z","closed_at":null,"body":"в идеале:\r\n\r\n1. перевести двоичное хранение признаков в текст, в YAML\r\n2. признаки типа документа вычислять как объединение признаков родителя (рекурсивно до самого низа) и признаков текущего типа\r\n3. код создания нового типа вынести из диалогового окна на уровень БО (концепция MVC)\r\n\r\nпрямо сейчас можно быстро сделать:\r\n\r\n1. в момент создания нового типа признаки копируются от родителя (так как и было, только без ошибки, когда не проверялось что там в поле Parent, папка или тип документа)\r\n2. при изменении признаков наследника не позволяем удалять признаки, которые установлены у родителя. Должно быть понятное объяснение разработчику.\r\n3. При изменении признаков у родителя выдаем предупреждение со списком наследников в которых надо подправить признаки (либо автоматически производить изменения в наследниках. Если же реализовать п.1.2, то данный пункт вообще не придется делать).\r\n4. Приход\\Расход добавляем возможность выбирать поля таблиц наследников.\r\n\r\n@MIchaelShoihet "},"comment":{"url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/issues/comments/134557853","html_url":"https://github.com/GoldenSoftwareLtd/gedemin/issues/3644#issuecomment-134557853","issue_url":"https://api.github.com/repos/GoldenSoftwareLtd/gedemin/issues/3644","id":134557853,"user":{"login":"gsbelarus","id":5175764,"avatar_url":"https://avatars.githubusercontent.com/u/5175764?v=3","gravatar_id":"","url":"https://api.github.com/users/gsbelarus","html_url":"https://github.com/gsbelarus","followers_url":"https://api.github.com/users/gsbelarus/followers","following_url":"https://api.github.com/users/gsbelarus/following{/other_user}","gists_url":"https://api.github.com/users/gsbelarus/gists{/gist_id}","starred_url":"https://api.github.com/users/gsbelarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsbelarus/subscriptions","organizations_url":"https://api.github.com/users/gsbelarus/orgs","repos_url":"https://api.github.com/users/gsbelarus/repos","events_url":"https://api.github.com/users/gsbelarus/events{/privacy}","received_events_url":"https://api.github.com/users/gsbelarus/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T11:20:29Z","updated_at":"2015-08-25T11:20:29Z","body":"ЗАЧЕМ? каждая опция хранится отдельной строкой в привязке к типу документа. Никаких отдельных классов не надо. Их вообще не надо привязывать к складскому документу, а просто к типу документа, самому корневому."}}