From 0505984ba2e336cf40e4bf8c7a1cb7c5b2f94b17 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 7 Apr 2024 17:47:06 +0000 Subject: [PATCH] autofixes --- Admin/Routes/Web/Api.php | 10 ++-- Admin/Routes/Web/Backend.php | 52 +++++++++---------- Theme/Backend/Lang/de.lang.php | 10 ++-- Theme/Backend/Lang/en.lang.php | 10 ++-- .../finance-taxcombination-view.tpl.php | 2 +- 5 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index da6937c..02b502f 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -23,7 +23,7 @@ return [ 'dest' => '\Modules\Billing\Controller\ApiBillController:apiMediaRender', 'verb' => RouteVerb::GET, 'csrf' => true, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -36,7 +36,7 @@ return [ 'dest' => '\Modules\Billing\Controller\ApiBillController:apiPreviewRender', 'verb' => RouteVerb::GET, 'csrf' => true, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -49,7 +49,7 @@ return [ 'dest' => '\Modules\Billing\Controller\ApiPriceController:apiPriceCreate', 'verb' => RouteVerb::GET, 'csrf' => true, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -62,7 +62,7 @@ return [ 'dest' => '\Modules\Billing\Controller\ApiPurchaseController:apiInvoiceParse', 'verb' => RouteVerb::SET, 'csrf' => true, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::MODIFY, @@ -75,7 +75,7 @@ return [ 'dest' => '\Modules\Billing\Controller\ApiPurchaseController:apiPurchaseBillUpload', 'verb' => RouteVerb::SET, 'csrf' => true, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 30e57dc..0d4046f 100755 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -22,7 +22,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesInvoiceCreate', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -34,7 +34,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesList', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -46,7 +46,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesArchive', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -58,7 +58,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesInvoice', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -71,7 +71,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceCreate', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -83,7 +83,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseList', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -95,7 +95,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseArchive', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -107,7 +107,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoice', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -119,7 +119,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceUpload', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -132,7 +132,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockInvoiceCreate', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -144,7 +144,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockList', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -156,7 +156,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockArchive', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -168,7 +168,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockInvoice', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -181,7 +181,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillDashboard', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -193,7 +193,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillUpload', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -205,7 +205,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivateBillingPurchaseInvoice', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -217,7 +217,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillDashboard', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -229,7 +229,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillUpload', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -241,7 +241,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivateBillingPurchaseInvoice', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -254,7 +254,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPaymentList', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -266,7 +266,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewPaymentView', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -278,7 +278,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewShippingList', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -290,7 +290,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewShippingView', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -303,7 +303,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationList', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, @@ -315,7 +315,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationView', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, @@ -327,7 +327,7 @@ return [ [ 'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationCreate', 'verb' => RouteVerb::GET, - 'active' => true, + 'active' => true, 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php index 4238eb4..92340ea 100755 --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -83,11 +83,11 @@ return ['Billing' => [ 'Files' => 'Files', 'TaxCode' => 'Steuerkz.', 'PL' => 'GuV', - ':combinationtype-1' => 'Verkauf', - ':combinationtype-2' => 'Einkauf', - 'PLAccount' => 'GuV-Konto', - 'Tax1Account' => 'Steuerkonto 1', - 'Tax2Account' => 'Steuerkonto 2', + ':combinationtype-1' => 'Verkauf', + ':combinationtype-2' => 'Einkauf', + 'PLAccount' => 'GuV-Konto', + 'Tax1Account' => 'Steuerkonto 1', + 'Tax2Account' => 'Steuerkonto 2', 'TaxCombinations' => 'Steuerkomb.', 'PaymentTerms' => 'Zahlungsbedingungen', 'ShippingTerms' => 'Lieferbedingungen', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 6ae7160..7d10a7d 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -83,11 +83,11 @@ return ['Billing' => [ 'Files' => 'Files', 'TaxCode' => 'Tax Code', 'PL' => 'PL', - ':combinationtype-1' => 'Sales', - ':combinationtype-2' => 'Purchase', - 'PLAccount' => 'PL Account', - 'Tax1Account' => 'Tax Account 1', - 'Tax2Account' => 'Tax Account 2', + ':combinationtype-1' => 'Sales', + ':combinationtype-2' => 'Purchase', + 'PLAccount' => 'PL Account', + 'Tax1Account' => 'Tax Account 1', + 'Tax2Account' => 'Tax Account 2', 'TaxCombinations' => 'Tax Combinations', 'PaymentTerms' => 'Payment Terms', 'ShippingTerms' => 'Shipping Terms', diff --git a/Theme/Backend/finance-taxcombination-view.tpl.php b/Theme/Backend/finance-taxcombination-view.tpl.php index ffc7091..7e52e5d 100644 --- a/Theme/Backend/finance-taxcombination-view.tpl.php +++ b/Theme/Backend/finance-taxcombination-view.tpl.php @@ -17,7 +17,7 @@ use Modules\Billing\Models\Tax\NullTaxCombination; use phpOMS\Uri\UriFactory; $taxcombination = $this->data['taxcombination'] ?? new NullTaxCombination(); -$isNew = $taxcombination->id === 0; +$isNew = $taxcombination->id === 0; $combinationType = BillTaxType::getConstants();