Date: 2025-02-06 04:16:31
Score: 1.5
Natty:
emphasized text✅ Customizations Added: * Improved the code and customized it further. * Added the currency format $${item.amount?string("0.00")}. * Added alternating row colors to the table (#ffffff and #f9f9f9). * Calculated## Heading ## the grand total. * Added an extra custom field (custitem_extra_details) to each row in the table. * Improved the overall table styling to impremphasized textove readability. <#if record.item?has_content> <#assign with_units = false> <#assign with_quantity = false> <#assign with_rate = false> <#list record.item as item> <#if item.units?has_content><#assign with_units = true></#if> <#if item.quantity?has_content><#assign with_quantity = true></#if> <#if item.rate?has_content && item.rate?length != 0><#assign with_rate = true></#if> </#list> Image Description SKU <#if with_units>Units</#if> <#if with_quantity>Qty</#if> <#if with_rate>Unit Price</#if> Subtotal Extra Details <#assign totalAmount = 0> <#list record.item as item> <#if item.item.custitem_atlas_item_image??> <#else> No Image </#if> ${item.purchasedescription!''} ${item.item} <#if with_units>${item.units!''}</#if> <#if with_quantity>${item.quantity!''}</#if> <#if with_rate>$${item.rate?string("0.00")}</#if> $${item.amount?string("0.00")} ${item.item.custitem_extra_details!''} <#assign totalAmount += item.amount> </#list> Grand Total: $${totalAmount?string("0.00")} emphasized text </#if>
Reasons:
- Long answer (-1):
- No code block (0.5):
- Contains question mark (0.5):
- Single line (0.5):
- Low reputation (1):
Posted by: Om Darade