{config_load file="$language/lang_$language.conf" section="print_order"} {* --- CSS STYLING --- *} {literal} {/literal} {* --- TITLE LOGIC (handles Proforma, etc.) --- *} {assign var="is_proforma" value=false} {if $COMMENTS_VISIBLE|strstr:"Proforma" || $COMMENTS_VISIBLE|strstr:"proforma"} {assign var="is_proforma" value=true} {/if} {if $is_proforma} Proforma Invoice {$ORDERS_ID_STRING} {elseif $FIBU_NUMBER} {$TITLE_ORDER}{$FIBU_NUMBER}-Auftrag{$ORDERS_ID_STRING|replace:"STORNIERT":"ORDER CANCELED"} {else} {$TITLE_ORDER}{$ORDERS_ID_STRING|replace:"STORNIERT":"ORDER CANCELED"} {/if} {* --- CURRENCY SWITCH --- *} {assign var="currency_sign" value="EUR"} {assign var="usd_mode" value=false} {if $COMMENTS_VISIBLE|strstr:"USD"} {assign var="currency_sign" value="USD"} {assign var="usd_mode" value=true} {/if} {* --- DETERMINE EXPORT FILENAME --- *} {assign var="export_filename" value=""} {* --- DETERMINE EXPORT FILENAME (used by PHP for PDF export) --- *} {assign var="export_filename" value=""} {assign var="is_proforma" value=false} {if $COMMENTS_VISIBLE|regex_replace:"/proforma/i":"" != $COMMENTS_VISIBLE} {assign var="is_proforma" value=true} {/if} {if $is_proforma} {assign var="export_filename" value="`$oID`-PI"} {elseif $TITLE_ORDER|lower == 'rechnung'} {assign var="export_filename" value="`$oID`-CI"} {elseif $TITLE_ORDER|lower == 'angebot'} {assign var="export_filename" value="Offer-`$oID`"} {elseif $TITLE_ORDER|lower == 'auftrag'} {assign var="export_filename" value="Order-`$oID`"} {else} {assign var="export_filename" value="Document-`$oID`"} {/if} {assign var="pdf_filename" value=$export_filename} {* --- EXCLUDE PLACEHOLDERS / PALLETS / SHIPPING --- *} {assign var="excludeIDs" value=[949,950,951,999,1000,1001]} {* optional shipping IDs *}
{if $is_proforma} PROFORMA INVOICE {$oID} {elseif $TITLE_ORDER == 'Angebot'} OFFER {$oID} {elseif $TITLE_ORDER == 'Auftrag'} ORDER {$oID} {elseif $TITLE_ORDER == 'Rechnung'} COMMERCIAL INVOICE {$oID} {else} {$TITLE_ORDER} {$oID} {/if}


{$STORE_WRAP}
{$address_label_shipping}

{if $cID}Customer No: {$cID}
{/if} {if $FIBU_NUMBER} {if $is_proforma} PI: {$FIBU_NUMBER}
{else} {$TITLE_ORDER|replace:"Auftrag":"Order"|replace:"Rechnung":"Commercial Invoice"|replace:"Angebot":"Offer"}: {$FIBU_NUMBER}
{/if} {else} {if $is_proforma} PI No.: {$oID}
{else} {$TITLE_ORDER|replace:"Auftrag":"Order"|replace:"Rechnung":"Commercial Invoice"|replace:"Angebot":"Offer"}: {$oID}
{/if} {/if} {* --- DATE LABEL --- *} {if $is_proforma} PI Date: {$DATE}
{else} Order Date: {$DATE}
{/if} Payment Method: {$PAYMENT_METHOD|replace:"Vorkasse":"Prepayment"}
{$STORE}

{if $IS_STORNO == '1'} ORDER CANCELED {/if}

{if $EBAY_SELLER_DATA}{/if} {if $EBAY_SELLER_DATA}{/if}
By Order Of:Shipping Address: {if $address_label_payment}Billing Address:{/if}
{$EBAY_SELLER_DATA.user}
{$EBAY_SELLER_DATA.store_name_wrap}
{$address_label_shipping} {$address_label_payment}
Comment: {$COMMENTS_VISIBLE}
{foreach item=product from=$YESORDER.POSITIONS} {if in_array($product.PRODUCTS_ID, [949,950,951])}
{$product.TITLE}
{/if} {/foreach}
{if $ORDER_TYPE == 'Angebot'}
Dear {if $EDITOR_DATA.customers_firstname}{$EDITOR_DATA.customers_firstname} {/if}{if $EDITOR_DATA.customers_lastname}{$EDITOR_DATA.customers_lastname}{/if},
Thank you for your interest in our products. We are pleased to present you with the following offer without obligation. We hope our proposal meets your expectations and look forward to providing you with excellent service.

{/if}
{if $is_proforma} ORDER CONTENTS {else} ORDER CONTENTS {/if}

{foreach item=product from=$YESORDER.POSITIONS} {if !in_array($product.PRODUCTS_ID, $excludeIDs) && $product.PRODUCTS_ID !== null} {/if} {/foreach}
Qty. Product Unit Price Total Price
{$product.QUANTITY} {$product.TITLE} {if $product.PROPERTIES} ({$product.PROPERTIES}){/if}
Item No: {$product.PRODUCTS_MODEL}
{$product.TEXT1|replace:"EUR":$currency_sign} {$product.TEXT2|replace:"EUR":$currency_sign}

{foreach item=order_total_values from=$order_total} {/foreach}
{$order_total_values.TITLE|replace:":":""|replace:"Zwischensumme, netto":"Subtotal, net"|replace:"Zwischensumme":"Subtotal"|replace:"Summe, netto":"Total (excluding tax)"|replace:"Versand":"Shipping"|replace:"Summe":"Total"} {$order_total_values.TEXT|replace:"EUR":$currency_sign}

Bank Details:
{if $usd_mode} SYD Green Energy GmbH & Co. KG | Commerzbank | IBAN: DE15 3004 0000 0777 26]27 01 | BIC: COBADEFFXXX {else} {if $BANK}{$BANK}{else}-{/if} {/if}
{if $widerruf}

{$widerruf}

{/if} {if $conditions}

{$conditions}

{/if}