* Copyright (C) 2010-2011 Laurent Destailleur * Copyright (C) 2012 Christophe Battarel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * * Need to have following variables defined: * $conf * $langs * $dateSelector * $this (invoice, order, ...) * $line defined */ ?> global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>>
trans('AddNewLine'); ?> trans('VAT'); ?> trans('PriceUHT'); ?> trans('PriceUTTC'); ?> trans('Qty'); ?> trans('ReductionShort'); ?> margin->enabled)) { ?> trans('BuyingPrice'); ?> global->DISPLAY_MARGIN_RATES)) { $colspan++; $colspan2++; } if (! empty($conf->global->DISPLAY_MARK_RATES)) { $colspan++; $colspan2++; } if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) { $colspan2++; } } ?>  
" /> product->enabled) || ! empty($conf->service->enabled)) { ?> product->enabled) || ! empty($conf->service->enabled)) { // show/hide, update elements after select $ajaxoptions=array( 'update' => array( 'select_type' => 'type', 'product_ref' => 'value', 'product_label' => 'label2', 'price_base_type' => 'pricebasetype', 'price_ht' => 'price_ht', 'origin_price_ht_cache' => 'price_ht', 'origin_tva_tx_cache' => 'tva_tx', 'origin_price_ttc_cache' => 'price_ttc', 'qty' => 'qty' //'remise_percent' => 'discount' ), 'update_textarea' => array( 'product_desc' => 'desc' ), //'show' => array( //'price_base_type_area' //), 'disabled' => array( 'select_type' ) ); $form->select_produits('', 'idprod', '', $conf->product->limit_size, $buyer->price_level, 1, 2, '', 3, $ajaxoptions); } ?> | textwithtooltip($langs->trans('AddThisProductCard'), $langs->trans('HelpAddThisProductCard'),1,0,'','',3); ?> textwithtooltip($langs->trans('AddThisServiceCard'), $langs->trans('HelpAddThisServiceCard'),1,0,'','',3); ?> > select_type_of_lines((GETPOST('type')?GETPOST('type'):-1), 'type', 1); ?>     | trans('PriceBase'); ?>: GETPOST('fk_parent_line')); $reshook=$hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action); } ?> > global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>> global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT; $enable=(isset($conf->global->FCKEDITOR_ENABLE_DETAILS)?$conf->global->FCKEDITOR_ENABLE_DETAILS:0); $doleditor=new DolEditor('product_desc', GETPOST('product_desc'), '', 150, 'dolibarr_details', '', false, true, $enable, $nbrows, 70); $doleditor->Create(); ?> load_tva('tva_tx', (GETPOST('tva_tx')?GETPOST('tva_tx'):-1), $seller, $buyer); ?> % margin->enabled)) { ?> global->DISPLAY_MARGIN_RATES)) $colspan++; if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++; } ?> service->enabled) && ! empty($dateSelector)) { if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) $colspan = 12; else $colspan = 11; if (! empty($conf->margin->enabled)) { if (! empty($conf->global->DISPLAY_MARGIN_RATES)) $colspan++; if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++; } ?> > global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?$conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE:''); echo $langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' '; echo $form->select_date('','date_start',$hourmin,$hourmin,1,"addproduct"); echo ' '.$langs->trans('to').' '; echo $form->select_date('','date_end',$hourmin,$hourmin,1,"addproduct"); ?> margin->enabled)) { ?>