From f2818ea0b11b0691061a7f6e082a87a602908219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 25 Oct 2022 13:43:07 +0300 Subject: [PATCH] Updated type defined for Transaction `split` feature.. --- config/type.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/config/type.php b/config/type.php index 6092fad27..ef5ac138d 100644 --- a/config/type.php +++ b/config/type.php @@ -346,6 +346,31 @@ return [ ], ], + Transaction::INCOME_SPLIT_TYPE => [ + 'group' => 'banking', + 'route' => [ + 'prefix' => 'transactions', // core use with group + prefix, module ex. estimates + 'parameter' => 'transaction', // banking/transactions/{parameter}/edit + //'create' => 'transactions.create', // if you change route, you can write full path + ], + 'permission' => [ + 'prefix' => 'transactions', + //'create' => 'create-banking-transactions', + ], + 'translation' => [ + 'prefix' => 'transactions', // this translation file name. + 'related_document_amount' => 'invoices.invoice_amount', + 'transactions' => 'general.incomes', + ], + 'contact_type' => 'customer', + 'document_type' => 'invoice', + 'email_template' => 'payment_received_customer', + 'script' => [ + 'folder' => 'banking', + 'file' => 'transactions', + ], + ], + Transaction::INCOME_RECURRING_TYPE => [ 'group' => 'banking', 'route' => [ @@ -424,6 +449,30 @@ return [ ], ], + Transaction::EXPENSE_SPLIT_TYPE => [ + 'group' => 'banking', + 'route' => [ + 'prefix' => 'transactions', // core use with group + prefix, module ex. estimates + 'parameter' => 'transaction', // banking/transactions/{parameter}/edit + //'create' => 'transactions.create', // if you change route, you can write full path + ], + 'permission' => [ + 'prefix' => 'transactions', + //'create' => 'create-banking-transactions', + ], + 'translation' => [ + 'prefix' => 'transactions', // this translation file name. + 'related_document_amount' => 'bills.bill_amount', + ], + 'contact_type' => 'vendor', + 'document_type' => 'bill', + 'email_template' => 'payment_made_vendor', + 'script' => [ + 'folder' => 'banking', + 'file' => 'transactions', + ], + ], + Transaction::EXPENSE_RECURRING_TYPE => [ 'group' => 'banking', 'route' => [