Hi Everyone,
I am working on a custom Purchase Order print format in ERPNext and would like to know whether the following requirement is possible in ERPNext Vanilla or if customization is required.
My requirement is to enter Terms & Conditions only for a specific Purchase Order (one-time use) and display them in the print format above the footer/signature section.
The print format should behave dynamically:
-
The Item table should automatically adjust its height based on the number of items.
-
If there is only one item, it should use only the required space.
-
If there are multiple items, the table should expand automatically.
-
No fixed height should be required for the Item table.
-
The Terms & Conditions section should also expand dynamically based on its content.
-
After the Terms & Conditions section, the Footer/Signature section should appear immediately below it.
-
No large blank spaces should appear between the Item table, Terms & Conditions, and Footer sections.
Expected Layout:
Purchase Order Header
Supplier Details
Item Table (Dynamic Height)
Terms & Conditions (One-Time PO Terms, Dynamic Height)
Footer / Signature Section
Current Issue:
When using custom HTML/CSS print formats, footer positioning becomes inconsistent. Fixed heights create unnecessary blank spaces when there are fewer items or shorter terms. Since both the Item table and Terms & Conditions content can vary from one Purchase Order to another, I need a fully dynamic layout where the footer always appears immediately after the last content section.
My Questions:
-
Is this possible in ERPNext Vanilla?
-
Can this be achieved using Print Format Builder alone?
-
Is custom HTML/CSS required?
-
What is the recommended approach for creating a fully dynamic Purchase Order print format with dynamic item rows, dynamic terms content, and a footer that appears directly below the content?
-
Has anyone implemented a similar Purchase Order print format successfully?
Any guidance, examples, or best practices would be greatly appreciated.
Thank you.