first commit
This commit is contained in:
31
plugins/stTaxPlugin/config/app.yml
Normal file
31
plugins/stTaxPlugin/config/app.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
all:
|
||||
st_tax:
|
||||
rates:
|
||||
AT: {normal: 20, reduced: [13, 10, 0]}
|
||||
BE: {normal: 21, reduced: [12, 6, 0]}
|
||||
BG: {normal: 20, reduced: [9, 0]}
|
||||
HR: {normal: 25, reduced: [13, 5, 0]}
|
||||
CY: {normal: 19, reduced: [5, 0]}
|
||||
CZ: {normal: 21, reduced: [15, 10, 0]}
|
||||
DK: {normal: 25, reduced: [0]}
|
||||
EE: {normal: 20, reduced: [9, 0]}
|
||||
FI: {normal: 24, reduced: [14, 10, 0]}
|
||||
FR: {normal: 20, reduced: [10, 5.5, 2.1, 0]}
|
||||
DE: {normal: 19, reduced: [7, 0]}
|
||||
GR: {normal: 24, reduced: [13, 6, 0]}
|
||||
HU: {normal: 27, reduced: [18, 5, 0]}
|
||||
IE: {normal: 23, reduced: [13.5, 9, 4.8, 0]}
|
||||
IT: {normal: 22, reduced: [10, 5, 4, 0]}
|
||||
LV: {normal: 21, reduced: [12, 5, 0]}
|
||||
LT: {normal: 21, reduced: [9, 5, 0]}
|
||||
LU: {normal: 17, reduced: [14, 8, 3, 0]}
|
||||
MT: {normal: 18, reduced: [7, 5, 0]}
|
||||
NL: {normal: 21, reduced: [9, 0]}
|
||||
PL: {normal: 23, reduced: [8, 5, 0]}
|
||||
PT: {normal: 23, reduced: [13, 6, 0]}
|
||||
RO: {normal: 19, reduced: [9, 5, 0]}
|
||||
SK: {normal: 20, reduced: [10, 0]}
|
||||
SI: {normal: 22, reduced: [9.5, 5, 0]}
|
||||
ES: {normal: 21, reduced: [10, 4, 0]}
|
||||
SE: {normal: 25, reduced: [12, 6, 0]}
|
||||
XI: {normal: 20, reduced: [9, 5, 0]}
|
||||
31
plugins/stTaxPlugin/config/config.php
Normal file
31
plugins/stTaxPlugin/config/config.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/stTaxPlugin
|
||||
*
|
||||
* Ten plik należy do aplikacji stTaxPlugin opartej na licencji (Open License SOTE) Otwarta Licencja SOTE.
|
||||
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
|
||||
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
|
||||
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
|
||||
*
|
||||
* @package stTaxPlugin
|
||||
* @subpackage configs
|
||||
* @copyright SOTE (www.sote.pl)
|
||||
* @license http://www.sote.pl/license/open (Open License SOTE) Otwarta Licencja SOTE
|
||||
* @version $Id$
|
||||
* @author Krzysztof Beblo <krzysztof.beblo@sote.pl>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Włączanie modułów
|
||||
*/
|
||||
stPluginHelper::addEnableModule('stTaxBackend', 'backend');
|
||||
|
||||
/**
|
||||
* Dodawanie routingów
|
||||
*/
|
||||
stPluginHelper::addRouting('stTaxPlugin', '/tax/:action/*', 'stTaxBackend', 'list', 'backend');
|
||||
|
||||
if (SF_APP == 'backend')
|
||||
{
|
||||
$dispatcher->connect('stReminderBackend.beforeReminderCount', array('stTaxListener', 'reminder'));
|
||||
}
|
||||
40
plugins/stTaxPlugin/config/schema.yml
Normal file
40
plugins/stTaxPlugin/config/schema.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
propel:
|
||||
_attributes:
|
||||
defaultIdMethod: native
|
||||
package: plugins.stTaxPlugin.lib.model
|
||||
|
||||
st_tax:
|
||||
_attributes:
|
||||
phpName: Tax
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
vat:
|
||||
type: DECIMAL
|
||||
size: 5
|
||||
scale: 2
|
||||
required: true
|
||||
default: 0
|
||||
is_default:
|
||||
type: BOOLEAN
|
||||
required: true
|
||||
default: false
|
||||
rates_by_country:
|
||||
phpType: array
|
||||
type: VARCHAR
|
||||
size: 2048
|
||||
is_active:
|
||||
type: BOOLEAN
|
||||
required: true
|
||||
default: true
|
||||
vat_name:
|
||||
type: VARCHAR
|
||||
size: 45
|
||||
required: true
|
||||
is_system_default:
|
||||
type: BOOLEAN
|
||||
required: true
|
||||
default: false
|
||||
9
plugins/stTaxPlugin/config/stProduct.schema.custom.yml
Normal file
9
plugins/stTaxPlugin/config/stProduct.schema.custom.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
propel:
|
||||
st_product:
|
||||
_attributes: {phpName: Product}
|
||||
tax_id:
|
||||
type: INTEGER
|
||||
required: false
|
||||
foreignTable: st_tax
|
||||
foreignReference: id
|
||||
onDelete: setnull
|
||||
@@ -0,0 +1,6 @@
|
||||
propel:
|
||||
st_product_options_value:
|
||||
_attributes: {phpName: ProductOptionsValue}
|
||||
is_updated:
|
||||
type: BOOLEAN
|
||||
default: false
|
||||
7
plugins/stTaxPlugin/config/stTaxPlugin_schema.custom.yml
Normal file
7
plugins/stTaxPlugin/config/stTaxPlugin_schema.custom.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
propel:
|
||||
st_tax:
|
||||
_attributes: {phpName: Tax}
|
||||
update_resume:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
phpType: array
|
||||
Reference in New Issue
Block a user