Various code cleanup.

This commit is contained in:
James Cole 2021-06-13 08:10:30 +02:00
parent c98706fac0
commit 5262c0240e
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
62 changed files with 82 additions and 211 deletions

View File

@ -90,6 +90,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -334,6 +334,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -110,6 +110,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -180,6 +180,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -28,6 +28,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -45,7 +45,7 @@
:sort-desc.sync="sortDesc"
>
<template #table-busy>
<i class="fas fa-spinner fa-spin"></i>
<span class="fas fa-spinner fa-spin"></span>
</template>
<template #cell(name)="data">
<a :class="false === data.item.active ? 'text-muted' : ''" :href="'./accounts/show/' + data.item.id" :title="data.value">{{ data.value }}</a>
@ -55,7 +55,7 @@
</template>
<template #cell(last_activity)="data">
<span v-if="'asset' === type && 'loading' === data.item.last_activity">
<i class="fas fa-spinner fa-spin"></i>
<span class="fas fa-spinner fa-spin"></span>
</span>
<span v-if="'asset' === type && 'none' === data.item.last_activity" class="text-muted">
{{ $t('firefly.never') }}
@ -149,7 +149,7 @@
</div>
<div class="card-footer">
<a :href="'./accounts/create/' + type" class="btn btn-success" :title="$t('firefly.create_new_' + type)">{{ $t('firefly.create_new_' + type) }}</a>
<a href="#" class="btn btn-info"><i class="fas fa-sync"></i></a>
<a href="#" class="btn btn-info"><span class="fas fa-sync"></span></a>
</div>
</div>
</div>

View File

@ -88,6 +88,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -68,6 +68,3 @@ name: "Interest",
}
</script>
<style scoped>
</style>

View File

@ -91,6 +91,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -66,6 +66,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -66,6 +66,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -69,6 +69,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -91,6 +91,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -30,6 +30,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -111,6 +111,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -173,6 +173,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -28,6 +28,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -116,6 +116,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -60,6 +60,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -52,6 +52,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -179,6 +179,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -265,6 +265,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -248,6 +248,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -127,6 +127,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -22,7 +22,7 @@
<div class="row">
<div class="col" v-if="0 !== prefCurrencyBalances.length || 0 !== notPrefCurrencyBalances.length">
<div class="info-box">
<span class="info-box-icon"><i class="far fa-bookmark text-info"></i></span>
<span class="info-box-icon"><span class="far fa-bookmark text-info"></span></span>
<div class="info-box-content">
<span v-if="!loading && !error" class="info-box-text">{{ $t("firefly.balance") }}</span>
@ -47,7 +47,7 @@
<div class="col" v-if="0!==prefBillsUnpaid.length || 0 !== notPrefBillsUnpaid.length">
<div class="info-box">
<span class="info-box-icon"><i class="far fa-calendar-alt text-teal"></i></span>
<span class="info-box-icon"><span class="far fa-calendar-alt text-teal"></span></span>
<div class="info-box-content">
<span v-if="!loading && !error" class="info-box-text">{{ $t('firefly.bills_to_pay') }}</span>
@ -72,7 +72,7 @@
<!-- left to spend -->
<div class="col" v-if="0 !== prefLeftToSpend.length || 0 !== notPrefLeftToSpend.length">
<div class="info-box">
<span class="info-box-icon"><i class="fas fa-money-bill text-success"></i></span>
<span class="info-box-icon"><span class="fas fa-money-bill text-success"></span></span>
<div class="info-box-content">
<span v-if="!loading && !error" class="info-box-text">{{ $t('firefly.left_to_spend') }}</span>
@ -99,7 +99,7 @@
<!-- net worth -->
<div class="col" v-if="0 !== notPrefNetWorth.length || 0 !== prefNetWorth.length">
<div class="info-box">
<span class="info-box-icon"><i class="fas fa-money-bill text-success"></i></span>
<span class="info-box-icon"><span class="fas fa-money-bill text-success"></span></span>
<div class="info-box-content">
<span v-if="!loading && !error" class="info-box-text">{{ $t('firefly.net_worth') }}</span>

View File

@ -77,6 +77,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -81,6 +81,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -185,6 +185,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -94,6 +94,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -78,6 +78,3 @@ name: "GenericTextarea",
}
</script>
<style scoped>
</style>

View File

@ -108,6 +108,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -898,6 +898,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -1182,6 +1182,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -46,17 +46,17 @@
:sort-compare="tableSortCompare"
>
<template #table-busy>
<i class="fa fa-spinner"></i>
<span class="fa fa-spinner"></span>
</template>
<template #cell(type)="data">
<span v-if="! data.item.split || data.item.split_parent === null">
<i class="fas fa-long-arrow-alt-right" v-if="'deposit' === data.item.type"></i>
<i class="fas fa-long-arrow-alt-left" v-else-if="'withdrawal' === data.item.type"></i>
<i class="fas fa-long-arrows-alt-h" v-else-if="'transfer' === data.item.type"></i>
<span class="fas fa-long-arrow-alt-right" v-if="'deposit' === data.item.type"></span>
<span class="fas fa-long-arrow-alt-left" v-else-if="'withdrawal' === data.item.type"></span>
<span class="fas fa-long-arrows-alt-h" v-else-if="'transfer' === data.item.type"></span>
</span>
</template>
<template #cell(description)="data">
<span><i class="fas fa-angle-right" v-if="data.item.split && data.item.split_parent !== null"></i></span>
<span><span class="fas fa-angle-right" v-if="data.item.split && data.item.split_parent !== null"></span></span>
<a :class="false === data.item.active ? 'text-muted' : ''" :href="'./transactions/show/' + data.item.id" :title="data.value">{{
data.value
}}</a>
@ -93,19 +93,19 @@
{{ $t('firefly.actions') }}
</button>
<div class="dropdown-menu" :aria-labelledby="'dropdownMenuButton' + data.item.id">
<a class="dropdown-item" :href="'./transactions/edit/' + data.item.id"><i class="fa fas fa-pencil-alt"></i> {{ $t('firefly.edit') }}</a>
<a class="dropdown-item" :href="'./transactions/delete/' + data.item.id"><i class="fa far fa-trash"></i> {{ $t('firefly.delete') }}</a>
<a class="dropdown-item" :href="'./transactions/edit/' + data.item.id"><span class="fa fas fa-pencil-alt"></span> {{ $t('firefly.edit') }}</a>
<a class="dropdown-item" :href="'./transactions/delete/' + data.item.id"><span class="fa far fa-trash"></span> {{ $t('firefly.delete') }}</a>
</div>
</div>
</div>
<div class="btn btn-light btn-sm" v-if="data.item.split && data.item.split_parent === null && data.item.collapsed === true"
v-on:click="toggleCollapse(data.item)">
<i class="fa fa-caret-down"></i>
<span class="fa fa-caret-down"></span>
Expand split
</div>
<div class="btn btn-light btn-sm" v-else-if="data.item.split && data.item.split_parent === null && data.item.collapsed === false"
v-on:click="toggleCollapse(data.item)">
<i class="fa fa-caret-up"></i>
<span class="fa fa-caret-up"></span>
Collapse split
</div>
</template>
@ -117,7 +117,7 @@
<div class="card-footer">
<a :href="'./transactions/create/' + type" class="btn btn-success"
:title="$t('firefly.create_new_transaction')">{{ $t('firefly.create_new_transaction') }}</a>
<a href="#" class="btn btn-info"><i class="fas fa-sync"></i></a>
<a href="#" class="btn btn-info"><span class="fas fa-sync"></span></a>
</div>
</div>
</div>
@ -254,10 +254,10 @@ export default {
api.get('./api/v1/transactions?type=' + this.type + '&page=' + page + "&start=" + startStr + "&end=" + endStr)
.then(response => {
let currentPage = parseInt(response.data.meta.pagination.current_page);
let totalPages = parseInt(response.data.meta.pagination.total_pages);
//let currentPage = parseInt(response.data.meta.pagination.current_page);
//let totalPages = parseInt(response.data.meta.pagination.total_pages);
this.total = parseInt(response.data.meta.pagination.total);
console.log('total is ' + this.total);
//console.log('total is ' + this.total);
this.transactions.push(...response.data.data);
// if (currentPage < totalPage) {
// let nextPage = currentPage + 1;

View File

@ -41,6 +41,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -112,6 +112,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -138,6 +138,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -71,6 +71,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -94,6 +94,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -124,6 +124,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -99,6 +99,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -106,6 +106,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -94,6 +94,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -86,6 +86,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -166,6 +166,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -72,6 +72,3 @@ export default {
}
</script>
<style scoped>
</style>

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Nachricht',
'flash_warning' => 'Achtung!',
'flash_error' => 'Fehler!',
'flash_danger' => 'Danger!',
'flash_danger' => 'Achtung!',
'flash_info_multiple' => 'Es gibt eine Nachricht | Es gibt :count Nachrichten',
'flash_error_multiple' => 'Es gibt einen Fehler|Es gibt :count Fehler',
'net_worth' => 'Eigenkapital',

View File

@ -28,7 +28,7 @@ return [
'month' => '%B %Y',
'month_and_day' => '%e de %B %Y',
'month_and_day_moment_js' => 'MMM D, YYYY',
'month_and_day_fns' => 'MMMM d, y',
'month_and_day_fns' => 'd MMMM y',
'month_and_date_day' => '%A %e de %B %Y',
'month_and_day_no_year' => '%e %B',
'date_time' => '%e de %B %Y a las %T',

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Mensaje',
'flash_warning' => '¡Atención!',
'flash_error' => '¡Error!',
'flash_danger' => 'Danger!',
'flash_danger' => '¡Peligro!',
'flash_info_multiple' => 'Hay un mensaje | Hay :count mensajes',
'flash_error_multiple' => 'Hay un error|Hay unos :count errores',
'net_worth' => 'Valor Neto',
@ -1131,7 +1131,7 @@ return [
'already_cleared_transactions' => 'Transacciones ya despejadas (:count)',
'submitted_end_balance' => 'Balance final enviado',
'initial_balance_description' => 'Balance inicial para ":account"',
'liability_credit_description' => 'Liability credit for ":account"',
'liability_credit_description' => 'Crédito pasivo para ":account"',
'interest_calc_' => 'desconocido',
'interest_calc_daily' => 'Por dia',
'interest_calc_monthly' => 'Por mes',
@ -1319,17 +1319,17 @@ return [
'account_type_Debt' => 'Deuda',
'account_type_Loan' => 'Préstamo',
'account_type_Mortgage' => 'Hipoteca',
'account_type_debt' => 'Debt',
'account_type_loan' => 'Loan',
'account_type_mortgage' => 'Mortgage',
'account_type_debt' => 'Deuda',
'account_type_loan' => 'Préstamo',
'account_type_mortgage' => 'Hipoteca',
'account_type_Credit card' => 'Tarjeta de crédito',
'liability_direction_credit' => 'Se me debe esta deuda',
'liability_direction_debit' => 'Le debo esta deuda a otra persona',
'liability_direction_credit_short' => 'Owed this debt',
'liability_direction_debit_short' => 'Owe this debt',
'liability_direction__short' => 'Unknown',
'liability_direction_null_short' => 'Unknown',
'Liability credit' => 'Liability credit',
'liability_direction_credit_short' => 'Tenía esta deuda',
'liability_direction_debit_short' => 'Tiene esta deuda',
'liability_direction__short' => 'Desconocido',
'liability_direction_null_short' => 'Desconocido',
'Liability credit' => 'Crédito pasivo',
'budgets' => 'Presupuestos',
'tags' => 'Etiquetas',
'reports' => 'Informes',
@ -1400,7 +1400,7 @@ return [
'splitByAccount' => 'Separada por cuenta',
'coveredWithTags' => 'Cubierta con etiquetas',
'leftInBudget' => 'Disponible en presupuesto',
'left_in_debt' => 'Amount due',
'left_in_debt' => 'Importe debido',
'sumOfSums' => 'Suma de sumas',
'noCategory' => '(sin categoría)',
'notCharged' => 'No cargado (todavía)',
@ -1713,13 +1713,13 @@ return [
'no_accounts_imperative_liabilities' => 'No necesita usar esta función pero, puede ser muy útil si desea hacer un seguimiento de estas cosas.',
'no_accounts_create_liabilities' => 'Crear un pasivo',
'no_budgets_title_default' => 'Vamos a crear un presupuesto',
'no_rules_title_default' => 'Let\'s create a rule',
'no_rules_title_default' => 'Vamos a crear una regla',
'no_budgets_intro_default' => 'Todavía no tienes presupuestos. Los presupuestos se usan para organizar tus gastos en grupos, a los que puedes asignar un tope para limitarlos.',
'no_rules_intro_default' => 'You have no rules yet. Rules are powerful automations that can handle transactions for you.',
'no_rules_imperative_default' => 'Rules can be very useful when you\'re managing transactions. Let\'s create one now:',
'no_rules_intro_default' => 'Aún no tiene reglas. Las reglas son potentes automatizaciones que pueden manejar transacciones por usted.',
'no_rules_imperative_default' => 'Las reglas pueden ser muy útiles cuando está gestionando transacciones. Vamos a crear una ahora:',
'no_budgets_imperative_default' => 'Los presupuestos son las herramientas básicas de la gestión financiera. Vamos a crear uno ahora:',
'no_budgets_create_default' => 'Crear un presupuesto',
'no_rules_create_default' => 'Create a rule',
'no_rules_create_default' => 'Crear regla',
'no_categories_title_default' => '¡Vamos a crear una categoría!',
'no_categories_intro_default' => 'Todavía no tienes categorías. Las categorías se utilizan para ajustar sus transacciones y etiquetarlas con su categoría designada.',
'no_categories_imperative_default' => 'Las categorías se crean automáticamente al crear transacciones, pero también puedes crearlas manualmente. Vamos a crear una:',

View File

@ -130,7 +130,7 @@ return [
'field' => 'Campo',
'value' => 'Valor',
'interest' => 'Interés',
'interest_period' => 'Interest period',
'interest_period' => 'Período de interés',
'liability_type' => 'Tipo de pasivo',
'liability_direction' => 'Liability in/out',
'liability_direction' => 'Pasivo entrada/salida',
];

View File

@ -200,7 +200,7 @@ return [
'need_id_in_edit' => 'Cada división debe tener transaction_journal_id (ID válido o 0).',
'ob_source_need_data' => 'Necesita obtener un ID de cuenta de origen válido y/o nombre de cuenta de origen válido para continuar.',
'lc_source_need_data' => 'Need to get a valid source account ID to continue.',
'lc_source_need_data' => 'Necesita obtener un ID de cuenta de origen válido para continuar.',
'ob_dest_need_data' => 'Necesita obtener un ID de cuenta de destino válido y/o nombre de cuenta de destino válido para continuar.',
'ob_dest_bad_data' => 'No se pudo encontrar una cuenta de destino válida buscando ID ":id" o nombre ":name".',

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Message',
'flash_warning' => 'Attention !',
'flash_error' => 'Erreur !',
'flash_danger' => 'Danger!',
'flash_danger' => 'Danger !',
'flash_info_multiple' => 'Il y a un message| Il y a :count messages',
'flash_error_multiple' => 'Il y a une erreur|Il y a :count erreurs',
'net_worth' => 'Avoir net',

View File

@ -28,7 +28,7 @@ return [
'month' => '%B %Y',
'month_and_day' => '%e %B %Y',
'month_and_day_moment_js' => 'D MMM YYYY',
'month_and_day_fns' => 'MMMM d, y',
'month_and_day_fns' => 'd MMMM y',
'month_and_date_day' => '%A %B %e %Y',
'month_and_day_no_year' => '%B %e',
'date_time' => '%e %B %Y, @ %T',

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Messaggio',
'flash_warning' => 'Avviso!',
'flash_error' => 'Errore!',
'flash_danger' => 'Danger!',
'flash_danger' => 'Attenzione!',
'flash_info_multiple' => 'C\'è un messaggio | Ci sono :count messaggi',
'flash_error_multiple' => 'C\'è un errore | Ci sono :count errors',
'net_worth' => 'Patrimonio',
@ -1131,7 +1131,7 @@ return [
'already_cleared_transactions' => 'Transazioni già conciliate (:count)',
'submitted_end_balance' => 'Saldo finale inserito',
'initial_balance_description' => 'Saldo iniziale per ":account"',
'liability_credit_description' => 'Liability credit for ":account"',
'liability_credit_description' => 'Credito passività per ":account"',
'interest_calc_' => 'sconosciuto',
'interest_calc_daily' => 'Al giorno',
'interest_calc_monthly' => 'Al mese',
@ -1319,17 +1319,17 @@ return [
'account_type_Debt' => 'Debito',
'account_type_Loan' => 'Prestito',
'account_type_Mortgage' => 'Mutuo',
'account_type_debt' => 'Debt',
'account_type_loan' => 'Loan',
'account_type_mortgage' => 'Mortgage',
'account_type_debt' => 'Debito',
'account_type_loan' => 'Prestito',
'account_type_mortgage' => 'Mutuo',
'account_type_Credit card' => 'Carta di credito',
'liability_direction_credit' => 'Questo debito mi è dovuto',
'liability_direction_debit' => 'Devo questo debito a qualcun altro',
'liability_direction_credit_short' => 'Owed this debt',
'liability_direction_debit_short' => 'Owe this debt',
'liability_direction__short' => 'Unknown',
'liability_direction_null_short' => 'Unknown',
'Liability credit' => 'Liability credit',
'liability_direction_credit_short' => 'Mi devono questo debito',
'liability_direction_debit_short' => 'Devo questo debito',
'liability_direction__short' => 'Sconosciuta',
'liability_direction_null_short' => 'Sconosciuta',
'Liability credit' => 'Credito passività',
'budgets' => 'Budget',
'tags' => 'Etichette',
'reports' => 'Resoconti',
@ -1400,7 +1400,7 @@ return [
'splitByAccount' => 'Dividi per conto',
'coveredWithTags' => 'Coperto con etichetta',
'leftInBudget' => 'Rimanenza nel budget',
'left_in_debt' => 'Amount due',
'left_in_debt' => 'Importo da pagare',
'sumOfSums' => 'Somma dei conti',
'noCategory' => '(nessuna categoria)',
'notCharged' => 'Non (ancora) addebitato',
@ -1713,13 +1713,13 @@ return [
'no_accounts_imperative_liabilities' => 'Non è necessario che usi questa funzionalità ma può essere utile se vuoi tenere traccia di queste cose.',
'no_accounts_create_liabilities' => 'Crea una passività',
'no_budgets_title_default' => 'Creiamo un budget',
'no_rules_title_default' => 'Let\'s create a rule',
'no_rules_title_default' => 'Creiamo una regola',
'no_budgets_intro_default' => 'Non hai ancora budget. I budget sono usati per organizzare le tue spese in gruppi logici, ai quali puoi dare un tetto indicativo per limitare le tue spese.',
'no_rules_intro_default' => 'You have no rules yet. Rules are powerful automations that can handle transactions for you.',
'no_rules_imperative_default' => 'Rules can be very useful when you\'re managing transactions. Let\'s create one now:',
'no_rules_intro_default' => 'Non hai ancora regole. Le regole sono potenti automazioni in grado di gestire le transazioni per te.',
'no_rules_imperative_default' => 'Le regole possono essere molto utili quando gestisci le transazioni. Creiamone una:',
'no_budgets_imperative_default' => 'I budget sono gli strumenti di base della gestione finanziaria. Creiamone uno ora:',
'no_budgets_create_default' => 'Crea budget',
'no_rules_create_default' => 'Create a rule',
'no_rules_create_default' => 'Crea regola',
'no_categories_title_default' => 'Creaiamo una categoria!',
'no_categories_intro_default' => 'Non hai ancora categorie. Le categorie vengono utilizzate per mettere a punto le transazioni e etichettarle con la categoria designata.',
'no_categories_imperative_default' => 'Le categorie vengono create automaticamente quando si creano le transazioni, ma è possibile crearne anche manualmente. Ne creiamo una ora:',

View File

@ -130,7 +130,7 @@ return [
'field' => 'Campo',
'value' => 'Valore',
'interest' => 'Interesse',
'interest_period' => 'Interest period',
'interest_period' => 'Periodo interessi',
'liability_type' => 'Tipo di passività',
'liability_direction' => 'Liability in/out',
'liability_direction' => 'Passività in entrata/uscita',
];

View File

@ -200,7 +200,7 @@ return [
'need_id_in_edit' => 'Ogni suddivisione deve avere un "transaction_journal_id" (un ID valido oppure 0).',
'ob_source_need_data' => 'È necessario ottenere un ID e/o un nome del conto di origine validi per continuare.',
'lc_source_need_data' => 'Need to get a valid source account ID to continue.',
'lc_source_need_data' => 'È necessario ottenere un ID del conto sorgente valido per continuare.',
'ob_dest_need_data' => 'È necessario ottenere un ID e/o un nome del conto di destinazione validi per continuare.',
'ob_dest_bad_data' => 'Non è stato possibile trovare un conto di destinazione valido effettuando la ricerca con l\'ID ":id" o il nome ":name".',

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Melding',
'flash_warning' => 'Waarschuwing!',
'flash_error' => 'Fout!',
'flash_danger' => 'Danger!',
'flash_danger' => 'Gevaar!',
'flash_info_multiple' => 'Er is één melding|Er zijn :count meldingen',
'flash_error_multiple' => 'Er is één fout|Er zijn :count fouten',
'net_worth' => 'Kapitaal',

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Komunikat',
'flash_warning' => 'Ostrzeżenie!',
'flash_error' => 'Błąd!',
'flash_danger' => 'Danger!',
'flash_danger' => 'Uwaga!',
'flash_info_multiple' => 'Jest jedna wiadomość|Jest :count wiadomości',
'flash_error_multiple' => 'Jest jeden błąd|Jest :count błędów',
'net_worth' => 'Wartość netto',

View File

@ -83,7 +83,7 @@ return [
'flash_info' => 'Mensagem',
'flash_warning' => 'Atenção!',
'flash_error' => 'Erro!',
'flash_danger' => 'Danger!',
'flash_danger' => 'Perigo!',
'flash_info_multiple' => 'Há uma mensagem|Existem :count mensagens',
'flash_error_multiple' => 'Houve um erro|Houve :count erros',
'net_worth' => 'Valor Líquido',
@ -1319,17 +1319,17 @@ return [
'account_type_Debt' => 'Dívida',
'account_type_Loan' => 'Empréstimo',
'account_type_Mortgage' => 'Hipoteca',
'account_type_debt' => 'Debt',
'account_type_loan' => 'Loan',
'account_type_mortgage' => 'Mortgage',
'account_type_debt' => 'Débito',
'account_type_loan' => 'Empréstimo',
'account_type_mortgage' => 'Hipoteca',
'account_type_Credit card' => 'Cartão de crédito',
'liability_direction_credit' => 'Devo este débito',
'liability_direction_debit' => 'Devo este débito a outra pessoa',
'liability_direction_credit_short' => 'Owed this debt',
'liability_direction_debit_short' => 'Owe this debt',
'liability_direction__short' => 'Unknown',
'liability_direction_null_short' => 'Unknown',
'Liability credit' => 'Liability credit',
'liability_direction__short' => 'Desconhecida',
'liability_direction_null_short' => 'Desconhecida',
'Liability credit' => 'Crédito de passivo',
'budgets' => 'Orçamentos',
'tags' => 'Tags',
'reports' => 'Relatórios',
@ -1400,7 +1400,7 @@ return [
'splitByAccount' => 'Dividir por conta',
'coveredWithTags' => 'Coberto com tags',
'leftInBudget' => 'Deixou no orçamento',
'left_in_debt' => 'Amount due',
'left_in_debt' => 'Valor devido',
'sumOfSums' => 'Soma dos montantes',
'noCategory' => '(sem categoria)',
'notCharged' => 'Não cobrado (ainda)',
@ -1713,13 +1713,13 @@ return [
'no_accounts_imperative_liabilities' => 'Você não precisa usar esse recurso, mas pode ser útil se você quer controlar esse tipo de coisas.',
'no_accounts_create_liabilities' => 'Criar um passivo',
'no_budgets_title_default' => 'Vamos criar um orçamento',
'no_rules_title_default' => 'Let\'s create a rule',
'no_rules_title_default' => 'Vamos criar uma regra',
'no_budgets_intro_default' => 'Você ainda não tem nenhum orçamento. Eles são utilizados para organizar suas despesas em grupos lógicos, que você pode aplicar para limitar suas despesas.',
'no_rules_intro_default' => 'You have no rules yet. Rules are powerful automations that can handle transactions for you.',
'no_rules_imperative_default' => 'Rules can be very useful when you\'re managing transactions. Let\'s create one now:',
'no_budgets_imperative_default' => 'Os orçamentos são as ferramentas básicas de gestão financeira. Vamos criar um agora:',
'no_budgets_create_default' => 'Criar orçamento',
'no_rules_create_default' => 'Create a rule',
'no_rules_create_default' => 'Criar uma regra',
'no_categories_title_default' => 'Vamos criar uma categoria!',
'no_categories_intro_default' => 'Você ainda não possui categorias. As categorias são usadas para ajustar suas transações e rotulá-las com a categoria designada.',
'no_categories_imperative_default' => 'As categorias são criadas automaticamente quando você cria transações, mas você também pode criar uma manualmente. Vamos criar uma agora:',

View File

@ -130,7 +130,7 @@ return [
'field' => 'Campo',
'value' => 'Valor',
'interest' => 'Juros',
'interest_period' => 'Interest period',
'interest_period' => 'Período de juros',
'liability_type' => 'Tipo de passivo',
'liability_direction' => 'Liability in/out',
];

View File

@ -1143,7 +1143,7 @@ try {
Breadcrumbs::for(
'transactions.mass.edit',
static function (Generator $breadcrumbs, array $journals): void {
if (count($journals) > 0) {
if (!empty($journals)) {
$objectType = strtolower(reset($journals)['transaction_type_type']);
$breadcrumbs->parent('transactions.index', $objectType);
$breadcrumbs->push(trans('firefly.mass_edit_journals'), route('transactions.mass.edit', ['']));
@ -1167,7 +1167,7 @@ try {
Breadcrumbs::for(
'transactions.bulk.edit',
static function (Generator $breadcrumbs, array $journals): void {
if (count($journals) > 0) {
if (!empty($journals)) {
$ids = Arr::pluck($journals, 'transaction_journal_id');
$first = reset($journals);
$breadcrumbs->parent('transactions.index', strtolower($first['transaction_type_type']));

View File

@ -189,7 +189,7 @@ class TestConfiguration
$totalCount = 0;
// no mandatory sets? Loop the optional sets:
if (0 === count($this->mandatoryFieldSets)) {
if (empty($this->mandatoryFieldSets)) {
// expand the standard submission with extra sets from the optional field set.
$setCount = count($this->optionalFieldSets);
$this->debugMsg(sprintf('there are %d optional field sets', $setCount));
@ -278,19 +278,19 @@ class TestConfiguration
private function mergeIgnoreArray($left, $right): array
{
// if both empty just return empty:
if (0 === count($left) && 0 === count($right)) {
if (empty($left) && empty($right)) {
$this->debugMsg('Return empty array');
return [];
}
// if left is empty return right
if (0 === count($left)) {
if (empty($left)) {
$this->debugMsg('Return right');
return $right;
}
// if right is empty return left
if (0 === count($right)) {
if (empty($right)) {
$this->debugMsg('Return left');
return $left;
@ -619,7 +619,7 @@ class TestConfiguration
if ($k === 0) {
return [[]];
}
if (count($xs) === 0) {
if (empty($xs)) {
return [];
}
$x = $xs[0];
@ -639,7 +639,7 @@ class TestConfiguration
*/
function updateIgnorables(int $index, array $customFields): void
{
if (count($customFields) > 0) {
if (!empty($customFields)) {
/** @var Field $field */
foreach ($customFields as $field) {
if (0 !== count($field->ignorableFields)) {
@ -656,7 +656,7 @@ class TestConfiguration
private function updateExpected(int $index, array $customFields): void
{
$this->debugMsg('Now parsing expected return values for this set.');
if (count($customFields) > 0) {
if (!empty($customFields)) {
/** @var Field $field */
foreach ($customFields as $field) {
// fieldTitle indicates the position: