{"action":"opened","issue":{"url":"https://api.github.com/repos/vaizard/glued/issues/77","repository_url":"https://api.github.com/repos/vaizard/glued","labels_url":"https://api.github.com/repos/vaizard/glued/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/vaizard/glued/issues/77/comments","events_url":"https://api.github.com/repos/vaizard/glued/issues/77/events","html_url":"https://github.com/vaizard/glued/issues/77","id":394910774,"node_id":"MDU6SXNzdWUzOTQ5MTA3NzQ=","number":77,"title":"Update the accounting cost schema","user":{"login":"killua-eu","id":410734,"node_id":"MDQ6VXNlcjQxMDczNA==","avatar_url":"https://avatars2.githubusercontent.com/u/410734?v=4","gravatar_id":"","url":"https://api.github.com/users/killua-eu","html_url":"https://github.com/killua-eu","followers_url":"https://api.github.com/users/killua-eu/followers","following_url":"https://api.github.com/users/killua-eu/following{/other_user}","gists_url":"https://api.github.com/users/killua-eu/gists{/gist_id}","starred_url":"https://api.github.com/users/killua-eu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killua-eu/subscriptions","organizations_url":"https://api.github.com/users/killua-eu/orgs","repos_url":"https://api.github.com/users/killua-eu/repos","events_url":"https://api.github.com/users/killua-eu/events{/privacy}","received_events_url":"https://api.github.com/users/killua-eu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-30T23:46:46Z","updated_at":"2018-12-30T23:46:46Z","closed_at":null,"author_association":"COLLABORATOR","body":"New schema might work like this:\r\n\r\n```\r\n{\r\n  \"type\": \"object\",\r\n  \"properties\": {\r\n    \"data\": {\r\n      \"type\": \"object\",\r\n      \"properties\": {\r\n        \"acc_total_novat\": {\r\n          \"type\": \"number\",\r\n          \"title\": \"Price without VAT\"\r\n        },\r\n        \"acc_total_vat\": {\r\n          \"type\": \"number\",\r\n          \"title\": \"Price with VAT\"\r\n        },\r\n        \"acc_curr\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Accounting currency\"\r\n        },\r\n        \"inv_total_novat\": {\r\n          \"type\": \"number\",\r\n          \"title\": \"Price without VAT\"\r\n        },\r\n        \"inv_total_vat\": {\r\n          \"type\": \"number\",\r\n          \"title\": \"Price with VAT\"\r\n        },\r\n        \"inv_curr\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Transaction currency\"\r\n        },\r\n        \"xr\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Exchange rate\"\r\n        },\r\n        \"dt_taxable\": {\r\n          \"type\": \"string\",\r\n          \"format\": \"date\",\r\n          \"title\": \"Date taxable supply\"\r\n        },\r\n        \"dt_due\": {\r\n          \"type\": \"string\",\r\n          \"format\": \"date\",\r\n          \"title\": \"Date taxable supply\"\r\n        },\r\n        \"inv_nr\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Invoice number\"\r\n        },\r\n        \"exp_type\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Expenditure type\"\r\n        },\r\n        \"note\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Note\"\r\n        },\r\n        \"supplier\": {\r\n          \"title\": \"Supplier\",\r\n          \"type\": \"object\",\r\n          \"properties\": {\r\n            \"contact_id\": {\r\n              \"type\": \"string\",\r\n              \"title\": \"Id of link to our db\"\r\n            },\r\n            \"name\": {\r\n              \"type\": \"string\",\r\n              \"title\": \"Name\"\r\n            },\r\n            \"regid\": {\r\n              \"type\": \"string\",\r\n              \"title\": \"IČ\"\r\n            },\r\n            \"vatid\": {\r\n              \"type\": \"string\",\r\n              \"title\": \"DIČ\"\r\n            },\r\n            \"dob\": {\r\n              \"type\": \"string\",\r\n              \"title\": \"Date of birth\"\r\n            },\r\n            \"address\": {\r\n              \"type\": \"string\",\r\n              \"title\": \"Address\"\r\n            }\r\n          }\r\n        },\r\n        \"managerial_acc\": {\r\n          \"type\": \"array\",\r\n          \"title\": \"Managerial accounting\",\r\n          \"items\": {\r\n            \"type\": \"object\",\r\n            \"properties\": {\r\n              \"price-novat\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Price fraction (without VAT)\"\r\n              },\r\n              \"price-fract\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Percentile fraction\"\r\n              },\r\n              \"note\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Note\"\r\n              },\r\n              \"pixel_id\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Project ID\"\r\n              }\r\n            }\r\n          }\r\n        },\r\n        \"financial_acc\": {\r\n          \"type\": \"array\",\r\n          \"title\": \"Financial accounting\",\r\n          \"items\": {\r\n            \"type\": \"object\",\r\n            \"properties\": {\r\n              \"price-novat\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Price fraction (without VAT)\"\r\n              },\r\n              \"price-fract\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Percentile fraction\"\r\n              },\r\n              \"note\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Note\"\r\n              },\r\n              \"pixel_id\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Project ID\"\r\n              }\r\n            }\r\n          }\r\n        },\r\n        \"ext_id\": {\r\n          \"type\": \"array\",\r\n          \"title\": \"External links\",\r\n          \"items\": {\r\n            \"type\": \"object\",\r\n            \"properties\": {\r\n              \"id1\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"ID1\"\r\n              },\r\n              \"id2\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"ID2\"\r\n              },\r\n              \"svc\": {\r\n                \"type\": \"string\",\r\n                \"title\": \"Service name\"\r\n              }\r\n            }\r\n          }\r\n        },\r\n        \"files\": {\r\n          \"type\": \"array\",\r\n          \"title\": \"Multiple files\",\r\n          \"items\": {\r\n            \"type\": \"string\",\r\n            \"format\": \"data-url\"\r\n          }\r\n        },\r\n        \"_id\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Inner record id\"\r\n        },\r\n        \"creator\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Creator\"\r\n        },\r\n        \"dt_created\": {\r\n          \"type\": \"string\",\r\n          \"title\": \"Date of creation\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nProsím předvyplň formdata minimálně takto\r\n\r\n- accounting currency: \"CZK\",\r\n- ext_links.svc: \"DEEF\"\r\n\r\nUI schema takto:\r\n\r\n- všechny popisky dej do UI schemtu jako placeholder\r\n- \"contact_id\" nastav jako hidden \r\n"}}
{"actor":{"display_login":"killua-eu"}}