first commit
This commit is contained in:
7
plugins/stPocztaPolskaPlugin/config/app.yml
Normal file
7
plugins/stPocztaPolskaPlugin/config/app.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
all:
|
||||
navigation_bar:
|
||||
display:
|
||||
orders:
|
||||
poczta_polska: ~
|
||||
items:
|
||||
poczta_polska: {label: Poczta Polska, route: "@stPocztaPolskaBackend", icon: stPocztaPolskaPlugin.png}
|
||||
22
plugins/stPocztaPolskaPlugin/config/config.php
Normal file
22
plugins/stPocztaPolskaPlugin/config/config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
if (IS_PHP7)
|
||||
{
|
||||
stDeliveryTypeConfiguration::register('ppk', stPocztaPolskaCourierDeliveryType::class, 'Poczta Polska - Kurier');
|
||||
stDeliveryTypeConfiguration::register('ppo', stPocztaPolskaPickupPointDeliveryType::class, 'Poczta Polska - Odbiór w punkcie', [
|
||||
'pickup_point' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
if (SF_APP == 'backend')
|
||||
{
|
||||
stLicenseTypeHelper::addCommercialModule('stPocztaPolskaBackend');
|
||||
stConfiguration::addModule(array('label' => 'Poczta Polska', 'route' => '@stPocztaPolskaBackend?action=config', 'icon' => 'stPocztaPolskaPlugin'), 'Konfiguracja modułów');
|
||||
stPluginHelper::addEnableModule('stPocztaPolskaBackend', 'backend');
|
||||
stPluginHelper::addRouting('stPocztaPolskaBackend', '/poczta-polska/:action/*', 'stPocztaPolskaBackend', 'list', 'backend');
|
||||
}
|
||||
elseif (SF_APP == 'frontend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stPocztaPolskaFrontend', 'frontend');
|
||||
stPluginHelper::addRouting('stPocztaPolskaFrontend', '/poczta-polska/:action/*', 'stPocztaPolskaFrontend', 'chooseDeliveryPoint', 'frontend');
|
||||
}
|
||||
100
plugins/stPocztaPolskaPlugin/config/schema.yml
Normal file
100
plugins/stPocztaPolskaPlugin/config/schema.yml
Normal file
@@ -0,0 +1,100 @@
|
||||
---
|
||||
propel:
|
||||
_attributes:
|
||||
defaultIdMethod: native
|
||||
package: plugins.stPocztaPolskaPlugin.lib.model
|
||||
st_poczta_polska_punkt_odbioru:
|
||||
_attributes:
|
||||
phpName: PocztaPolskaPunktOdbioru
|
||||
order_id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
foreignTable: st_order
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
pni:
|
||||
type: VARCHAR
|
||||
size: 32
|
||||
type:
|
||||
type: VARCHAR
|
||||
size: 48
|
||||
name:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
description:
|
||||
type: VARCHAR
|
||||
size: 1024
|
||||
phone:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
street:
|
||||
type: VARCHAR
|
||||
size: 100
|
||||
city:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
zip_code:
|
||||
type: VARCHAR
|
||||
size: 16
|
||||
province:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
ekspres24:
|
||||
type: BOOLEAN
|
||||
kurier48:
|
||||
type: BOOLEAN
|
||||
paczka_ekstra24:
|
||||
type: BOOLEAN
|
||||
st_poczta_polska_paczka:
|
||||
_attributes:
|
||||
phpName: PocztaPolskaPaczka
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
order_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_order
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
guid:
|
||||
type: CHAR
|
||||
size: 32
|
||||
required: true
|
||||
numer_nadania:
|
||||
type: VARCHAR
|
||||
size: 20
|
||||
required: false
|
||||
envelope_id:
|
||||
type: integer
|
||||
required: false
|
||||
bufor_id:
|
||||
type: INTEGER
|
||||
required: false
|
||||
parameters:
|
||||
type: VARCHAR
|
||||
size: 8192
|
||||
phpType: array
|
||||
service_name:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
st_poczta_polska_bufor:
|
||||
_attributes:
|
||||
phpName: PocztaPolskaBufor
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
bufor_id:
|
||||
type: INTEGER
|
||||
required: false
|
||||
urzad_nadania:
|
||||
type: INTEGER
|
||||
required: true
|
||||
data_nadania:
|
||||
type: DATE
|
||||
required: true
|
||||
Reference in New Issue
Block a user