mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
added tax field
This commit is contained in:
parent
efc07b097b
commit
6661c54cd6
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Anomaly\Streams\Platform\Database\Migration\Migration;
|
||||||
|
|
||||||
|
class VisiosoftModuleAdvsCreateTaxField extends Migration
|
||||||
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
//Maria DB will be removed when the version is updated.
|
||||||
|
\Illuminate\Support\Facades\DB::getDoctrineSchemaManager()
|
||||||
|
->getDatabasePlatform()->registerDoctrineTypeMapping('point', 'string');
|
||||||
|
}
|
||||||
|
|
||||||
|
protected $stream = [
|
||||||
|
'slug' => 'advs',
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $fields = [
|
||||||
|
'tax' => [
|
||||||
|
'type' => 'anomaly.field_type.integer',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => null,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $assignments = [
|
||||||
|
'tax'
|
||||||
|
];
|
||||||
|
}
|
||||||
@ -53,6 +53,7 @@ return [
|
|||||||
'create_ad' => [
|
'create_ad' => [
|
||||||
'title' => 'visiosoft.module.advs::section.create_ad',
|
'title' => 'visiosoft.module.advs::section.create_ad',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
|
'show_tax_field',
|
||||||
'detailed_product_options',
|
'detailed_product_options',
|
||||||
'steps_color',
|
'steps_color',
|
||||||
'create_ad_button_color',
|
'create_ad_button_color',
|
||||||
|
|||||||
@ -462,4 +462,11 @@ return [
|
|||||||
'default_value' => false,
|
'default_value' => false,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'show_tax_field' => [
|
||||||
|
'type' => 'anomaly.field_type.boolean',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => false,
|
||||||
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -376,4 +376,7 @@ return [
|
|||||||
'publish_at' => [
|
'publish_at' => [
|
||||||
'name' => 'Publish Date'
|
'name' => 'Publish Date'
|
||||||
],
|
],
|
||||||
|
'tax' => [
|
||||||
|
'name' => 'Tax'
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -276,4 +276,8 @@ return [
|
|||||||
'name' => 'Show Finish Date And Publish Date For Create',
|
'name' => 'Show Finish Date And Publish Date For Create',
|
||||||
'instructions' => 'Displays the publish_at and finish_at fields on the ad creation page.'
|
'instructions' => 'Displays the publish_at and finish_at fields on the ad creation page.'
|
||||||
],
|
],
|
||||||
|
'show_tax_field' => [
|
||||||
|
'name' => 'Show Tax Field',
|
||||||
|
'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.'
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -374,4 +374,7 @@ return [
|
|||||||
'publish_at' => [
|
'publish_at' => [
|
||||||
'name' => 'Publish Date'
|
'name' => 'Publish Date'
|
||||||
],
|
],
|
||||||
|
'tax' => [
|
||||||
|
'name' => 'KDV Dahil Oranı'
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -27,7 +27,7 @@ return [
|
|||||||
'favicon' => [
|
'favicon' => [
|
||||||
'name' => 'Favicon',
|
'name' => 'Favicon',
|
||||||
]
|
]
|
||||||
,'map_coordinates_long' => [
|
, 'map_coordinates_long' => [
|
||||||
'name' => 'Harita Long Koordinati',
|
'name' => 'Harita Long Koordinati',
|
||||||
],
|
],
|
||||||
'map_coordinates_lat' => [
|
'map_coordinates_lat' => [
|
||||||
@ -271,5 +271,13 @@ return [
|
|||||||
'hide_ad_cat' => [
|
'hide_ad_cat' => [
|
||||||
'name' => 'Kategorileri Gizle',
|
'name' => 'Kategorileri Gizle',
|
||||||
'instructions' => 'İlan listelemede ilan kategorilerini gizle'
|
'instructions' => 'İlan listelemede ilan kategorilerini gizle'
|
||||||
]
|
],
|
||||||
|
'show_finish_and_publish_date' => [
|
||||||
|
'name' => 'İlan Oluşturma Sayfasında Publish_at ve Finish_at göster',
|
||||||
|
'instructions' => 'İlan oluşturma sayfasında Publish_at ve Finish_at alanlarını gösterir.'
|
||||||
|
],
|
||||||
|
'show_tax_field' => [
|
||||||
|
'name' => 'Vergi Oranı Seçmeyi Göster',
|
||||||
|
'instructions' => 'Bu seçenek etkinleştirildiğinde ilan oluşturma sayfasında vergi oranı belirleyebilirsiniz.'
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -126,10 +126,12 @@
|
|||||||
<span class="w-100 {{ HideStandardPrice }}">
|
<span class="w-100 {{ HideStandardPrice }}">
|
||||||
{% set standardPriceValue = form.fields.standard_price.value|split('.') %}
|
{% set standardPriceValue = form.fields.standard_price.value|split('.') %}
|
||||||
<input class="mt-3 border-0 text-right standard-price-field whole-price flex-fill w-100"
|
<input class="mt-3 border-0 text-right standard-price-field whole-price flex-fill w-100"
|
||||||
placeholder="0" value="{{ standardPriceValue|first }}" type="text">
|
placeholder="0" value="{{ standardPriceValue|first }}"
|
||||||
|
type="text">
|
||||||
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
|
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
|
||||||
<input class="mt-3 border-0 ml-2 text-center standard-price-decimal decimal-price"
|
<input class="mt-3 border-0 ml-2 text-center standard-price-decimal decimal-price"
|
||||||
placeholder="00" type="text" value="{{ standardPriceValue[1] }}"
|
placeholder="00" type="text"
|
||||||
|
value="{{ standardPriceValue[1] }}"
|
||||||
maxlength="2">
|
maxlength="2">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
@ -143,6 +145,29 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if setting_value("visiosoft.module.advs::show_tax_field") %}
|
||||||
|
<div class="row mx-0 my-3">
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<label>
|
||||||
|
{{ trans('visiosoft.module.advs::field.tax.name') }}
|
||||||
|
<span class="required">*</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="py-2 pr-3">
|
||||||
|
<div class="input-wrapper">
|
||||||
|
<select class="custom-select form-control" name="tax">
|
||||||
|
<option value=""></option>
|
||||||
|
<option value="1" {{ (form.fields.tax.value == "1") ? 'selected':'' }}>%1</option>
|
||||||
|
<option value="8"{{ (form.fields.tax.value == "8") ? 'selected':'' }}>%8</option>
|
||||||
|
<option value="18"{{ (form.fields.tax.value == "18") ? 'selected':'' }}>%18</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if setting_value("visiosoft.module.advs::show_finish_and_publish_date") %}
|
{% if setting_value("visiosoft.module.advs::show_finish_and_publish_date") %}
|
||||||
<div class="row mx-0 my-3">
|
<div class="row mx-0 my-3">
|
||||||
<div class="col-6 px-0">
|
<div class="col-6 px-0">
|
||||||
|
|||||||
@ -57,6 +57,7 @@ class AdvFormBuilder extends FormBuilder
|
|||||||
'cat9',
|
'cat9',
|
||||||
'cat10',
|
'cat10',
|
||||||
'currency',
|
'currency',
|
||||||
|
'tax',
|
||||||
'online_payment',
|
'online_payment',
|
||||||
'stock',
|
'stock',
|
||||||
'country' => [
|
'country' => [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user