{"action":"created","issue":{"url":"https://api.github.com/repos/zauzoo/app/issues/11","labels_url":"https://api.github.com/repos/zauzoo/app/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/zauzoo/app/issues/11/comments","events_url":"https://api.github.com/repos/zauzoo/app/issues/11/events","html_url":"https://github.com/zauzoo/app/issues/11","id":112814211,"number":11,"title":"vyvoj sablon tisku faktur","user":{"login":"jzelenka","id":1957955,"avatar_url":"https://avatars.githubusercontent.com/u/1957955?v=3","gravatar_id":"","url":"https://api.github.com/users/jzelenka","html_url":"https://github.com/jzelenka","followers_url":"https://api.github.com/users/jzelenka/followers","following_url":"https://api.github.com/users/jzelenka/following{/other_user}","gists_url":"https://api.github.com/users/jzelenka/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelenka/subscriptions","organizations_url":"https://api.github.com/users/jzelenka/orgs","repos_url":"https://api.github.com/users/jzelenka/repos","events_url":"https://api.github.com/users/jzelenka/events{/privacy}","received_events_url":"https://api.github.com/users/jzelenka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"krivohlavek","id":14074211,"avatar_url":"https://avatars.githubusercontent.com/u/14074211?v=3","gravatar_id":"","url":"https://api.github.com/users/krivohlavek","html_url":"https://github.com/krivohlavek","followers_url":"https://api.github.com/users/krivohlavek/followers","following_url":"https://api.github.com/users/krivohlavek/following{/other_user}","gists_url":"https://api.github.com/users/krivohlavek/gists{/gist_id}","starred_url":"https://api.github.com/users/krivohlavek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krivohlavek/subscriptions","organizations_url":"https://api.github.com/users/krivohlavek/orgs","repos_url":"https://api.github.com/users/krivohlavek/repos","events_url":"https://api.github.com/users/krivohlavek/events{/privacy}","received_events_url":"https://api.github.com/users/krivohlavek/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-10-22T14:24:24Z","updated_at":"2016-01-22T13:47:08Z","closed_at":null,"body":"Pro vyrobu PDF tisku faktur budeme pouzivat apache xsl-fop.\r\nCely retezec je:\r\ndatabaze -> java objekt -> XML -> PDF\r\n\r\nUkolem toho bugu napsat XSLT sablonu, ktera provede konverzi XML -> PDF.\r\n\r\nPouzivam defaultni  XSLT, to je XSLT 1, Pokud byste chteli XSLT 2 (vice funkci apod), tak dejte vedet, pouzili bychom Saxon.\r\n\r\nVe finale budou sablony ulozeny v databazi v `tco_document_template` , ale nyni pro vyvoj sablony, ji budete mit normale v souboru a transformaci budete spoustet JUNIT testem v `InvoiceTests.printInvoice()`\r\nZ toho je vsechno videt, zadava se tam cislo faktury, cesty k souborum.....\r\n\r\nJak rozchodit java IDE a pustit ten test vam ukaze Martin.\r\n\r\n Pri spusteni testu se vypisuje na konzoli XML, ktere je vstupem transformace. Pokud by v nem neco chybelo (a bylo to v DB) ozvete se.\r\n\r\n\r\n- zda se, ze faktury (Volvo, Renault) se lisi pouze logem a to je urcene strediskem - potom by mohla byt sablona pouze jedna. Jak vlozit logo, je popsano ve vzorove sablone, kterou posilam mailem, nejde prilozit.\r\n\r\n- vyber sablony je nyni mozny podle strediska a jazyku.\r\n\r\n\r\n### Lokalizace:\r\n1. lokalizace statickych testu    \r\n  a) pro kazdy jazyk sablona\r\n  b) jedna sablona, v sablone budou klice formou `xsl:param` a vlastni preklady klicu v databazi \r\n\r\n  nyni predpokladam a) , pokud chcete b) dejte vedet musim to dovyvinout\r\n\r\n2. lokalizace ciselniku - jiz funguje (pouze u ciselniku, ktere jsou nadefinovane jako lokalizovatelne), napriklad Country - preklady jsou v tabulce `tco_locale_table`\r\n \r\n Az pustite test uvidite, ze se pro _en a _cs PDF tisk preklada zeme v adrese (v XML se v zavislosti na jazyce meni element `label` elementu `country` na adrese)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zauzoo/app/issues/comments/173925374","html_url":"https://github.com/zauzoo/app/issues/11#issuecomment-173925374","issue_url":"https://api.github.com/repos/zauzoo/app/issues/11","id":173925374,"user":{"login":"krivohlavek","id":14074211,"avatar_url":"https://avatars.githubusercontent.com/u/14074211?v=3","gravatar_id":"","url":"https://api.github.com/users/krivohlavek","html_url":"https://github.com/krivohlavek","followers_url":"https://api.github.com/users/krivohlavek/followers","following_url":"https://api.github.com/users/krivohlavek/following{/other_user}","gists_url":"https://api.github.com/users/krivohlavek/gists{/gist_id}","starred_url":"https://api.github.com/users/krivohlavek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krivohlavek/subscriptions","organizations_url":"https://api.github.com/users/krivohlavek/orgs","repos_url":"https://api.github.com/users/krivohlavek/repos","events_url":"https://api.github.com/users/krivohlavek/events{/privacy}","received_events_url":"https://api.github.com/users/krivohlavek/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T13:47:08Z","updated_at":"2016-01-22T13:47:08Z","body":"V xml to stale nevidim, git pull jsem daval."}}