From 292b22a386be9aba4f1a0dfc783b1e48502c58cd Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Tue, 14 Apr 2020 20:22:20 +0200 Subject: [PATCH] =?UTF-8?q?Template=20f=C3=BCr=20den=20Lieferschein=20erze?= =?UTF-8?q?ugt=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Template für den Lieferschein erzeugt --- documents/.gitkeep | 0 documents/index_thw_ls.tpl | 103 +++++++++++++++++++++++++++++++++++++ 2 files changed, 103 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..889a4c6 --- /dev/null +++ b/documents/index_thw_ls.tpl @@ -0,0 +1,103 @@ +{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.attr4 != ""} +
{s name="DocumentIndexEachSupplier"}{/s} {$position.attr4} + {/if} + {if $position.attr5 != ""} +
{$position.attr5} + {/if} + {if $position.attr3 != ""} +
{s name="DocumentIndexEachHint"}{/s} {$position.attr3} + {/if} + {if $position.attr6 != ""} +
{s name="DocumentIndexEachUN"}{/s} {$position.attr6} + {/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