From 6439861042bfe17b5f5250f248be4c43373fe087 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Tue, 14 Apr 2020 18:47:28 +0200 Subject: [PATCH] =?UTF-8?q?Template=20f=C3=BCr=20den=20Lieferschein=20erze?= =?UTF-8?q?ugt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- documents/.gitkeep | 0 documents/index_thw_ls.tpl | 92 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) delete mode 100644 documents/.gitkeep create mode 100644 documents/index_thw_ls.tpl diff --git a/documents/.gitkeep b/documents/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/documents/index_thw_ls.tpl b/documents/index_thw_ls.tpl new file mode 100644 index 0000000..0894a29 --- /dev/null +++ b/documents/index_thw_ls.tpl @@ -0,0 +1,92 @@ +{extends file='documents/index.tpl'} + +{block name="document_index_head_bottom"} +

{s name="DocumentIndexShippingNumber"}{/s} {$Document.id}

+ {s name="DocumentIndexPageCounter"}{/s} +{/block} +{block name="document_index_selectAdress"} + {assign var="address" value="shipping"} +{/block} +{block name="document_index_head_right"} + {$smarty.block.parent} + {if $Document.bid}{s name="DocumentIndexInvoiceID"}{/s} {$Document.bid}
{/if} +{/block} + +{block name="document_index_table_header"} + + + + + + + + + + +{/block} + +{assign var="totWeight" value="0"} +{assign var="cal_weight" value="0"} +{assign var="totADR" value="0"} +{block name="document_index_table_each"} + {if ($position.modus == 0 || $position.modus == 1) && $position.name != 'Versandkosten'} + + + + + + + + + {/if} +{/block} + +{block name="document_index_amount"} +
+
+ {s name="DocumentIndexHeadPosition"}{/s} + + {s name="DocumentIndexHeadArticleID"}{/s} + + {s name="DocumentIndexHeadName"}{/s} + + {s name="DocumentIndexHeadQuantity"}{/s} + + {s name="DocumentIndexHeadWeigt"}{/s} + + {s name="DocumentIndexHeadADR"}{/s} +
+ {$number+1} + + {$position.articleordernumber|truncate:14:""} + + {s name="DocumentIndexPositionNameDefault"}{$position.name|nl2br|wordwrap:65:"
\n"}{/s} + {if $position.attr3 != ""}
{s name="DocumentIndexEachHint"}{/s} {$position.attr3} {/if} +
+ {$position.quantity} + + {$cal_weight = $position.attr1 * $position.quantity} + {if $cal_weight < 1000} + {$cal_weight} g + {else} + {($cal_weight/1000)|string_format:"%.1f"} kg + {/if} + + {$totWeight = $totWeight + $cal_weight} + + {$position.attr2 * $position.quantity} P. + {$totADR = $totADR + ($position.attr2 * $position.quantity)} +
+ + + + + + + + + + +
{s name="DocumentIndexTotalWeight"}{/s}:{($totWeight/1000)|string_format:"%.1f"} kg
{s name="DocumentIndexTotalADR"}{/s}:{$totADR} Punkte
+ +{/block} \ No newline at end of file