Even though scripting may allow you to exceed those line limits, consider carefully the impact of it. If someone later has to edit or just view that invoice, or if another script has to run on it, the excessive number of lines can still cause issues in the future, with long wait times, or scripts running out of governance.
NetSuite even warns you that more than 1,000 lines can cause issues.