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,7 @@
all:
navigation_bar:
display:
orders:
poczta_polska: ~
items:
poczta_polska: {label: Poczta Polska, route: "@stPocztaPolskaBackend", icon: stPocztaPolskaPlugin.png}

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

View 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