{"action":"created","issue":{"url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/4493","labels_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/4493/labels{/name}","comments_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/4493/comments","events_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/4493/events","html_url":"https://github.com/Dolibarr/dolibarr/issues/4493","id":128433793,"number":4493,"title":"DIscussion : How do you manage levels of packagings ?","user":{"login":"BebZ","id":3694135,"avatar_url":"https://avatars.githubusercontent.com/u/3694135?v=3","gravatar_id":"","url":"https://api.github.com/users/BebZ","html_url":"https://github.com/BebZ","followers_url":"https://api.github.com/users/BebZ/followers","following_url":"https://api.github.com/users/BebZ/following{/other_user}","gists_url":"https://api.github.com/users/BebZ/gists{/gist_id}","starred_url":"https://api.github.com/users/BebZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BebZ/subscriptions","organizations_url":"https://api.github.com/users/BebZ/orgs","repos_url":"https://api.github.com/users/BebZ/repos","events_url":"https://api.github.com/users/BebZ/events{/privacy}","received_events_url":"https://api.github.com/users/BebZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T23:38:50Z","updated_at":"2016-01-25T16:32:33Z","closed_at":null,"body":"Hello Community ;)\r\nHow do you manage levels of pacaging on your products ? \r\n\r\nFor example you can buy per carton to your supplier (easy for him, good price for you) \r\nbut you sell the boxes to your customers...\r\nbut you can also sell the unit that is in the box... \r\nor buy a pallet to your supplier and sell the units to customers...\r\n\r\nSometimes it is really messy and tricky to know what price to put in the product's supplier price\r\nand the product's customer price... (because if it's wrong your virtual margin is wrong : the buy price of a unit is the one of a carton/pallet)\r\n\r\nThere is no way to handle that more clearly ? And also if it is clearer, it will be more comfortable to remember the numbers of units in a box, and the number of boxes in cartons, and the .... blablabla..."},"comment":{"url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/comments/174569863","html_url":"https://github.com/Dolibarr/dolibarr/issues/4493#issuecomment-174569863","issue_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/4493","id":174569863,"user":{"login":"rdoursenaud","id":1210367,"avatar_url":"https://avatars.githubusercontent.com/u/1210367?v=3","gravatar_id":"","url":"https://api.github.com/users/rdoursenaud","html_url":"https://github.com/rdoursenaud","followers_url":"https://api.github.com/users/rdoursenaud/followers","following_url":"https://api.github.com/users/rdoursenaud/following{/other_user}","gists_url":"https://api.github.com/users/rdoursenaud/gists{/gist_id}","starred_url":"https://api.github.com/users/rdoursenaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdoursenaud/subscriptions","organizations_url":"https://api.github.com/users/rdoursenaud/orgs","repos_url":"https://api.github.com/users/rdoursenaud/repos","events_url":"https://api.github.com/users/rdoursenaud/events{/privacy}","received_events_url":"https://api.github.com/users/rdoursenaud/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T16:32:33Z","updated_at":"2016-01-25T16:32:33Z","body":"I'd classify that as a feature request.\r\n\r\nDolibarr doesn't currently provide a streamlined workflow for that use case.\r\nThis is a management problem that is not easy to solve because there are various ways to do this.\r\n\r\nI think the first step is to define the \"storage unit\".\r\nIe. for that product, what's the unit I stock and sell. Is it a single item, is it a box…\r\nI'd use the smallest subdivision I actually handle. Be it by buying, managing it in stock or selling it.\r\nIe. single items.\r\n\r\nFrom there, I'd use \"virtual\" products to create the greater containers.\r\nIe. Box is 10 single items, shipment box is 10 boxes and pallet is 10 shipment boxes.\r\n\r\nThen I'd use these to place my orders.\r\n\r\nI believe some code needs to be written to help with receiving the orders and breaking the virtual products into the \"storage unit\".\r\n\r\nNeeds more thought…"}}