diff --git a/app/Abstracts/View/Components/Transactions/Show.php b/app/Abstracts/View/Components/Transactions/Show.php index 1577e3aa9..629bdd1cf 100644 --- a/app/Abstracts/View/Components/Transactions/Show.php +++ b/app/Abstracts/View/Components/Transactions/Show.php @@ -304,6 +304,9 @@ abstract class Show extends Component /** @var bool */ public $hideRecurringMessage; + /** @var bool */ + public $hideConnectMessage; + /** @var bool */ public $hideCreated; @@ -335,7 +338,7 @@ abstract class Show extends Component string $routeDocumentShow = '', string $routeTransactionShow = '', string $textButtonAddNew = '', bool $hideSchedule = false, bool $hideChildren = false, bool $hideConnect = false, bool $hideTransfer = false, bool $hideAttachment = false, $attachment = [], - array $connectTranslations = [], string $textRecurringType = '', bool $hideRecurringMessage = false, bool $hideCreated = false + array $connectTranslations = [], string $textRecurringType = '', bool $hideRecurringMessage = false, $hideConnectMessage = false, bool $hideCreated = false ) { $this->type = $type; $this->transaction = $transaction; @@ -472,6 +475,7 @@ abstract class Show extends Component // Connect translations $this->connectTranslations = $this->getTranslationsForConnect($type); + $this->hideConnectMessage = $hideConnectMessage; $this->textRecurringType = $this->getTextRecurringType($type, $textRecurringType); $this->hideRecurringMessage = $hideRecurringMessage; diff --git a/app/Http/Controllers/Banking/Transactions.php b/app/Http/Controllers/Banking/Transactions.php index 62241035e..6cac4f5ce 100644 --- a/app/Http/Controllers/Banking/Transactions.php +++ b/app/Http/Controllers/Banking/Transactions.php @@ -39,7 +39,7 @@ class Transactions extends Controller { $this->setActiveTabForTransactions(); - $transactions = Transaction::with('account', 'category', 'contact')->collect(['paid_at'=> 'desc']); + $transactions = Transaction::with('account', 'category', 'contact', 'taxes')->collect(['paid_at'=> 'desc']); $total_transactions = Transaction::count(); @@ -395,7 +395,7 @@ class Transactions extends Controller $translations = collect($this->getTranslationsForConnect($transaction->type)); $data = [ - 'transaction' => $transaction->load(['account', 'category'])->toJson(), + 'transaction' => $transaction->load(['account', 'category', 'taxes'])->toJson(), 'currency' => $transaction->currency->toJson(), 'documents' => $documents, 'translations' => $translations->toJson(), diff --git a/app/Traits/Transactions.php b/app/Traits/Transactions.php index c9de6f7d5..c418e8d46 100644 --- a/app/Traits/Transactions.php +++ b/app/Traits/Transactions.php @@ -192,6 +192,7 @@ trait Transactions 'add_an' => trans('general.form.add_an', ['field' => trans_choice('general.' . Str::plural($document_type), 1)]), 'transaction' => trans_choice('general.' . Str::plural($type), 1), 'difference' => trans('general.difference'), + 'connect_tax' => trans('messages.warning.connect_tax', ['type' => $type]), ]; } diff --git a/resources/assets/js/components/AkauntingConnectTransactions.vue b/resources/assets/js/components/AkauntingConnectTransactions.vue index d33cd411b..16231f0af 100644 --- a/resources/assets/js/components/AkauntingConnectTransactions.vue +++ b/resources/assets/js/components/AkauntingConnectTransactions.vue @@ -21,6 +21,11 @@ +
+ {{ translations.connect_tax }} +
+