SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › Best way to modify the layout of SI
Tagged: custom, description, master_2020
- This topic has 11 replies, 2 voices, and was last updated 3 years, 7 months ago by ppmt.
-
AuthorPosts
-
April 11, 2021 at 10:42 am #1469ppmtParticipant
I have been running SI for a long time now and in the past I use to update some files to make it do what I want (namely details.tpl, header.tpl, itemised.tpl) and put them in /custom/default_template/invoices.
I have now updated to master_2020 and was about to do the same but the files are so different that I am wondering if I am doing it the wrong way.
I keep reading about hooks but can’t really understand how to do it or if it can do what I want.
Basically I need to add an input to my invoices so I can enter some text (in my case a date).
So I need to go from :
Quantity | Item | Tax | Unit Price
to:
Description | Quantity | Item | Tax | Unit Price
Any help is appreciated.
April 12, 2021 at 3:43 am #1470RRowleyParticipantZip your old files from the custom directory and attach them to a response to this message. I’ll look to see what you have.
- This reply was modified 3 years, 7 months ago by RRowley.
April 12, 2021 at 5:28 am #1472ppmtParticipantHello,
I have attached a tar.gz from the custom/default_templates/invoicesThere are from the version I am still using until I adapt to master-2020
Version is:
version.update_date = 20181012 version.name = 2018.1.3
Yes very old….
April 12, 2021 at 6:11 am #1473ppmtParticipantI attached a zip file instead
Attachments:
April 12, 2021 at 10:18 am #1475RRowleyParticipantBefore pursuing a change, have you used the new invoice form as it comes with SI? The default templates show what you ask for with the exception of the description being on the line below the “Quantity”, etc. You just have to select the “Show Details” button.
This form avoids overflow when you have multiple tax ids, or a long description.
If the issue is that you want to access the screen with detail boxes display by default, I think that is more easily accomplished than rewriting the screens. Although the text box for the description would still follow on the line after the item details.
First try and work with what you get by default. If this causes you headaches, let me know and I’ll see what can be done.
April 12, 2021 at 12:41 pm #1478ppmtParticipantI have thought about it after each upgrade but I hitting a wall with my other user (wife) who got used to the way I “designed” it.
Is there a way to make it so that the description field is always displayed rather than hidden by default?
If I can convince her it for sure would make my life easier.
My next tasks will be to redo the template as it doesn’t seem to be compatible with the new version anymore.
Thanks for your time
April 13, 2021 at 9:41 am #1480RRowleyParticipantIf you have no problem with the description being displayed where it is now, I can look at implementing a SI Defaults option to have it showing on new invoices rather than hidden. This will be a master_2020 feature though.
April 13, 2021 at 10:44 am #1481ppmtParticipantThis would be a start definitely but I understand if that is not a priority.
I have no idea what kind of massive effort it would require but may be have a configuration where you could select what and in which order to display various filed would be a good idea?
Again I can see that it it is not a priority
April 13, 2021 at 11:02 am #1482RRowleyParticipantI just upload the change to add an option to the system defaults table that allows you to enter the invoice new and edit screens with the item descriptions open. Give it a try and let me know how this works out. Note that this is a master_2020 level change.
- This reply was modified 3 years, 7 months ago by RRowley.
April 13, 2021 at 12:56 pm #1484ppmtParticipantHi,
Just uploaded and got the following update:SQL patch 323, Add invoice description open option has not been applied to the database
After I could enable the feature and it all works. The description is open by default.
That’s great! I will show it to my wife and see what she thinks. It would certainly makes my life simpler.
Thank you
PS: my second “feature” request would be good too 😉
April 13, 2021 at 1:07 pm #1485RRowleyParticipantNot sure what you mean by the “second” feature request. If you mean to have it all displayed on one line with description first, I’m less inclined to do that as it impacts the space available for people the have multiple taxes. The line currently handles up to three taxes per item. Also, I don’t see the benefit of such a change given the complexity of template changes to maintain it.
April 13, 2021 at 1:54 pm #1486ppmtParticipantFair enough. That option to always display the description is a good start.
Thanks a lot
-
AuthorPosts
- You must be logged in to reply to this topic.
Recent Comments