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', 'dest' => '\Modules\Billing\Controller\ApiBillController:apiMediaRender',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'csrf' => true, 'csrf' => true,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -36,7 +36,7 @@ return [
'dest' => '\Modules\Billing\Controller\ApiBillController:apiPreviewRender', 'dest' => '\Modules\Billing\Controller\ApiBillController:apiPreviewRender',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'csrf' => true, 'csrf' => true,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -49,7 +49,7 @@ return [
'dest' => '\Modules\Billing\Controller\ApiPriceController:apiPriceCreate', 'dest' => '\Modules\Billing\Controller\ApiPriceController:apiPriceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'csrf' => true, 'csrf' => true,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -62,7 +62,7 @@ return [
'dest' => '\Modules\Billing\Controller\ApiPurchaseController:apiInvoiceParse', 'dest' => '\Modules\Billing\Controller\ApiPurchaseController:apiInvoiceParse',
'verb' => RouteVerb::SET, 'verb' => RouteVerb::SET,
'csrf' => true, 'csrf' => true,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::MODIFY, 'type' => PermissionType::MODIFY,
@ -75,7 +75,7 @@ return [
'dest' => '\Modules\Billing\Controller\ApiPurchaseController:apiPurchaseBillUpload', 'dest' => '\Modules\Billing\Controller\ApiPurchaseController:apiPurchaseBillUpload',
'verb' => RouteVerb::SET, 'verb' => RouteVerb::SET,
'csrf' => true, 'csrf' => true,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,

View File

@ -22,7 +22,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesInvoiceCreate', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesInvoiceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -34,7 +34,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesList', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -46,7 +46,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesArchive', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesArchive',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -58,7 +58,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesInvoice', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingSalesInvoice',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -71,7 +71,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceCreate', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -83,7 +83,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseList', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -95,7 +95,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseArchive', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseArchive',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -107,7 +107,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoice', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoice',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -119,7 +119,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceUpload', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceUpload',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -132,7 +132,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockInvoiceCreate', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockInvoiceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -144,7 +144,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockList', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -156,7 +156,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockArchive', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockArchive',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -168,7 +168,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockInvoice', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingStockInvoice',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -181,7 +181,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillDashboard', 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillDashboard',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -193,7 +193,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillUpload', 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillUpload',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -205,7 +205,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPrivateBillingPurchaseInvoice', 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivateBillingPurchaseInvoice',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -217,7 +217,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillDashboard', 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillDashboard',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -229,7 +229,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillUpload', 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivatePurchaseBillUpload',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -241,7 +241,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPrivateBillingPurchaseInvoice', 'dest' => '\Modules\Billing\Controller\BackendController:viewPrivateBillingPurchaseInvoice',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -254,7 +254,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPaymentList', 'dest' => '\Modules\Billing\Controller\BackendController:viewPaymentList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -266,7 +266,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewPaymentView', 'dest' => '\Modules\Billing\Controller\BackendController:viewPaymentView',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -278,7 +278,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewShippingList', 'dest' => '\Modules\Billing\Controller\BackendController:viewShippingList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -290,7 +290,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewShippingView', 'dest' => '\Modules\Billing\Controller\BackendController:viewShippingView',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -303,7 +303,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationList', 'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
@ -315,7 +315,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationView', 'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationView',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
@ -327,7 +327,7 @@ return [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationCreate', 'dest' => '\Modules\Billing\Controller\BackendController:viewTaxCombinationCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true, 'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::NAME, 'module' => BackendController::NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,

View File

@ -83,11 +83,11 @@ return ['Billing' => [
'Files' => 'Files', 'Files' => 'Files',
'TaxCode' => 'Steuerkz.', 'TaxCode' => 'Steuerkz.',
'PL' => 'GuV', 'PL' => 'GuV',
':combinationtype-1' => 'Verkauf', ':combinationtype-1' => 'Verkauf',
':combinationtype-2' => 'Einkauf', ':combinationtype-2' => 'Einkauf',
'PLAccount' => 'GuV-Konto', 'PLAccount' => 'GuV-Konto',
'Tax1Account' => 'Steuerkonto 1', 'Tax1Account' => 'Steuerkonto 1',
'Tax2Account' => 'Steuerkonto 2', 'Tax2Account' => 'Steuerkonto 2',
'TaxCombinations' => 'Steuerkomb.', 'TaxCombinations' => 'Steuerkomb.',
'PaymentTerms' => 'Zahlungsbedingungen', 'PaymentTerms' => 'Zahlungsbedingungen',
'ShippingTerms' => 'Lieferbedingungen', 'ShippingTerms' => 'Lieferbedingungen',

View File

@ -83,11 +83,11 @@ return ['Billing' => [
'Files' => 'Files', 'Files' => 'Files',
'TaxCode' => 'Tax Code', 'TaxCode' => 'Tax Code',
'PL' => 'PL', 'PL' => 'PL',
':combinationtype-1' => 'Sales', ':combinationtype-1' => 'Sales',
':combinationtype-2' => 'Purchase', ':combinationtype-2' => 'Purchase',
'PLAccount' => 'PL Account', 'PLAccount' => 'PL Account',
'Tax1Account' => 'Tax Account 1', 'Tax1Account' => 'Tax Account 1',
'Tax2Account' => 'Tax Account 2', 'Tax2Account' => 'Tax Account 2',
'TaxCombinations' => 'Tax Combinations', 'TaxCombinations' => 'Tax Combinations',
'PaymentTerms' => 'Payment Terms', 'PaymentTerms' => 'Payment Terms',
'ShippingTerms' => 'Shipping Terms', 'ShippingTerms' => 'Shipping Terms',

View File

@ -17,7 +17,7 @@ use Modules\Billing\Models\Tax\NullTaxCombination;
use phpOMS\Uri\UriFactory; use phpOMS\Uri\UriFactory;
$taxcombination = $this->data['taxcombination'] ?? new NullTaxCombination(); $taxcombination = $this->data['taxcombination'] ?? new NullTaxCombination();
$isNew = $taxcombination->id === 0; $isNew = $taxcombination->id === 0;
$combinationType = BillTaxType::getConstants(); $combinationType = BillTaxType::getConstants();