{"action":"created","issue":{"url":"https://api.github.com/repos/pufexi/multiorder/issues/212","labels_url":"https://api.github.com/repos/pufexi/multiorder/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/pufexi/multiorder/issues/212/comments","events_url":"https://api.github.com/repos/pufexi/multiorder/issues/212/events","html_url":"https://github.com/pufexi/multiorder/issues/212","id":117111158,"number":212,"title":"Funkce vygenerovat fakturu","user":{"login":"pufexi","id":10209182,"avatar_url":"https://avatars.githubusercontent.com/u/10209182?v=3","gravatar_id":"","url":"https://api.github.com/users/pufexi","html_url":"https://github.com/pufexi","followers_url":"https://api.github.com/users/pufexi/followers","following_url":"https://api.github.com/users/pufexi/following{/other_user}","gists_url":"https://api.github.com/users/pufexi/gists{/gist_id}","starred_url":"https://api.github.com/users/pufexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pufexi/subscriptions","organizations_url":"https://api.github.com/users/pufexi/orgs","repos_url":"https://api.github.com/users/pufexi/repos","events_url":"https://api.github.com/users/pufexi/events{/privacy}","received_events_url":"https://api.github.com/users/pufexi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jachymb","id":1655105,"avatar_url":"https://avatars.githubusercontent.com/u/1655105?v=3","gravatar_id":"","url":"https://api.github.com/users/jachymb","html_url":"https://github.com/jachymb","followers_url":"https://api.github.com/users/jachymb/followers","following_url":"https://api.github.com/users/jachymb/following{/other_user}","gists_url":"https://api.github.com/users/jachymb/gists{/gist_id}","starred_url":"https://api.github.com/users/jachymb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jachymb/subscriptions","organizations_url":"https://api.github.com/users/jachymb/orgs","repos_url":"https://api.github.com/users/jachymb/repos","events_url":"https://api.github.com/users/jachymb/events{/privacy}","received_events_url":"https://api.github.com/users/jachymb/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pufexi/multiorder/milestones/3","html_url":"https://github.com/pufexi/multiorder/milestones/Verze%20V","labels_url":"https://api.github.com/repos/pufexi/multiorder/milestones/3/labels","id":945499,"number":3,"title":"Verze V","description":null,"creator":{"login":"pufexi","id":10209182,"avatar_url":"https://avatars.githubusercontent.com/u/10209182?v=3","gravatar_id":"","url":"https://api.github.com/users/pufexi","html_url":"https://github.com/pufexi","followers_url":"https://api.github.com/users/pufexi/followers","following_url":"https://api.github.com/users/pufexi/following{/other_user}","gists_url":"https://api.github.com/users/pufexi/gists{/gist_id}","starred_url":"https://api.github.com/users/pufexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pufexi/subscriptions","organizations_url":"https://api.github.com/users/pufexi/orgs","repos_url":"https://api.github.com/users/pufexi/repos","events_url":"https://api.github.com/users/pufexi/events{/privacy}","received_events_url":"https://api.github.com/users/pufexi/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":79,"state":"open","created_at":"2015-01-21T16:29:39Z","updated_at":"2015-11-26T15:31:19Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-11-16T12:14:45Z","updated_at":"2015-11-27T14:48:24Z","closed_at":null,"body":"Potrebovali bychom funkci podobnou ODESLAT, ale jen by se vygenerovala faktura a cislo faktury a nenastavilo jako odeslano a nezasilo nic zakaznikovi (jakoze email). V podstate bych to asi dal do Detailu objednavky, kde by bylo tlacikot Vygenerovat fakturu, kdyz je vygenerovana, tak uz by tam bylo jen Faktura (tak jako je nyni). \r\n\r\nBtw, po vygenerovani faktury, bude mozne si stahnout i XML fakturu, tak over ty podminky, asi je to pujde, ale kdyby ne, tak uprav ty podminky, kdy se tlacitko zobrazuje"},"comment":{"url":"https://api.github.com/repos/pufexi/multiorder/issues/comments/160153542","html_url":"https://github.com/pufexi/multiorder/issues/212#issuecomment-160153542","issue_url":"https://api.github.com/repos/pufexi/multiorder/issues/212","id":160153542,"user":{"login":"jachymb","id":1655105,"avatar_url":"https://avatars.githubusercontent.com/u/1655105?v=3","gravatar_id":"","url":"https://api.github.com/users/jachymb","html_url":"https://github.com/jachymb","followers_url":"https://api.github.com/users/jachymb/followers","following_url":"https://api.github.com/users/jachymb/following{/other_user}","gists_url":"https://api.github.com/users/jachymb/gists{/gist_id}","starred_url":"https://api.github.com/users/jachymb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jachymb/subscriptions","organizations_url":"https://api.github.com/users/jachymb/orgs","repos_url":"https://api.github.com/users/jachymb/repos","events_url":"https://api.github.com/users/jachymb/events{/privacy}","received_events_url":"https://api.github.com/users/jachymb/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T14:48:24Z","updated_at":"2015-11-27T14:48:24Z","body":"Ceny se zafixují v okamžiku vygenerování faktury. Zásoby se aktualizují až při samotném odeslání. Nastaví se přitom datum odeslání, přestože není odesláno.  Není přímý mechanismus, jak fakturu odendat, když už byla vygenerována, ale existuje workaround - nastavit stav na \"doručeno\" (neodešle se mail, narozdíl od \"odesláno\") a pak zpět na \"neodesláno\". (Za předpokladu, že neexistuje faktura s vyšším id, pochopitelně.) U objednávky se zobrazí vykřičníček dokud není odeslána."}}