From fa45a02134821e2c53425d2bf27f84a5246ed3f2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 19 Feb 2019 11:47:29 +0200 Subject: [PATCH] Add currencies --- app/Services/InvoiceService.php | 4 ---- database/seeds/CurrenciesSeeder.php | 3 +++ resources/lang/en/texts.php | 5 ++++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Services/InvoiceService.php b/app/Services/InvoiceService.php index 700daa4a82..d483eae7af 100644 --- a/app/Services/InvoiceService.php +++ b/app/Services/InvoiceService.php @@ -148,10 +148,6 @@ class InvoiceService extends BaseService $quote->markApproved(); } - if ($account->auto_archive_quote) { - $this->invoiceRepo->archive($quote); - } - return $invitation->invitation_key; } diff --git a/database/seeds/CurrenciesSeeder.php b/database/seeds/CurrenciesSeeder.php index bb021700a0..9efaa668dc 100644 --- a/database/seeds/CurrenciesSeeder.php +++ b/database/seeds/CurrenciesSeeder.php @@ -99,6 +99,9 @@ class CurrenciesSeeder extends Seeder ['name' => 'Mauritian Rupee', 'code' => 'MUR', 'symbol' => 'Rs', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['name' => 'Cape Verdean Escudo', 'code' => 'CVE', 'symbol' => '', 'precision' => '2', 'thousand_separator' => '.', 'decimal_separator' => '$'], ['name' => 'Kuwaiti Dinar', 'code' => 'KWD', 'symbol' => 'KD', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['name' => 'Algerian Dinar', 'code' => 'DZD', 'symbol' => 'DA', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['name' => 'Macedonian Denar', 'code' => 'MKD', 'symbol' => 'den', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['name' => 'Fijian Dollar', 'code' => 'FJD', 'symbol' => 'FJ$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ]; foreach ($currencies as $currency) { diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 3103500e33..52acb6ac94 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -819,7 +819,7 @@ $LANG = array( 'archived_token' => 'Successfully archived token', 'archive_user' => 'Archive User', 'archived_user' => 'Successfully archived user', - 'archive_account_gateway' => 'Archive Gateway', + 'archive_account_gateway' => 'Delete Gateway', 'archived_account_gateway' => 'Successfully archived gateway', 'archive_recurring_invoice' => 'Archive Recurring Invoice', 'archived_recurring_invoice' => 'Successfully archived recurring invoice', @@ -2451,6 +2451,9 @@ $LANG = array( 'currency_mauritian_rupee' => 'Mauritian Rupee', 'currency_cape_verdean_escudo' => 'Cape Verdean Escudo', 'currency_kuwaiti_dinar' => 'Kuwaiti Dinar', + 'currency_algerian_dinar' => 'Algerian Dinar', + 'currency_macedonian_denar' => 'Macedonian Denar', + 'currency_fijian_dollar' => 'Fijian Dollar', 'review_app_help' => 'We hope you\'re enjoying using the app.
If you\'d consider :link we\'d greatly appreciate it!', 'writing_a_review' => 'writing a review',