array( 'form' => array( 'enctype' => 'multipart/form-data', 'buttons' => array( array( 'customCode' => '', ), 'CANCEL' ), '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' => 'modules/EcmSales/javascript/EcmSales3.js' ), array( 'file' => 'modules/EcmSales/javascript/bimit_table4.js' ), array( 'file' => 'modules/EcmSales/javascript/columndefs2.js' ), array( 'file' => 'include/ECM/EcmDocumentNumberGenerator/EcmDocumentNumberGenerator.js' ), ) ), 'panels' => array( 'LBL_DETAILS_TAB' => array( array( array( 'type' => 'tab', 'active' => true ) ), array( array( 'name' => 'document_no', 'tabIndex' => '1', 'customCode' => ' ' ), array( 'name' => 'assigned_user_name', 'tabIndex' => '1' ) ), array( array( 'name' => 'parent_name', 'tabIndex' => '1', 'displayParams' => array( 'required' => true, 'size' => 45 ) ), array( 'name' => 'type', 'tabIndex' => '1' ), ), array( array( 'name' => 'register_date', 'tabIndex' => '1', 'type' => 'datetime', 'displayParams' => array( 'showFormats' => true ) ), array( 'name' => 'status', 'tabIndex' => '1' ), ), array( array( 'name' => 'delivery_date', 'tabIndex' => '1', 'type' => 'datetime', 'displayParams' => array( 'showFormats' => true ) ), array( 'name' => 'stock_id', 'label' => 'LBL_STOCK_NAME', 'customCode' => '{$STOCK}' ) ), array( array( 'name' => 'payment_date', 'tabIndex' => '1', 'type' => 'datetime', ), array( 'name' => 'parent_document_no', 'label' => 'LBL_PARENT_DOCUMENT_NO', ), ), array( array( 'name' => 'payment_date_days', 'label' => 'LBL_DAYS', 'customCode' => ' ' ) ), array( 'send_date', 'send_accepted' ), array( 'payment_method', array( 'label' => 'Cennik', 'name' => 'pricebook', 'customCode' => '
' ) ), array ( array ( 'name' => 'main_sale_number', 'tabIndex' => '1' ), '' ), array( array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_TO_INFORMATIONS}

' ) ), array( array( 'name' => 'parent_name_copy', 'tabIndex' => '1', 'customCode' => '' ), array( 'name' => 'currency_id', 'label' => 'LBL_CURRENCY' ), ), array( array( 'name' => 'parent_index_dbf', 'label' => 'LBL_PARENT_INDEX_DBF', ), array( 'name' => 'pdf_type', 'label' => 'Typ pdf' ), ), array( array( 'name' => 'parent_nip', 'tabIndex' => '1' ), ), array( array( 'name' => 'parent_iln', 'tabIndex' => '1' ), ), array( array( 'name' => 'parent_address_street', 'tabIndex' => '1', 'customCode' => '' ), ), array( array( 'name' => 'parent_address_city', 'tabIndex' => '1', 'customCode' => '  ' ), '', ), array( array( 'name' => 'parent_address_country', 'tabIndex' => '1' ), ), //shipping address section array( array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_SHIPPING_ADDRESS}

' ) ), array( array( 'name' => 'shipping_address', 'label' => 'Lista', 'customCode' => '
', ), '', ), array( array( 'name' => 'shipping_address_name', 'tabIndex' => '1', 'customCode' => '' ), ), array( array( 'name' => 'shipping_phone', 'tabIndex' => '1', 'customCode' => '' ), ), array( array( 'name' => 'shipping_address_street', 'tabIndex' => '1', 'customCode' => '' ) ), array( array( 'name' => 'shipping_address_city', 'tabIndex' => '1', 'customCode' => '  ' ) ), array( array( 'name' => 'shipping_address_country', 'tabIndex' => '1' ) ), array( array( 'name' => 'shipping_nip', 'tabIndex' => '1' ) ), array( 'shipping_iln' ), array( array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_PERIODIC_INVOICE}

' ) ), array( array( 'name' => 'invoice_date', 'tabIndex' => '1' ), array( 'name' => 'invoice_date_interval', 'label' => 'Powtarzaj co', 'customCode' => ' Miesięcy' ) ), array( array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '

{$MOD.LBL_PDF_TEXT}

' ) ), array( array( 'allCols' => true, 'hideLabel' => true, 'name' => 'pdf_text' ) ) ), 'LBL_ITEMS_TAB' => array( array( array( 'type' => 'tab' ) ), array( array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '


' ) ) ) ) );