{"action":"reopened","issue":{"url":"https://api.github.com/repos/metasfresh/metasfresh/issues/156","repository_url":"https://api.github.com/repos/metasfresh/metasfresh","labels_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/156/comments","events_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/156/events","html_url":"https://github.com/metasfresh/metasfresh/issues/156","id":164013498,"number":156,"title":"Allow to configure shipment address to always be delivery address","user":{"login":"metas-ts","id":1264789,"avatar_url":"https://avatars.githubusercontent.com/u/1264789?v=3","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T07:16:29Z","updated_at":"2016-07-06T08:14:25Z","closed_at":null,"body":"Examples/Notes about where this shall work:\r\n* A BPartner with two locations both are `ShipTo` and `BillTo` addresses and that both are \"equal\" (none is flagged as default).\r\n* If the user changes `C_Order.C_BPartner_Location_ID` in an uncompleted order => `C_Order.Bill_Location_ID` shall be changed as well\r\n* For a (packaging) receipt (e.g. some palletes without a referenced order): in this case, the `C_Invoice_Candidate` shall have delivery-location == billto-Location\r\n** currently, in this case (->no default-billTo), the [M_InOut_Handler](https://github.com/metasfresh/metasfresh/tree/master/de.metas.swat/de.metas.swat.base/src/main/java/de/metas/invoicecandidate/spi/impl/M_InOut_Handler.java) just picks the \"first\" billto-location instead. It only looks at bpartner-relations if there is no bpartner-\"local\" billTo-location\r\n\r\nSuggestions: \r\n* from an user/admin perpective, it can be configured via bpartner-relations which have `C_BPartner_ID == C_BPartnerRelation_ID`.\r\n* from a developer's view, i think that we need, in certain cases to thread the case of multiple C_BPartner_Locations with no distinction (no \"default\" one) as if there was none at all. That way, the system should then try to check the bp-relations as next step.\r\n"}}
{"actor":{"display_login":"metas-ts"}}