282 lines
12 KiB
PHP
282 lines
12 KiB
PHP
<?php use_stylesheet("backend/stInvoiceBackend.css?v1"); ?>
|
|
|
|
<?php echo form_tag('stInvoiceBackend/SaveConfigContent?culture='.$config->getCulture(), array('class'=>'admin_form')) ?>
|
|
|
|
<fieldset>
|
|
<div class="content">
|
|
|
|
|
|
<div class="row">
|
|
<?php echo st_admin_get_form_field('invoiceDefault[invoice_on]', __('Sklep wystawia faktury VAT.'), 1, 'checkbox_tag', array('checked' => $config->get('invoice_on'))) ?>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<?php echo st_admin_get_form_field('invoiceDefault[proforma_on]', __('Sklep wystawia proformy.'), 1, 'checkbox_tag', array('checked' => $config->get('proforma_on'))) ?>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<?php echo st_admin_get_form_field('invoiceDefault[shop_currency]', __('Faktury wystawiane są w walucie wybranej przez klienta sklepu.'), 1, 'checkbox_tag', array('checked' => $config->get('shop_currency'))) ?>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<?php echo st_admin_get_form_field('invoiceDefault[show_product_code]', __('Pokaż kod produktu na fakturze.'), 1, 'checkbox_tag', array('checked' => $config->get('show_product_code'))) ?>
|
|
</div>
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<h2><?php echo __('Nagłówek faktury') ?></h2>
|
|
<div class="content">
|
|
|
|
<div class="row">
|
|
<label><?php echo __('Nagłówek faktury') ?></label>
|
|
<div class="field">
|
|
<div style="width: 502px;">
|
|
<?php echo textarea_tag("invoiceDefault[company_description]", $config->get('company_description'), array ( 'size' => '54x6', 'rich' => true, 'tinymce_options' => "height:80,width:'100%' ,theme:'simple'")) ?>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label><?php echo __('Miejsce wystawienia') ?></label>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[town]", $config->get('town'), array("size"=>"55px"))?>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label><?php echo __('Opis pola daty') ?></label>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[date_label]", $config->get('date_label', null, true), array("size"=>"55px"))?>
|
|
<div class="culture-flag">
|
|
<?php echo st_get_admin_culture_flag($config->getCulture()) ?>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<h2><?php echo __('Dane sprzedawcy') ?></h2>
|
|
<div class="content">
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Firma') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_company]", $config->get('seller_company'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Imie i nazwisko') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_full_name]", $config->get('seller_full_name'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Adres') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_address]", $config->get('seller_address'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Adres cd') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_address_more]", $config->get('seller_address_more'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Województwo') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_region]", $config->get('seller_region'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Kod, miasto') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_code]", $config->get('seller_code'))?><?php echo input_tag("invoiceDefault[seller_town]", $config->get('seller_town'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Kraj') ?> </div>
|
|
<div class="field"><?php echo input_tag("invoiceDefault[seller_country]", $config->get('seller_country'))?></div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('NIP/VAT UE') ?> </div>
|
|
<div class="field<?php if ($sf_request->hasError('invoiceDefault{seller_vat_number}')): ?> form-error<?php endif ?>">
|
|
<?php echo form_error("invoiceDefault[seller_vat_number]", array('class' => 'form-error-msg')) ?>
|
|
<?php echo input_tag("invoiceDefault[seller_vat_number]", $config->get('seller_vat_number', null, true))?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<h2><?php echo __('Numeracja faktury') ?></h2>
|
|
<div class="content">
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Tytuł') ?> </div>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[invoice_label]", $config->get('invoice_label', null, true), array("size"=>"50px"))?>
|
|
<div class="culture-flag">
|
|
<?php echo st_get_admin_culture_flag($config->getCulture()) ?>
|
|
</div>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Kolejny numer faktury') ?></div>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[number_confirm]", $config->get('number_confirm'),array("size"=>"10px"))?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Format numeru faktury') ?></div>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[number_format_prefix]", $config->get('number_format_prefix'),array("size"=>"10px"))?>
|
|
<?php echo select_tag('invoiceDefault[number_format]', options_for_select(
|
|
array('1' => __('numer miesiąc rok'), '2' => __('numer rok'), '3' => __('numer')),
|
|
array($config->get('number_format'))
|
|
)) ?>
|
|
<?php echo input_tag("invoiceDefault[number_format_sufix]", $config->get('number_format_sufix'),array("size"=>"10px"))?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Separator pól') ?></div>
|
|
<div class="field">
|
|
<?php echo select_tag('invoiceDefault[number_format_separator]', options_for_select(
|
|
array('/' => '/', '-' => '-', '.' => '.', ',' => ',', ':' => ':', ';' => ';', ' ' => __('spacja'), '' => __('brak')),
|
|
array($config->get('number_format_separator'))
|
|
)) ?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Kolejny numer proformy') ?></div>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[number_proforma]", $config->get('number_proforma'),array("size"=>"10px"))?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Format numeru faktury proforma') ?></div>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[number_proforma_format_prefix]", $config->get('number_proforma_format_prefix'),array("size"=>"10px"))?>
|
|
<?php echo select_tag('invoiceDefault[number_proforma_format]', options_for_select(
|
|
array('1' => __('numer miesiąc rok'), '2' => __('numer rok'), '3' => __('numer')),
|
|
array($config->get('number_proforma_format'))
|
|
)) ?>
|
|
<?php echo input_tag("invoiceDefault[number_proforma_format_sufix]", $config->get('number_proforma_format_sufix'),array("size"=>"10px"))?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Separator pól') ?></div>
|
|
<div class="field">
|
|
<?php echo select_tag('invoiceDefault[number_proforma_format_separator]', options_for_select(
|
|
array('/' => '/', '-' => '-', '.' => '.', ',' => ',', ':' => ':', ';' => ';', ' ' => __('spacja'), '' => __('brak')),
|
|
array($config->get('number_proforma_format_separator'))
|
|
)) ?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<h2><?php echo __('Stopka faktury') ?></h2>
|
|
<div class="content">
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Maksymalny czas oczekiwania na płatność') ?></div>
|
|
<div class="field">
|
|
<?php echo select_tag('invoiceDefault[max_day]', options_for_select(
|
|
array('none' => __('brak'), '7' => __('7'), '14' => __('14'), '21' => __('21'), '28' => __('28')),
|
|
array($config->get('max_day'))
|
|
)) ?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label><?php echo __('Dodatkowy opis') ?></label>
|
|
<div class="field">
|
|
<div style="width:502px;float:left;margin-right:5px;">
|
|
<?php echo textarea_tag("invoiceDefault[invoice_description]", $config->get('invoice_description', null, true), array ( 'size' => '54x6', 'rich' => true, 'tinymce_options' => "height:80,width:'100%' ,theme:'simple'")) ?>
|
|
</div>
|
|
<div class="culture-flag" style="float: left;">
|
|
<?php echo st_get_admin_culture_flag($config->getCulture()) ?>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label"><?php echo __('Podpis osoby upoważnionej do wystawiania faktury VAT') ?></div>
|
|
<div class="field">
|
|
<?php echo input_tag("invoiceDefault[seller_signature]", $config->get('seller_signature'),array("size"=>"62px"))?>
|
|
</div>
|
|
<br class="st_clear_all">
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
<div id="edit_actions">
|
|
<?php echo st_get_admin_actions_head() ?>
|
|
<?php echo st_get_admin_action('save', __('Zapisz', null, 'stAdminGeneratorPlugin')) ?>
|
|
<?php echo st_get_admin_actions_foot() ?>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
jQuery(function($) {
|
|
function fieldsetVisibility()
|
|
{
|
|
$('#admin_edit_form fieldset').each(function() {
|
|
var fieldset = $(this);
|
|
if (!fieldset.find('.content > .row:not(.hidden)').length) {
|
|
fieldset.addClass('hidden');
|
|
} else if (!fieldset.hasClass('always')) {
|
|
fieldset.removeClass('hidden');
|
|
}
|
|
});
|
|
}
|
|
|
|
$('#admin_edit_form').on('update:fieldsetVisibility', fieldsetVisibility);
|
|
|
|
$(document).ready(function() {
|
|
$('#edit_actions').stickyBox();
|
|
fieldsetVisibility();
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
</form>
|
|
|