{"action":"created","issue":{"url":"https://api.github.com/repos/pufexi/multiorder/issues/233","labels_url":"https://api.github.com/repos/pufexi/multiorder/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/pufexi/multiorder/issues/233/comments","events_url":"https://api.github.com/repos/pufexi/multiorder/issues/233/events","html_url":"https://github.com/pufexi/multiorder/issues/233","id":127027467,"number":233,"title":"Rezervace","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/5","html_url":"https://github.com/pufexi/multiorder/milestones/Verze%20VI","labels_url":"https://api.github.com/repos/pufexi/multiorder/milestones/5/labels","id":959911,"number":5,"title":"Verze VI","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":6,"closed_issues":9,"state":"open","created_at":"2015-02-01T01:38:44Z","updated_at":"2016-01-26T14:11:56Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-01-16T14:15:19Z","updated_at":"2016-01-26T18:04:57Z","closed_at":null,"body":"O Vanocich se resil hodne problem, ze jsme nevedeli, zda zbozi mame ci ne. Primarne mame spatne zadany cisla ve skladu, coz napravime. Ale sekundarne jsme zjistili, ze to vubec stejne nepomuze, protoze cislo na skladu je cislo, ktere ukazuje zbozi, co jeste neni vyrizene, tj. odeslane, vystavena faktura. Ale objednavka je vlastne neco jako rezervace na zbozi. A tak se pak stane, ze na sklade mas 2 zbozi, ale nez se vyridi kompletne ta objednavka, tak se prodaji dalsi 1 zbozi, ale ty porad vidis na sklade 2, pritom uz tam je v podstate 1. Takze to snadno muze dopadnout tak, ze prodas vic nez mas, protoze vsechny objednavky nebyli zprocesovane. Doufam, ze trochu chapes o co jde :-)\r\n\r\nSnadno si asi reknes, ze se to da resit tim, ze proste zbozi pri prodeji hned ze skladu odectem. Asi bych to tak nechtel delat, nejaky vnitrni hlas mi tak rika. Plus vlastne pak nikdy nezjistis, kolik vlastne mas v regalu realne zbozi, protoze ja tam uvidim 2ks, ale Sklad mi bude psat 1ks, takze co je pravda? \r\n\r\nA tak bych zavedl novou kolonku Rezervace, bude to vlastne uplne stejny jako nyni cislo ve Skladu, ale zbozi se z toho cisla odecte jiz hned po prijeti objednavky a pak u pri odeslani ne. Tj. budu mit ke kazdemu zbozi 2 cisla Rezervace / Sklad. Zobrazoval bych je normalne vedle sebe odelene lomitkem. V Sklady. To pismo ostatne taky muzes zmenis. A ubrat klidne 0 za des, carkou, nyni tam uz nejsou potreba 3 ale 2."},"comment":{"url":"https://api.github.com/repos/pufexi/multiorder/issues/comments/175146918","html_url":"https://github.com/pufexi/multiorder/issues/233#issuecomment-175146918","issue_url":"https://api.github.com/repos/pufexi/multiorder/issues/233","id":175146918,"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":"2016-01-26T18:04:57Z","updated_at":"2016-01-26T18:04:57Z","body":"1) Proforma nemusí být zaplaceno, aby bylo rezervováno.\r\n3) Kdyžtak specifikuj blíže, až to budeš chtít\r\n4+5) Vyčlenil jsem následující typy plateb: 'převodem', 'payu', 'bitpay', 'PayPal', 'kartou', které se nyní berou jako rezervované pouze když jsou zaplacené anebo staré maximálně 5 dní. To číslo je v definici db view `reservations`, dá se změnit, ale ne z global_variables. \r\n6) Přidal jsem shipstate \"Nebudeme odesílat (zrušeno)\", který doufám funguje tak jak bys čekal (není rezervováno, nevyrobí se faktura) Pro OV lze použít nevyzvednuto. "}}