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:
paczkomaty: ~
items:
paczkomaty: {label: InPost, route: "@stPaczkomatyPlugin", icon: stPaczkomatyPlugin}

View File

@@ -0,0 +1,22 @@
<?php
if (IS_PHP7)
{
stDeliveryTypeConfiguration::register('inpostp', stPaczkomatyPickupPointDeliveryType::class, 'InPost - Odbiór w punkcie', [
'pickup_point' => true,
]);
}
if (SF_APP == 'backend')
{
stPluginHelper::addEnableModule('stPaczkomatyBackend', 'backend');
stPluginHelper::addRouting('stPaczkomatyPlugin', '/paczkomaty/:action/*', 'stPaczkomatyBackend', 'list', 'backend');
stPluginHelper::addRouting('stPaczkomatyCreatePack', '/paczkomaty/create/*', 'stPaczkomatyBackend', 'create', 'backend');
stConfiguration::addModule(['label' => 'InPost', 'route' => '@stPaczkomatyPlugin?action=config', 'icon' => 'stPaczkomatyPlugin'], 'deliveries');
}
elseif (SF_APP == 'frontend')
{
stPluginHelper::addEnableModule('stPaczkomatyFrontend', 'frontend');
stPluginHelper::addRouting('stPaczkomatyPlugin', '/paczkomaty/:action/*', 'stPaczkomatyFrontend', 'index', 'frontend');
stPluginHelper::addRouting('stPaczkomatyShowMap', '/paczkomaty/showMap/:deliveryId', 'stPaczkomatyFrontend', 'showMap', 'frontend');
}

View File

@@ -0,0 +1,5 @@
edit:
display:
"Paczkomaty": [_paczkomaty]
fields:
paczkomaty: {name: Paczkomaty, i18n: stPaczkomatyBackend, hide_label: true}

View File

@@ -0,0 +1,118 @@
---
propel:
_attributes:
defaultIdMethod: native
package: plugins.stPaczkomatyPlugin.lib.model
st_paczkomaty_pack:
_attributes:
phpName: PaczkomatyPack
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
customer_email:
type: VARCHAR
size: 255
customer_phone:
type: VARCHAR
size: 24
customer_name:
type: VARCHAR
size: 255
customer_company_name:
type: VARCHAR
size: 255
customer_street:
type: VARCHAR
size: 255
customer_building_number:
type: VARCHAR
size: 24
customer_city:
type: VARCHAR
size: 255
customer_post_code:
type: VARCHAR
size: 16
customer_country_code:
type: CHAR
size: 2
customer_paczkomat:
type: VARCHAR
size: 48
sending_method:
type: VARCHAR
size: 48
sender_paczkomat:
type: VARCHAR
size: 24
use_sender_paczkomat:
type: BOOLEAN
default: false
pack_type:
type: CHAR
size: 1
required: false
inpost_shipment_id:
type: INTEGER
insurance:
type: DECIMAL
size: 10
scale: 2
cash_on_delivery:
type: DECIMAL
size: 10
scale: 2
description:
type: VARCHAR
size: 255
parcels:
type: VARCHAR
size: 8192
phpType: array
service:
type: VARCHAR
size: 48
required: false
code:
type: VARCHAR
size: 255
has_cash_on_delivery:
type: BOOLEAN
required: false
status:
type: VARCHAR
size: 255
order_id:
type: INTEGER
foreignTable: st_order
foreignReference: id
onDelete: setnull
dispatch_order_id:
type: INTEGER
foreignTable: st_paczkomaty_dispatch_order
foreignReference: id
onDelete: setnull
st_paczkomaty_dispatch_order:
_attributes:
phpName: PaczkomatyDispatchOrder
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
dispatch_order_id:
type: BIGINT
dispatch_order_external_id:
type: BIGINT
created_at:
type: timestamp
status:
type: VARCHAR
size: 16

View File

@@ -0,0 +1,10 @@
propel:
st_delivery:
_attributes:
phpName: Delivery
paczkomaty_type:
type: VARCHAR
size: 5
paczkomaty_size:
type: VARCHAR
size: 5

View File

@@ -0,0 +1,7 @@
propel:
st_order_delivery:
_attributes:
phpName: OrderDelivery
paczkomaty_number:
type: VARCHAR
size: 20