| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| charactersType=type, | ||
| numberOfCharacters=len, | ||
| defaultCharacter={numeric: "0", alphaNumeric: " "}[type] | ||
| defaultCharacter={numeric: "0", alphaNumeric: " ", alphaNumericRightAligned: "0"}[type] |
There was a problem hiding this comment.
para alfanumerico é para completar com espaço e não com zero. Zero é usado somente para o numerico
Sorry, something went wrong.
| structs = [ | ||
| (17, 18, 1, numeric, "1" if len(user.identifier) == 11 else "2"), # 1 - CPF/ 2 - CNPJ | ||
| (18, 33, 15, numeric, user.identifier), # CPF/CNPJ do Pagador | ||
| (18, 33, 15, alphaNumericRightAligned, user.identifier), # CPF/CNPJ do Pagador |
There was a problem hiding this comment.
comentario desalinhado
Sorry, something went wrong.
| structs = [ | ||
| (153, 154, 1, numeric, "1" if len(user.identifier) == 11 else "2"), # 1 - CPF/ 2 - CNPJ | ||
| (154, 169, 15, numeric, user.identifier), # CPF/CNPJ do Sacador Avalista | ||
| (154, 169, 15, alphaNumericRightAligned, user.identifier), # CPF/CNPJ do Sacador Avalista |
There was a problem hiding this comment.
alinhar o comentario
Sorry, something went wrong.
| """ | ||
| if type(string) != str: return defaultCharacter * numberOfCharacters | ||
| if len(string) > numberOfCharacters: return string[:numberOfCharacters] | ||
| if charactersType == numeric: return defaultCharacter * (numberOfCharacters - len(string)) + string |
There was a problem hiding this comment.
porque foi removido essa condicional ?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.