{"action":"created","issue":{"url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra/issues/33","repository_url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra","labels_url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra/issues/33/comments","events_url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra/issues/33/events","html_url":"https://github.com/lajayuhniyarsyah/ERP-Supra/issues/33","id":132623327,"number":33,"title":"Return DN (to be refund) tidak bisa tarik dari OP lagi","user":{"login":"lajayuhniyarsyah","id":6639871,"avatar_url":"https://avatars.githubusercontent.com/u/6639871?v=3","gravatar_id":"","url":"https://api.github.com/users/lajayuhniyarsyah","html_url":"https://github.com/lajayuhniyarsyah","followers_url":"https://api.github.com/users/lajayuhniyarsyah/followers","following_url":"https://api.github.com/users/lajayuhniyarsyah/following{/other_user}","gists_url":"https://api.github.com/users/lajayuhniyarsyah/gists{/gist_id}","starred_url":"https://api.github.com/users/lajayuhniyarsyah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lajayuhniyarsyah/subscriptions","organizations_url":"https://api.github.com/users/lajayuhniyarsyah/orgs","repos_url":"https://api.github.com/users/lajayuhniyarsyah/repos","events_url":"https://api.github.com/users/lajayuhniyarsyah/events{/privacy}","received_events_url":"https://api.github.com/users/lajayuhniyarsyah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ekachandrasetiawan","id":5061661,"avatar_url":"https://avatars.githubusercontent.com/u/5061661?v=3","gravatar_id":"","url":"https://api.github.com/users/ekachandrasetiawan","html_url":"https://github.com/ekachandrasetiawan","followers_url":"https://api.github.com/users/ekachandrasetiawan/followers","following_url":"https://api.github.com/users/ekachandrasetiawan/following{/other_user}","gists_url":"https://api.github.com/users/ekachandrasetiawan/gists{/gist_id}","starred_url":"https://api.github.com/users/ekachandrasetiawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekachandrasetiawan/subscriptions","organizations_url":"https://api.github.com/users/ekachandrasetiawan/orgs","repos_url":"https://api.github.com/users/ekachandrasetiawan/repos","events_url":"https://api.github.com/users/ekachandrasetiawan/events{/privacy}","received_events_url":"https://api.github.com/users/ekachandrasetiawan/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-02-10T07:01:56Z","updated_at":"2016-02-15T02:23:06Z","closed_at":"2016-02-15T02:20:19Z","body":"Saat  ini saat OP ditarik dari SO akan mengecek nilai sisa dari OP yang sudah DONE.\r\n\r\nBug terjadi jika DN di retur dan akan di kirim barang penggantinya\r\n\r\nPada OP tidak bisa menarik SO item lagi dikarenakan stattus nya sudah clear jumlah item yang sudah jadi OP\r\n\r\n\r\n\r\nYang harus dilakukan \r\n- [x] Di DN Line ada field **refunded_item** dimana untuk flag berapa qty barang yang sudah di retur namun di modul baru field ini tidak berfungsi dikarenakan yang di retur adalah item yang ada di dn.line.material. Copy field ini ke dn.material.line **dengan nama refunded_item_qty**\r\n- [x] Pastikan fields refunded_item_qty jalan ketika return dan terisi sesuai jumlah qty yang sudah di retur\r\n- [x] Di DN Line ada op_line_id dimana field ini tidak akan terpakai jiuka diimplementasikan dengan module update ini,, **op_line_id seharusnya ada di dn.line.material**\r\n- [x] Pastikan op_line_id di dn.line.material terisi jika di save datanya\r\n- [x] Di OP line ada field **dn_line_material** dimana bertipe one2many ke dn.line.material,, gunanya untuk link object saja (untuk pengecekan ke object dn yang sudah terbentuk)\r\n- [x] Ketika field field di atas sudah diisi maka method **sale_change()** jumlah qty sisa bisa dikondisikan ditambah refunded_item yang ada di dn.line.material dengan cara akses via field __dn_line_material__ yang ada di op\r\n\r\nClass DN di package sbm_delivery_note:\r\n![Image of class DN](http://snag.gy/BvBoS.jpg)\r\n\r\n\r\n\r\n\r\n\r\n\r\nada masukkan @ekachandrasetiawan ??"},"comment":{"url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra/issues/comments/184031587","html_url":"https://github.com/lajayuhniyarsyah/ERP-Supra/issues/33#issuecomment-184031587","issue_url":"https://api.github.com/repos/lajayuhniyarsyah/ERP-Supra/issues/33","id":184031587,"user":{"login":"ekachandrasetiawan","id":5061661,"avatar_url":"https://avatars.githubusercontent.com/u/5061661?v=3","gravatar_id":"","url":"https://api.github.com/users/ekachandrasetiawan","html_url":"https://github.com/ekachandrasetiawan","followers_url":"https://api.github.com/users/ekachandrasetiawan/followers","following_url":"https://api.github.com/users/ekachandrasetiawan/following{/other_user}","gists_url":"https://api.github.com/users/ekachandrasetiawan/gists{/gist_id}","starred_url":"https://api.github.com/users/ekachandrasetiawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekachandrasetiawan/subscriptions","organizations_url":"https://api.github.com/users/ekachandrasetiawan/orgs","repos_url":"https://api.github.com/users/ekachandrasetiawan/repos","events_url":"https://api.github.com/users/ekachandrasetiawan/events{/privacy}","received_events_url":"https://api.github.com/users/ekachandrasetiawan/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T02:23:06Z","updated_at":"2016-02-15T02:23:06Z","body":"OK"}}