{"action":"created","issue":{"url":"https://api.github.com/repos/metasfresh/metasfresh/issues/4763","repository_url":"https://api.github.com/repos/metasfresh/metasfresh","labels_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/4763/labels{/name}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/4763/comments","events_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/4763/events","html_url":"https://github.com/metasfresh/metasfresh/issues/4763","id":381834419,"node_id":"MDU6SXNzdWUzODE4MzQ0MTk=","number":4763,"title":"Update material dispo correction from StockChangedEvents","user":{"login":"metas-ts","id":1264789,"node_id":"MDQ6VXNlcjEyNjQ3ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1264789?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-ts","html_url":"https://github.com/metas-ts","followers_url":"https://api.github.com/users/metas-ts/followers","following_url":"https://api.github.com/users/metas-ts/following{/other_user}","gists_url":"https://api.github.com/users/metas-ts/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-ts/subscriptions","organizations_url":"https://api.github.com/users/metas-ts/orgs","repos_url":"https://api.github.com/users/metas-ts/repos","events_url":"https://api.github.com/users/metas-ts/events{/privacy}","received_events_url":"https://api.github.com/users/metas-ts/received_events","type":"User","site_admin":false},"labels":[{"id":536706344,"node_id":"MDU6TGFiZWw1MzY3MDYzNDQ=","url":"https://api.github.com/repos/metasfresh/metasfresh/labels/branch:master","name":"branch:master","color":"0e8a16","default":false},{"id":546012549,"node_id":"MDU6TGFiZWw1NDYwMTI1NDk=","url":"https://api.github.com/repos/metasfresh/metasfresh/labels/branch:release","name":"branch:release","color":"0e8a16","default":false},{"id":269476096,"node_id":"MDU6TGFiZWwyNjk0NzYwOTY=","url":"https://api.github.com/repos/metasfresh/metasfresh/labels/type:enhancement","name":"type:enhancement","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"metas-ts","id":1264789,"node_id":"MDQ6VXNlcjEyNjQ3ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1264789?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-ts","html_url":"https://github.com/metas-ts","followers_url":"https://api.github.com/users/metas-ts/followers","following_url":"https://api.github.com/users/metas-ts/following{/other_user}","gists_url":"https://api.github.com/users/metas-ts/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-ts/subscriptions","organizations_url":"https://api.github.com/users/metas-ts/orgs","repos_url":"https://api.github.com/users/metas-ts/repos","events_url":"https://api.github.com/users/metas-ts/events{/privacy}","received_events_url":"https://api.github.com/users/metas-ts/received_events","type":"User","site_admin":false},"assignees":[{"login":"metas-ts","id":1264789,"node_id":"MDQ6VXNlcjEyNjQ3ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1264789?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-ts","html_url":"https://github.com/metas-ts","followers_url":"https://api.github.com/users/metas-ts/followers","following_url":"https://api.github.com/users/metas-ts/following{/other_user}","gists_url":"https://api.github.com/users/metas-ts/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-ts/subscriptions","organizations_url":"https://api.github.com/users/metas-ts/orgs","repos_url":"https://api.github.com/users/metas-ts/repos","events_url":"https://api.github.com/users/metas-ts/events{/privacy}","received_events_url":"https://api.github.com/users/metas-ts/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-17T06:35:57Z","updated_at":"2018-11-28T09:35:38Z","closed_at":null,"author_association":"MEMBER","body":"### Is this a bug or feature request?\r\nFR\r\n### What is the current behavior?\r\nM_Transtaction (including inventories) update the material disposition, but \r\n* they only apply deltas.\r\n* they update the material disposition at the time of their respective business events\r\n\r\n* If the material disposition is out-of-sync to start with, it remains incorrect.\r\n* If e.g. a purchase order with DatePromised of day-after-tomorrow is received today, then the APT from tomorrow is not updated\r\n\r\n#### Which are the steps to reproduce?\r\n* disable the event bus\r\n* do receipts, shipments, material movements etc\r\n* flag the respective events as processed with pgAdmin\r\n* enable the event bus\r\n=> now material dispo is out of sync\r\n\r\n### What is the expected or desired behavior?\r\n\r\nif inventories are completed or the full MD_Stock table is reset, then the matrial dispo shall be updated accordingly"},"comment":{"url":"https://api.github.com/repos/metasfresh/metasfresh/issues/comments/442381279","html_url":"https://github.com/metasfresh/metasfresh/issues/4763#issuecomment-442381279","issue_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/4763","id":442381279,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjM4MTI3OQ==","user":{"login":"metas-dh","id":18696715,"node_id":"MDQ6VXNlcjE4Njk2NzE1","avatar_url":"https://avatars2.githubusercontent.com/u/18696715?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-dh","html_url":"https://github.com/metas-dh","followers_url":"https://api.github.com/users/metas-dh/followers","following_url":"https://api.github.com/users/metas-dh/following{/other_user}","gists_url":"https://api.github.com/users/metas-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-dh/subscriptions","organizations_url":"https://api.github.com/users/metas-dh/orgs","repos_url":"https://api.github.com/users/metas-dh/repos","events_url":"https://api.github.com/users/metas-dh/events{/privacy}","received_events_url":"https://api.github.com/users/metas-dh/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T09:35:38Z","updated_at":"2018-11-28T09:35:38Z","author_association":"MEMBER","body":"checked again in release:\r\n\r\n* Material Cockpit QtyOnHand: OK (same qty as in HU Editor from active HUs)\r\n* did purchase order, receipt, and sales order: Material Cockpit QtyOnHand was updated correctly, w/o running the Scheduler: OK\r\n* ATP in sales order: was != QtyOnHand in Material Cockpit?"}}
{"actor":{"display_login":"metas-dh"}}