footer_text) || $focus->footer_text == '') && (!isset($focus->name) || $focus->name == '') && (!isset($focus->id) || $focus->id == '')) $focus->footer_text = translate('LBL_DEFAULT_FOOTER_TEXT', 'EcmDocumentTemplates'); if((!isset($focus->header_text) || $focus->header_text == '') && (!isset($focus->name) || $focus->name == '') && (!isset($focus->id) || $focus->id == '')) $focus->header_text = translate('LBL_DEFAULT_HEADER_TEXT', 'EcmDocumentTemplates'); */ $viewdefs['EcmInvoiceOutOlds']['EditView'] = array ( 'templateMeta' => array ( 'form' => array ( 'enctype'=>'multipart/form-data', 'buttons'=>array( array('customCode' => ''), array('customCode' => ''), array('customCode' => ''), //todo: create 'cancel function in js ), 'hidden'=>array( '', '', '', '', '', ), ), 'maxColumns' => '2', 'widths' => array ( array('label' => '10', 'field' => '30'), array('label' => '10', 'field' => '30'), ), 'includes' => array( array('file'=>'include/JSON.js'), array('file'=>'include/javascript/quicksearch.js'), array('file'=>'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js'), array('file'=>'modules/EcmInvoiceOutOlds/AjaxSearch/AjaxSearch.js'), array('file'=>'modules/EcmInvoiceOutOlds/formloader.js'), array('file'=>'modules/EcmInvoiceOutOlds/MyTable.js'), array('file'=>'modules/EcmInvoiceOutOlds/EcmInvoiceOutOlds.js'), array('file'=>'modules/EcmProducts/mintajax.js'), array('file'=>'modules/EcmProducts/helper.js'), ), ), 'panels' => array ( 'LBL_DETAILS_TAB'=> array( array( array( 'name' => 'document_no', 'tabIndex' => 'f', 'customCode' => ' ' ), 'assigned_user_name' ), array ( 'parent_name', 'type' ), array( array ( 'name' => 'parent_index_dbf', 'customCode' => '
', ), array( 'name' => 'template_name', 'label'=>'LBL_TEMPLATE_NAME', 'customCode'=>'' ), ), array ( array ( 'name' => 'register_date', 'type' => 'datetime', 'displayParams'=>array('showFormats'=>true) ), 'ecminvoiceoutold_name' ), array ( array ( 'name' => 'sell_date', 'type' => 'datetime', 'displayParams'=>array('showFormats'=>true) ), array( 'label'=>'LBL_STOCK_NAME', 'name'=>'stock_id', 'customCode'=>'', ), ), array ( array ( 'name' => 'name', 'label' => 'LBL_NAME', ), ), array( 'order_no', 'supplier_code', ), array ( /* array ( 'name' => 'discount', 'tabindex' => 'd', 'customCode' => '%', ) */ ), //payment 9informations array( array( 'name' => 'to_informations', 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_TO_PAYMENTS}

' ), ), //end payment informations array( array( 'name' => 'to_paid', 'label'=> 'LBL_TO_PAID', 'customCode' => '
', ), 'ecmpaymentcondition_name', ), array( 'prepaid', 'payment_date', ), array( 'prepaid_nr', //'payment_method', ), array( 'paid_val', 'payment_method_paid' ), array( array( 'name' => 'left', 'label' => 'LBL_LEFT', 'customCode' => '
', ), ), array( array( 'name' => 'to_informations', 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_TO_INFORMATIONS}

' ), ), array ( array( 'name' => 'parent_name_copy', 'tabIndex' => '1', 'customCode' => '' ), array( 'name' => 'to_nip', 'tabIndex' => '1', ), ), array ( array( 'name' => 'parent_contact_name', 'tabIndex' => '1', ), array('name'=>'currency_id','label'=>'LBL_CURRENCY'), ), array ( array( 'name' => 'parent_contact_title', 'tabIndex' => '1', ), //array('name'=>'currency_value','label'=>'LBL_CURRENCY_VALUE'), ), array ( array( 'name' => 'parent_address_street', 'tabIndex' => '1', 'customCode' => '', ), array('name'=>'pdf_type','label'=>'LBL_PDF_TYPE'), ), array ( array( 'name' => 'parent_address_city', 'tabIndex' => '1', 'customCode' => '  ' ), array('name'=>'currency_value_nbp','label'=>'LBL_CURRENCY_VALUE_NBP'), ), array ( array( 'name' => 'parent_address_country', 'tabIndex' => '1', ), ), array( array( 'name' => 'to_informations', 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_PARENT_SHIPPING_ADDRESS}

' ), ), array( array( 'name' => 'address', 'customCode' => '
', ), '', ), array('parent_shipping_address_name'), array('parent_shipping_address_street'), array ( array( 'name' => 'parent_shipping_address_city', 'tabIndex' => '1', 'customCode' => '  ' ), ), array('parent_shipping_address_country'), ), 'LBL_ITEMS_TAB'=> array( array( array( 'name' => 'items_list_panel', 'allCols' => true, 'hideLabel' => true, 'customCode' => '
{$MOD.LBL_EDITTABLE_NO} {$MOD.LBL_EDITTABLE_CODE} {$MOD.LBL_EDITTABLE_NAME} {$MOD.LBL_EDITTABLE_QUANTITY} {$MOD.LBL_EDITTABLE_PRICE_SUB} {$MOD.LBL_EDITTABLE_DISCOUNT} {$MOD.LBL_EDITTABLE_VAT} {$MOD.LBL_EDITTABLE_PRICE}
(netto / brutto)
{$MOD.LBL_EDITTABLE_UNIT} {$MOD.LBL_EDITTABLE_TOTAL}
(netto / brutto)
Kod odb. {$MOD.LBL_EDITTABLE_STOCK} {$MOD.LBL_EDITTABLE_OPTIONS}
{$MOD.LBL_MOVE_ROW_UP} - {$MOD.LBL_MOVE_ROW_DOWN}
{$MOD.LBL_SUBTOTAL}
{$MOD.LBL_TOTAL}
 
', ) ), ), 'LBL_TEXTS_TAB'=> array( array(array('name' => 'header_text', 'label' => 'LBL_HEADER_TEXT','customCode' => '{$MFP.footer}
'),), array(array('name' => 'footer_text', 'label' => 'LBL_FOOTER_TEXT','customCode' => '{$MFP.header}
'),), array(array('name' => 'ads_text', 'label' => 'LBL_ADS_TEXT','customCode' => '{$MFP.ads}
'),), ), ), ); ?>