{include file="common/head.tpl.html" title=$lang.global_article html5=true}
{html->load type="javascript" src="../`$smarty.const.JS_SRC_PATH`/articles_list.js"}{if $otype=='offers'} {cssbutton->window_fullscreen id="ppg_edit" string=$lang.global_edit query="op=add_article_offer&oid=`$id`" w_width=1500 w_height=1000 scroll="yes"} {elseif $otype=='contracts'} {cssbutton->window_fullscreen id="ppg_edit" string=$lang.global_edit query="op=add_article_contract&oid=`$id`" w_width=1500 w_height=1000 scroll="yes"} {elseif $otype=='orders'} {cssbutton->window_fullscreen id="ppg_edit" string=$lang.global_edit query="op=add_article_order&oid=`$id`" w_width=1500 w_height=1000 scroll="yes"} {elseif $otype=='invoices'} {cssbutton->window_fullscreen id="ppg_edit" string=$lang.global_edit query="op=add_article_invoice&oid=`$id`" w_width=1500 w_height=1000 scroll="yes"} {elseif $otype=='purchases'} {cssbutton->window_fullscreen id="ppg_edit" string=$lang.global_edit query="op=add_article_purchase&oid=`$id`" w_width=1500 w_height=1000 scroll="yes"} {/if} | {if ($otype=='offers') && $flow_status>2} {cssbutton->click name="ac" script="button_action(this)" value='to_order' string=$lang.offer_label_to_order} {cssbutton->click name="ac" script="button_action(this)" value='to_contract' string=$lang.offer_label_to_contract} {/if} {if ($otype=='orders') && $flow_status>2} {if $type=='EHA'}{cssbutton->click name="ac" script="button_action(this)" value='duplicate' string=$lang.orders_label_duplicate}{/if} {cssbutton->click name="ac" script="button_action(this)" value='to_invoice' string=$lang.orders_label_to_invoice} {cssbutton->click name="ac" script="button_action(this)" value='to_purchase' string=$lang.orders_label_to_purchase} {/if} {if ($otype=='contracts') && $flow_status>2} {if ($type == 'LV' || $type == 'LPV')} {cssbutton->click name="ac" script="messagebox.$('`$lang_ppg.contract_follow_up_type`', 'LV', 'LPV', function()`$LDELIM`ajax.exec(['telum','billing'], 'ajax_create_follow_up', `$LDELIM`ids: list.current_ids, oid: `$id`, type: 'LV'`$RDELIM`)`$RDELIM`, function()`$LDELIM`ajax.exec(['telum','billing'], 'ajax_create_follow_up', `$LDELIM`ids: list.current_ids, oid: `$id`, type: 'LPV'`$RDELIM`)`$RDELIM`).warn();" value='follow_up' string=$lang.contract_label_follow_up} {else} {cssbutton->click name="ac" script="button_action(this)" value='follow_up' string=$lang.contract_label_follow_up} {/if} {/if} |