first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View 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]}

View 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'));
}

View 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

View File

@@ -0,0 +1,9 @@
propel:
st_product:
_attributes: {phpName: Product}
tax_id:
type: INTEGER
required: false
foreignTable: st_tax
foreignReference: id
onDelete: setnull

View File

@@ -0,0 +1,6 @@
propel:
st_product_options_value:
_attributes: {phpName: ProductOptionsValue}
is_updated:
type: BOOLEAN
default: false

View File

@@ -0,0 +1,7 @@
propel:
st_tax:
_attributes: {phpName: Tax}
update_resume:
type: VARCHAR
size: 64
phpType: array