mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-13 16:28:41 +00:00
autofixes
This commit is contained in:
parent
eb33279ee7
commit
752408fe01
|
|
@ -136,7 +136,7 @@ final class GSDCostCenter implements \JsonSerializable
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set cost center
|
* Set cost center
|
||||||
*
|
*
|
||||||
* @param string $costCenter Cost center
|
* @param string $costCenter Cost center
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ final class GSDCostObject implements \JsonSerializable
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set cost object
|
* Set cost object
|
||||||
*
|
*
|
||||||
* @param string $costObject Cost object
|
* @param string $costObject Cost object
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,25 @@
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<section class="portlet">
|
<section class="portlet">
|
||||||
<form id="fImport" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/exchange/import/profile?{?}&exchange=GSD&csrf={$CSRF}'); ?>">
|
<form id="fImport" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/exchange/import/profile?{?}&exchange=GSD&csrf={$CSRF}'); ?>">
|
||||||
<div class="portlet-head"><?= $this->getHtml('Import') ?> - GSD</div>
|
<div class="portlet-head"><?= $this->getHtml('Import'); ?> - GSD</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100" style="table-layout: fixed">
|
<table class="layout wf-100" style="table-layout: fixed">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iHost"><?= $this->getHtml('Host') ?></label>
|
<tr><td><label for="iHost"><?= $this->getHtml('Host'); ?></label>
|
||||||
<tr><td><input type="text" id="iHost" name="host" placeholder=" <?= $this->getHtml('Host') ?>" required><input type="hidden" id="iDb" name="db" value="<?= \phpOMS\DataStorage\Database\DatabaseType::SQLSRV; ?>" required>
|
<tr><td><input type="text" id="iHost" name="host" placeholder=" <?= $this->getHtml('Host'); ?>" required><input type="hidden" id="iDb" name="db" value="<?= \phpOMS\DataStorage\Database\DatabaseType::SQLSRV; ?>" required>
|
||||||
<tr><td><label for="iPort"><?= $this->getHtml('Port') ?></label>
|
<tr><td><label for="iPort"><?= $this->getHtml('Port'); ?></label>
|
||||||
<tr><td><input type="text" id="iPort" name="port" value="1433" required>
|
<tr><td><input type="text" id="iPort" name="port" value="1433" required>
|
||||||
<tr><td><label for="iDatabase"><?= $this->getHtml('Database') ?></label>
|
<tr><td><label for="iDatabase"><?= $this->getHtml('Database'); ?></label>
|
||||||
<tr><td><input type="text" id="iDatabase" name="database" placeholder=" <?= $this->getHtml('Database') ?>" required>
|
<tr><td><input type="text" id="iDatabase" name="database" placeholder=" <?= $this->getHtml('Database'); ?>" required>
|
||||||
<tr><td><label for="iLogin"><?= $this->getHtml('Login') ?></label>
|
<tr><td><label for="iLogin"><?= $this->getHtml('Login'); ?></label>
|
||||||
<tr><td><input type="text" id="iLogin" name="login" placeholder=" <?= $this->getHtml('Login') ?>" required>
|
<tr><td><input type="text" id="iLogin" name="login" placeholder=" <?= $this->getHtml('Login'); ?>" required>
|
||||||
<tr><td><label for="iPassword"><?= $this->getHtml('Password') ?></label>
|
<tr><td><label for="iPassword"><?= $this->getHtml('Password'); ?></label>
|
||||||
<tr><td><input type="password" id="iPassword" name="password" placeholder=" <?= $this->getHtml('Password') ?>" required>
|
<tr><td><input type="password" id="iPassword" name="password" placeholder=" <?= $this->getHtml('Password'); ?>" required>
|
||||||
<tr><td><label for="iStart"><?= $this->getHtml('Start') ?></label>
|
<tr><td><label for="iStart"><?= $this->getHtml('Start'); ?></label>
|
||||||
<tr><td><input type="datetime-local" id="iStart" name="start" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
|
<tr><td><input type="datetime-local" id="iStart" name="start" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
|
||||||
<tr><td><label for="iEnd"><?= $this->getHtml('End') ?></label>
|
<tr><td><label for="iEnd"><?= $this->getHtml('End'); ?></label>
|
||||||
<tr><td><input type="datetime-local" id="iEnd" name="end" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
|
<tr><td><input type="datetime-local" id="iEnd" name="end" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
|
||||||
<tr><td><?= $this->getHtml('Options') ?>
|
<tr><td><?= $this->getHtml('Options'); ?>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<table class="layout wf-100"><tr><td>
|
<table class="layout wf-100"><tr><td>
|
||||||
<label class="checkbox" for="iCustomers">
|
<label class="checkbox" for="iCustomers">
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,20 @@ use phpOMS\Stdlib\Base\Enum;
|
||||||
abstract class ExchangeType extends Enum
|
abstract class ExchangeType extends Enum
|
||||||
{
|
{
|
||||||
public const CUSTOMER = 1;
|
public const CUSTOMER = 1;
|
||||||
|
|
||||||
public const SUPPLIER = 2;
|
public const SUPPLIER = 2;
|
||||||
|
|
||||||
public const ARTICLE = 3;
|
public const ARTICLE = 3;
|
||||||
|
|
||||||
public const BOOKING = 4;
|
public const BOOKING = 4;
|
||||||
|
|
||||||
public const ACCOUNT = 5;
|
public const ACCOUNT = 5;
|
||||||
|
|
||||||
public const ADDRESS = 6;
|
public const ADDRESS = 6;
|
||||||
|
|
||||||
public const COSTCENTER = 7;
|
public const COSTCENTER = 7;
|
||||||
|
|
||||||
public const COSTOBJECT = 8;
|
public const COSTOBJECT = 8;
|
||||||
|
|
||||||
public const INVOICE = 9;
|
public const INVOICE = 9;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum;
|
||||||
abstract class PermissionState extends Enum
|
abstract class PermissionState extends Enum
|
||||||
{
|
{
|
||||||
public const IMPORT = 1;
|
public const IMPORT = 1;
|
||||||
|
|
||||||
public const EXPORT = 2;
|
public const EXPORT = 2;
|
||||||
|
|
||||||
public const DASHBOARD = 3;
|
public const DASHBOARD = 3;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,16 +20,16 @@ echo $this->getData('nav')->render();
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<section class="portlet">
|
<section class="portlet">
|
||||||
<div class="portlet-head"><?= $this->getHtml('Exports') ?><i class="fa fa-download floatRight download btn"></i></div>
|
<div class="portlet-head"><?= $this->getHtml('Exports'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table class="default">
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
<td class="wf-100"><?= $this->getHtml('Title'); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($interfaces as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($interfaces as $key => $value) : ++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/exchange/export/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/exchange/export/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if ($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
/** @var \phpOMS\Views\View $this */
|
/** @var \phpOMS\Views\View $this */
|
||||||
$interfaces = $this->getData('interfaces');
|
$interfaces = $this->getData('interfaces');
|
||||||
|
|
||||||
echo $this->getData('nav')->render();
|
echo $this->getData('nav')->render();
|
||||||
|
|
@ -20,16 +20,16 @@ echo $this->getData('nav')->render();
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<section class="portlet">
|
<section class="portlet">
|
||||||
<div class="portlet-head"><?= $this->getHtml('Imports') ?><i class="fa fa-download floatRight download btn"></i></div>
|
<div class="portlet-head"><?= $this->getHtml('Imports'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table class="default">
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="wf-100"><?= $this->getHtml('Title') ?>
|
<td class="wf-100"><?= $this->getHtml('Title'); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($interfaces as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($interfaces as $key => $value) : ++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/exchange/import/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/exchange/import/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if ($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ namespace Modules\Exchange\tests\Admin;
|
||||||
class AdminTest extends \PHPUnit\Framework\TestCase
|
class AdminTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected const MODULE_NAME = 'Exchange';
|
protected const MODULE_NAME = 'Exchange';
|
||||||
|
|
||||||
protected const URI_LOAD = '';
|
protected const URI_LOAD = '';
|
||||||
|
|
||||||
use \Modules\tests\ModuleTestTrait;
|
use \Modules\tests\ModuleTestTrait;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user