{config_load file=$language_path section="general"} {config_load file=$language_path section="products"} {config_load file=$language_path section="distributor_order"} {yes_admin_page_menu main_title=$HEADING_TITLE buttons=$PAGE_HEADING_MENU_BUTTONS additional_title=$ADDITIONAL_TITLE}
{if $gen_invoice_mode} {elseif $edit_mode} {$change_form}
Folgende Produkte wurden bereits per Wareneingang gebucht und können nun ausgewählt werden um eine Lieferantenrechnung zu generieren.

{$invoice_form} {foreach name=blah item=product from=$products} {if $product.qty_rueckbuch > 0} {if $product.allow_tax == 1} {/if} {assign var="total" value=$product.price*$product.qty_rueckbuch} {/if} {/foreach}
  Eingang In Rechng. Produkte Art.-Nr. Preis ohne MwSt MwSt Preis incl. MwSt Summe
{$product.invoice_qty_select} {$product.qty_rueckbuch} Stk. {$product.rueckbuch_invoice_qty} Stk. {$product.qty} x {$product.name} {if $product.distributor_number != ''}
Lieferantennummer: {if $product.distributor_products_link != ''}{/if}{$product.distributor_number}{if $product.distributor_products_link != ''}{/if}{/if}
{$product.model} [ID {$product.id}] {$product.price_netto|string_format:"%.2f"} {$currency}{$product.tax|string_format:"%.2f"}% {$product.price|string_format:"%.2f"} {$currency}{$total|string_format:"%.2f"} {$currency}
Erstelle Rechnung aus ausgewählten Produkten

  {#distributor_address#} {#shipping_address#}
{#company#} {$distributor_company}  {$distributor_delivery_company} 
{#name#} {$distributor_name}  {$distributor_delivery_name} 
{#street#} {$distributor_street_address}  {$distributor_delivery_street_address} 
{#suburb#} {$distributor_suburb}  {$distributor_delivery_suburb} 
{#postcode#} {#city#} {$distributor_postcode} {$distributor_city} {$distributor_delivery_postcode} {$distributor_delivery_city}
{#country#} {$distributor_country}  {$distributor_delivery_country} 
{#telephone#} {$distributor_telephone}  {$distributor_delivery_telephone} 

{if $estimated_date_receipt} {else} {/if} {if $date_receipt} {/if}
{#email_address#}: {$distributor_email_address}
{#distributor#} ID: {$distributor_ID}
{#estimated_date_receipt#}: {$estimated_date_receipt}
{#estimated_date_receipt#}: Kein Termin hinterlegt
{#date_receipt#}: {$date_receipt}
{$TEXT_DISTRIBUTOR_PAYMENT_TERMS}: {$payment_terms}

{if $products.0.allow_tax == 1} {/if} {foreach item=product from=$products} {if $product.allow_tax == 1} {/if} {foreach from=$product.collies item=colli} {/foreach} {/foreach}
{#incoming#} {#products#} {#products_id#} {#products_model#} {#price_netto#}{#tax#} {#price_brutto#}{#price_total#}
{$product.qty_rueckbuch} {#quantity_short#} {$product.qty} x {$product.name} {if $product.distributor_number != ''}
{#distributor_product_number#}: {if $product.distributor_products_link != ''}{/if} {$product.distributor_number} {if $product.distributor_products_link != ''}{/if} {/if} {if $product.properties.0}
{#product_properties#}
{foreach from=$product.properties item=property} {$property.property_title}: {$property.property_value}
{/foreach} {/if}
{$product.pID} {$product.model} {$product.price_netto}{$product.tax}% {$product.price}{$product.final_price}
  {$colli.qty} x {$colli.name} {if $colli.distributor_number != ''}
{#distributor_product_number#}: {$colli.distributor_number} {/if}
{$colli.id} {$colli.model} / Kolli pID {$colli.stuecklisten_id}
{foreach name=blah2 item=total from=$totals} {/foreach}
{$total.title} {$total.text}

{#distributor_order_comment#} {#edit#}
{$comments_visible}


{#current_distributor_orders_status#}: {$orders_status}

{#comments#}: {$orders_comments}

{if $change_status_link != ''} {#distributor_order_change_status#}

{/if} {if $button_status_bestellt} {/if} {if $button_status_eingetroffen} {/if} {if $button_generate_invoice} {/if} {if $button_generate_invoice_we} {/if}
{$button_status_bestellt}{$button_status_eingetroffen}{$button_generate_invoice}{$button_generate_invoice_we} {$backlink}

{if $history_array} {foreach name=blahh item=history from=$history_array} {/foreach} {else} {/if}
{#date#} {#text_distributor_notified#} Status {#comment#} {#editor#}
{$history.date_added} {$history.notified} {$history.status} {$history.comments}  {$history.editor} 
Keine Historie
{else}
{$orders_form}
{$TEXT_SEARCH_DOID} LB-Nr: {$input_doID}{$input_action}
{$pid_form}
{$TEXT_SEARCH_PID} pID: {$input_pID}
{$status_form}
{$TEXT_SEARCH_STATUS} Status: {$input_status}
{foreach name=blahor item=order from=$orders_array} {$order.tr} {$order.ototal} {$order.otax} {$order.oship} {$order.osubtotal} {/foreach}
Lieferant Nr. Bestellwert Status Erwarteter Wareneingang Wareneingang  
{$split}
{$order.statusOID}  {$order.distributor_link} {$order.distributor_orders_id}  {$order.order_total}  {$order.orders_status_name}  {$order.estimated_date_receipt}  {$order.date_receipt}  {$order.content_menu_link}


{/if}