{"action":"created","issue":{"url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/5120","repository_url":"https://api.github.com/repos/microsoft/ALAppExtensions","labels_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/5120/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/5120/comments","events_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/5120/events","html_url":"https://github.com/microsoft/ALAppExtensions/issues/5120","id":532087460,"node_id":"MDU6SXNzdWU1MzIwODc0NjA=","number":5120,"title":"[Event Request] DeleteSalesLinesWithNegQty - Copy Document Mgt.","user":{"login":"frobiii","id":46748244,"node_id":"MDQ6VXNlcjQ2NzQ4MjQ0","avatar_url":"https://avatars3.githubusercontent.com/u/46748244?v=4","gravatar_id":"","url":"https://api.github.com/users/frobiii","html_url":"https://github.com/frobiii","followers_url":"https://api.github.com/users/frobiii/followers","following_url":"https://api.github.com/users/frobiii/following{/other_user}","gists_url":"https://api.github.com/users/frobiii/gists{/gist_id}","starred_url":"https://api.github.com/users/frobiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frobiii/subscriptions","organizations_url":"https://api.github.com/users/frobiii/orgs","repos_url":"https://api.github.com/users/frobiii/repos","events_url":"https://api.github.com/users/frobiii/events{/privacy}","received_events_url":"https://api.github.com/users/frobiii/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,"description":"Request for adding an event"},{"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,"description":"Fix ships in a future update"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-03T15:59:28Z","updated_at":"2019-12-18T16:46:12Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\ni need to modify the filter for the sales Lines which were deleted in the Move Negative Lines function in Copy Doc Mgt. I already handled to copy selected lines to the new sales order, but because of the missing publisher all lines were deleted.\r\n\r\n\r\n\r\n```\r\nlocal procedure DeleteSalesLinesWithNegQty(FromSalesHeader: Record \"Sales Header\"; OnlyTest: Boolean)\r\n    var\r\n        FromSalesLine: Record \"Sales Line\";\r\n    begin\r\n        with FromSalesLine do begin\r\n            SetRange(\"Document Type\", FromSalesHeader.\"Document Type\");\r\n            SetRange(\"Document No.\", FromSalesHeader.\"No.\");\r\n            SetFilter(Quantity, '<0');\r\n\t    // Start New Code\r\n\t    OnBeforeFindFromSalesLine_DeleteSalesLinesWithNegQty(FromSalesLine);\r\n\t    // End New Code\r\n            if OnlyTest then begin\r\n                if not Find('-') then\r\n                    Error(Text008);\r\n                repeat\r\n                    TestField(\"Shipment No.\", '');\r\n                    TestField(\"Return Receipt No.\", '');\r\n                    TestField(\"Quantity Shipped\", 0);\r\n                    TestField(\"Quantity Invoiced\", 0);\r\n                until Next = 0;\r\n            end else\r\n                DeleteAll(true);\r\n        end;\r\n    end;\r\n\r\n// Start New Publisher\r\n[IntegrationEvent(false, false)]\r\nlocal procedure OnBeforeFindFromSalesLine_DeleteSalesLinesWithNegQty(var FromSalesLine: Record \"Sales Line\")\r\nbegin\r\nend;\r\n// End New Publisher\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/comments/567115186","html_url":"https://github.com/microsoft/ALAppExtensions/issues/5120#issuecomment-567115186","issue_url":"https://api.github.com/repos/microsoft/ALAppExtensions/issues/5120","id":567115186,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NzExNTE4Ng==","user":{"login":"bc-ghost","id":55456419,"node_id":"MDQ6VXNlcjU1NDU2NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/55456419?v=4","gravatar_id":"","url":"https://api.github.com/users/bc-ghost","html_url":"https://github.com/bc-ghost","followers_url":"https://api.github.com/users/bc-ghost/followers","following_url":"https://api.github.com/users/bc-ghost/following{/other_user}","gists_url":"https://api.github.com/users/bc-ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/bc-ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bc-ghost/subscriptions","organizations_url":"https://api.github.com/users/bc-ghost/orgs","repos_url":"https://api.github.com/users/bc-ghost/repos","events_url":"https://api.github.com/users/bc-ghost/events{/privacy}","received_events_url":"https://api.github.com/users/bc-ghost/received_events","type":"User","site_admin":false},"created_at":"2019-12-18T16:46:12Z","updated_at":"2019-12-18T16:46:12Z","author_association":"NONE","body":"Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability."}}
{"actor":{"display_login":"bc-ghost"}}