{"action":"opened","issue":{"url":"https://api.github.com/repos/BoletoNet/boletonet/issues/253","repository_url":"https://api.github.com/repos/BoletoNet/boletonet","labels_url":"https://api.github.com/repos/BoletoNet/boletonet/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/BoletoNet/boletonet/issues/253/comments","events_url":"https://api.github.com/repos/BoletoNet/boletonet/issues/253/events","html_url":"https://github.com/BoletoNet/boletonet/issues/253","id":171207520,"number":253,"title":"Banco do Brasil - Modalidade de Cobrança","user":{"login":"edsonfast","id":11458683,"avatar_url":"https://avatars.githubusercontent.com/u/11458683?v=3","gravatar_id":"","url":"https://api.github.com/users/edsonfast","html_url":"https://github.com/edsonfast","followers_url":"https://api.github.com/users/edsonfast/followers","following_url":"https://api.github.com/users/edsonfast/following{/other_user}","gists_url":"https://api.github.com/users/edsonfast/gists{/gist_id}","starred_url":"https://api.github.com/users/edsonfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsonfast/subscriptions","organizations_url":"https://api.github.com/users/edsonfast/orgs","repos_url":"https://api.github.com/users/edsonfast/repos","events_url":"https://api.github.com/users/edsonfast/events{/privacy}","received_events_url":"https://api.github.com/users/edsonfast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T16:31:43Z","updated_at":"2016-08-15T16:31:43Z","closed_at":null,"body":"A modalidade de cobrança/código da carteira, enviada no campo 58-58 do segmento P CNAB240, não possui campo na classe Boleto para ser definida pelo usuário/sistema, conforme código abaixo:\r\n\r\nBanco_Brasil linha 1371\r\n`if (boleto.Carteira.Equals(\"17-019\") || boleto.Carteira.Equals(\"17-027\"))\r\n    _segmentoP += \"7\";\r\nelse\r\n    _segmentoP += \"0\";`\r\n\r\nSegundo banco do brasil:\r\nhttp://www.bb.com.br/docs/pub/emp/empl/dwn/CbrVer04BB.pdf\r\n14.3P Código da Carteira 58 58 1 - Numérico C006  Informar\r\n\r\n- 1 – para carteira 11/12 na modalidade Simples;\r\n- 2 ou 3 – para carteira 11/17 modalidade Vinculada/Caucionada e carteira 31;\r\n- 4 – para carteira 11/17 modalidade Descontada e carteira 51; \r\n- 7 – para carteira 17 modalidade Simples\r\n\r\nSugiro ter novo campo na classe boleto para poder informar a modalidade de cobrança\r\n`                if (boleto.ModalidadeCobranca != null) {\r\n                    _segmentoP += boleto.ModalidadeCobranca;\r\n                } else {\r\n                    if (boleto.Carteira.Equals(\"17-019\") || boleto.Carteira.Equals(\"17-027\"))\r\n                        _segmentoP += \"7\";\r\n                    else\r\n                        _segmentoP += \"0\";\r\n                }`\r\n"}}
{"actor":{"display_login":"edsonfast"}}