{"action":"closed","issue":{"url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/3706","repository_url":"https://api.github.com/repos/microsoft/ALAppExtensions","labels_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/3706/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/3706/comments","events_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/3706/events","html_url":"https://github.com/microsoft/ALAppExtensions/issues/3706","id":479020835,"node_id":"MDU6SXNzdWU0NzkwMjA4MzU=","number":3706,"title":"[Event Request] Table 5965 Service Contract Header - CalculateEndPeriodDate","user":{"login":"lv-janpieter","id":51114928,"node_id":"MDQ6VXNlcjUxMTE0OTI4","avatar_url":"https://avatars2.githubusercontent.com/u/51114928?v=4","gravatar_id":"","url":"https://api.github.com/users/lv-janpieter","html_url":"https://github.com/lv-janpieter","followers_url":"https://api.github.com/users/lv-janpieter/followers","following_url":"https://api.github.com/users/lv-janpieter/following{/other_user}","gists_url":"https://api.github.com/users/lv-janpieter/gists{/gist_id}","starred_url":"https://api.github.com/users/lv-janpieter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lv-janpieter/subscriptions","organizations_url":"https://api.github.com/users/lv-janpieter/orgs","repos_url":"https://api.github.com/users/lv-janpieter/repos","events_url":"https://api.github.com/users/lv-janpieter/events{/privacy}","received_events_url":"https://api.github.com/users/lv-janpieter/received_events","type":"User","site_admin":false},"labels":[{"id":1091511399,"node_id":"MDU6TGFiZWwxMDkxNTExMzk5","url":"https://api.github.com/repos/microsoft/ALAppExtensions/labels/event-request","name":"event-request","color":"9b8fd6","default":false},{"id":1093208917,"node_id":"MDU6TGFiZWwxMDkzMjA4OTE3","url":"https://api.github.com/repos/microsoft/ALAppExtensions/labels/ships-in-future-update","name":"ships-in-future-update","color":"6dff00","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-09T14:37:44Z","updated_at":"2019-08-14T06:19:40Z","closed_at":"2019-08-14T06:19:40Z","author_association":"NONE","body":"We would like to request a Handled pattern to function CalculateEndPeriodDate of table 5965 Service Contract Header. In this function we would like the abbility to set the resulting date.\r\n\r\n    LOCAL CalculateEndPeriodDate(Prepaid : Boolean;NextInvDate : Date) : Date\r\n    IF NextInvDate = 0D THEN\r\n      EXIT(0D);\r\n\r\n    ///// START\r\n    OnBeforeCalculateEndPeriodDate(VAR Rec, Prepaid, NextInvDate, VAR Result, VAR IsHandled);\r\n    IF IsHandled THEN\r\n      EXIT(Result);\r\n    ///// END\r\n\r\n    IF Prepaid THEN BEGIN\r\n      CASE \"Invoice Period\" OF\r\n\r\nMany thanks."}}
{"actor":{"display_login":"jobulsin"}}