autofixes

This commit is contained in:
Dennis Eichhorn 2024-04-07 17:47:06 +00:00
parent b4c27b65e9
commit 0505984ba2
5 changed files with 42 additions and 42 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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',

View File

@ -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',

View File

@ -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();