{"id":19373427,"url":"https://github.com/gmihaylov/netsuite-qr-code-generator","last_synced_at":"2026-06-11T22:31:22.996Z","repository":{"id":215705613,"uuid":"739590210","full_name":"gmihaylov/netsuite-qr-code-generator","owner":"gmihaylov","description":"Simple SDF project that demonstrates how to create \u0026 render server side generated QR code within NetSuite.","archived":false,"fork":false,"pushed_at":"2024-01-06T02:03:06.000Z","size":274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T14:56:11.502Z","etag":null,"topics":["netsuite","netsuite-customisation","suitescript2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmihaylov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-06T00:07:23.000Z","updated_at":"2024-10-12T23:18:17.000Z","dependencies_parsed_at":"2024-01-06T02:44:43.390Z","dependency_job_id":"69c56bb7-ce23-4673-a177-ee00d8e814cc","html_url":"https://github.com/gmihaylov/netsuite-qr-code-generator","commit_stats":null,"previous_names":["gmihaylov/netsuite-qr-code-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gmihaylov/netsuite-qr-code-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmihaylov%2Fnetsuite-qr-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmihaylov%2Fnetsuite-qr-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmihaylov%2Fnetsuite-qr-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmihaylov%2Fnetsuite-qr-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmihaylov","download_url":"https://codeload.github.com/gmihaylov/netsuite-qr-code-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmihaylov%2Fnetsuite-qr-code-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34221150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netsuite","netsuite-customisation","suitescript2"],"created_at":"2024-11-10T08:28:18.025Z","updated_at":"2026-06-11T22:31:22.981Z","avatar_url":"https://github.com/gmihaylov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetSuite QR Code Generator\nSimple SDF project that demonstrates how to create \u0026 render server side generated QR code within NetSuite.\n\n## Example:\n![App Screenshot](screenshots/netsuite_qr_code.png)\n\n## Deployment\n- NetSuiteQRCodeGenerator_UE is deployed on the Sales Order record, but can be deployed on any other transaction or/and custom record.\n- The QR code is generated on beforeLoad (scriptContext.UserEventType.VIEW) and rendered in the INLINEHTML field.\n- QR code is generated on-the-fly, at the server side.\n- QR code can show any data you want (this can be customized in getData() function).\n- NetSuiteQRCodeGenerator_SL just show how to implement the QR code in Suitelets.\n\n## Usage\nHow to customize QR code output:\n- In NetSuiteQRCodeGenerator_UE, getData function:\n\n  - Uncomment this line if you want to generate QR code for the transaction URL:\n    - ``return resolveRecordUrl(newRecord.type, newRecord.id);``\n  - Uncomment this line if you want to generate QR code for the Transaction ID:\n    - ``return newRecord.getValue({fieldId: 'tranid'});``\n  - Uncomment this line if you want to generate QR code for the memo field value (default):\n    - ``return newRecord.getValue({fieldId: 'memo'});``\n  - Want to customize more? Just write your code in getData() and use your imagination:\n    - ``return \"Here is my QR code!\"``\n    - or\n    - ``return 'This is a generated QR code for ' + newRecord.getValue({fieldId: 'anyOtherField'});``\n- How to make the QR code bigger?\n  - Increase value of CELL_SIZE in NetSuiteQRCodeGenerator_UE.\n\n## Input / Output\n![App Screenshot](screenshots/gif_jif_meme.jpeg)\n\nInput (as string): \n\n``Total is more than 100``\n\nOutput (Base64 encoded GIF):\n\n``data:image/gif;base64,R0lGODdhBgEGAYA ... some data omitted ... IWUAAAOw==``\n\nRendered in INLINEHTML field as:\n\n``\u003cimg src=\"data:image/gif;base64,.......\" alt=\"QR Code\"/\u003e``\n\n## Credits\n- QR Code Generator for JavaScript (http://www.d-project.com/)\n\n## Screenshots\n![App Screenshot](screenshots/screenshot2.png)\n![App Screenshot](screenshots/screenshot1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmihaylov%2Fnetsuite-qr-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmihaylov%2Fnetsuite-qr-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmihaylov%2Fnetsuite-qr-code-generator/lists"}