diff --git a/composer.json b/composer.json index 822b663ab..4a8cd169a 100755 --- a/composer.json +++ b/composer.json @@ -31,7 +31,6 @@ "laravel/helpers": "^1.1", "laravel/tinker": "^1.0", "maatwebsite/excel": "3.1.18", - "nwidart/laravel-modules": "^3.2", "prettus/l5-repository": "^2.6", "tymon/jwt-auth": "^1.0.0", "barryvdh/laravel-debugbar": "^3.1", @@ -110,7 +109,10 @@ "autoload-dev": { "psr-4": { - "Tests\\": "tests/" + "Tests\\Acceptance\\": "tests/acceptance/", + "Tests\\Functional\\": "tests/functional/", + "Tests\\Unit\\": "tests/unit/", + "Tests\\Trigger\\": "tests/trigger/" } }, diff --git a/composer.lock b/composer.lock index 0e8076162..0095277e8 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "89956b3147bad29980a3486770493059", + "content-hash": "0ba9dbd80803ce19df6735d4a92a17c6", "packages": [ { "name": "astrotomic/laravel-translatable", @@ -2664,76 +2664,6 @@ ], "time": "2019-11-08T13:50:10+00:00" }, - { - "name": "nwidart/laravel-modules", - "version": "3.3.1", - "source": { - "type": "git", - "url": "https://github.com/nWidart/laravel-modules.git", - "reference": "a7ec8a5871e57d337b7d37bbeb246fb99c41c703" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nWidart/laravel-modules/zipball/a7ec8a5871e57d337b7d37bbeb246fb99c41c703", - "reference": "a7ec8a5871e57d337b7d37bbeb246fb99c41c703", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.7", - "laravel/framework": "5.6.*", - "mockery/mockery": "~1.0", - "orchestra/testbench": "^3.6", - "phpstan/phpstan": "^0.9.2", - "phpunit/phpunit": "~7.0", - "spatie/phpunit-snapshot-assertions": "^1.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Nwidart\\Modules\\LaravelModulesServiceProvider" - ], - "aliases": { - "Module": "Nwidart\\Modules\\Facades\\Module" - } - }, - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "psr-4": { - "Nwidart\\Modules\\": "src" - }, - "files": [ - "src/helpers.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Widart", - "email": "n.widart@gmail.com", - "homepage": "https://nicolaswidart.com", - "role": "Developer" - } - ], - "description": "Laravel Module management", - "keywords": [ - "laravel", - "module", - "modules", - "nwidart", - "rad" - ], - "time": "2018-07-13T15:36:59+00:00" - }, { "name": "opis/closure", "version": "3.5.1", @@ -4147,6 +4077,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-03-30T14:07:33+00:00" }, { @@ -4299,6 +4243,20 @@ "mime", "mime-type" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-03-27T16:56:45+00:00" }, { @@ -4478,6 +4436,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-03-09T19:04:49+00:00" }, { @@ -4537,6 +4509,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-03-09T19:04:49+00:00" }, { @@ -4648,6 +4634,20 @@ "portable", "shim" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-02-27T09:26:54+00:00" }, { @@ -6204,6 +6204,76 @@ ], "time": "2018-11-21T21:40:54+00:00" }, + { + "name": "nwidart/laravel-modules", + "version": "3.3.1", + "source": { + "type": "git", + "url": "https://github.com/nWidart/laravel-modules.git", + "reference": "a7ec8a5871e57d337b7d37bbeb246fb99c41c703" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nWidart/laravel-modules/zipball/a7ec8a5871e57d337b7d37bbeb246fb99c41c703", + "reference": "a7ec8a5871e57d337b7d37bbeb246fb99c41c703", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.7", + "laravel/framework": "5.6.*", + "mockery/mockery": "~1.0", + "orchestra/testbench": "^3.6", + "phpstan/phpstan": "^0.9.2", + "phpunit/phpunit": "~7.0", + "spatie/phpunit-snapshot-assertions": "^1.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Nwidart\\Modules\\LaravelModulesServiceProvider" + ], + "aliases": { + "Module": "Nwidart\\Modules\\Facades\\Module" + } + }, + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Nwidart\\Modules\\": "src" + }, + "files": [ + "src/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Widart", + "email": "n.widart@gmail.com", + "homepage": "https://nicolaswidart.com", + "role": "Developer" + } + ], + "description": "Laravel Module management", + "keywords": [ + "laravel", + "module", + "modules", + "nwidart", + "rad" + ], + "time": "2018-07-13T15:36:59+00:00" + }, { "name": "phar-io/manifest", "version": "1.0.3", @@ -7770,5 +7840,6 @@ "ext-pdo_mysql": "*", "ext-tokenizer": "*" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/packages/Webkul/Admin/src/DataGrids/CouponsDataGrid.php b/packages/Webkul/Admin/src/DataGrids/CartRuleCouponsDataGrid.php similarity index 100% rename from packages/Webkul/Admin/src/DataGrids/CouponsDataGrid.php rename to packages/Webkul/Admin/src/DataGrids/CartRuleCouponsDataGrid.php diff --git a/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php b/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php index 97f1f36ec..63e25dc28 100755 --- a/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php +++ b/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php @@ -3,9 +3,6 @@ namespace Webkul\Admin\Providers; use Illuminate\Support\ServiceProvider; -use Webkul\Admin\Providers\EventServiceProvider; -use Illuminate\Contracts\Debug\ExceptionHandler; -use Webkul\Admin\Exceptions\Handler; use Webkul\Core\Tree; class AdminServiceProvider extends ServiceProvider @@ -32,11 +29,6 @@ class AdminServiceProvider extends ServiceProvider $this->registerACL(); $this->app->register(EventServiceProvider::class); - - $this->app->bind( - ExceptionHandler::class, - Handler::class - ); } /** @@ -96,7 +88,7 @@ class AdminServiceProvider extends ServiceProvider view()->composer(['admin::users.roles.create', 'admin::users.roles.edit'], function ($view) { $view->with('acl', $this->createACL()); }); - + view()->composer(['admin::catalog.products.create'], function ($view) { $items = array(); diff --git a/packages/Webkul/Admin/src/Resources/lang/it/app.php b/packages/Webkul/Admin/src/Resources/lang/it/app.php new file mode 100644 index 000000000..2494bd14d --- /dev/null +++ b/packages/Webkul/Admin/src/Resources/lang/it/app.php @@ -0,0 +1,1340 @@ + 'Salva', + 'create' => 'Crea', + 'update' => 'Modifica', + 'delete' => 'Elimina', + 'failed' => 'Fallito', + 'store' => 'Store', + 'image' => 'Immagine', + 'no result' => 'Nessun risultato', + 'product' => 'Prodotto', + 'attribute' => 'Attributo', + 'actions' => 'Azioni', + 'id' => 'ID', + 'action' => 'azione', + 'yes' => 'Sì', + 'no' => 'No', + 'true' => 'Vero', + 'false' => 'Falso', + 'apply' => 'Applica', + 'action' => 'Azione', + 'label' => 'Etichetta', + 'name' => 'Nome', + 'title' => 'Titolo', + 'code' => 'Codice', + 'type' => 'Tipo', + 'required' => 'Richiesto', + 'unique' => 'Unico', + 'locale-based' => 'Basato su Localizzazione', + 'channel-based' => 'Basato su Canale', + 'status' => 'Stato', + 'select-option' => 'Seleziona opzione', + 'category' => 'Categoria', + + 'common' => [ + 'no-result-found' => 'Non è stato trovato nessun record.', + 'country' => 'Paese', + 'state' => 'Provincia', + 'true' => 'Vero', + 'false' => 'Falso' + ], + + 'layouts' => [ + 'app-version' => 'Versione : :version', + 'my-account' => 'Il Mio Account', + 'logout' => 'Logout', + 'visit-shop' => 'Visita Store', + 'dashboard' => 'Dashboard', + 'sales' => 'Vendite', + 'orders' => 'Ordini', + 'shipments' => 'Spedizioni', + 'invoices' => 'Fatture', + 'refunds' => 'Rimborsi', + 'catalog' => 'Catalogo', + 'products' => 'Prodotti', + 'categories' => 'Categorie', + 'attributes' => 'Attributi', + 'attribute-families' => 'Famiglie Attributi', + 'customers' => 'Clienti', + 'groups' => 'Gruppi', + 'reviews' => 'Recensioni', + 'newsletter-subscriptions' => 'Iscrizione Newsletter', + 'configure' => 'Configura', + 'settings' => 'Impostazioni', + 'locales' => 'Localizzazioni', + 'currencies' => 'Valute', + 'exchange-rates' => 'Tassi di Cambio', + 'inventory-sources' => 'Magazzini', + 'channels' => 'Canali', + 'users' => 'Utenti', + 'roles' => 'Ruoli', + 'sliders' => 'Sliders', + 'taxes' => 'IVA', + 'tax-categories' => 'Categorie IVA', + 'tax-rates' => 'Aliquote IVA', + 'promotions' => 'Promozioni', + 'discount' => 'Sconti', + 'cms' => 'CMS' + ], + + 'acl' => [ + 'dashboard' => 'Dashboard', + 'sales' => 'Vendite', + 'orders' => 'Ordini', + 'shipments' => 'Spedizioni', + 'invoices' => 'Fatture', + 'catalog' => 'Catalogo', + 'products' => 'Prodotti', + 'categories' => 'Categorie', + 'attributes' => 'Attributi', + 'attribute-families' => 'Famiglie Attributi', + 'customers' => 'Clienti', + 'groups' => 'Gruppi', + 'reviews' => 'Recensioni', + 'newsletter-subscriptions' => 'Iscrizioni Newsletter', + 'configure' => 'Configura', + 'settings' => 'Impostazioni', + 'locales' => 'Localizzazioni', + 'currencies' => 'Valute', + 'exchange-rates' => 'Tassi di cambio', + 'inventory-sources' => 'Magazzini', + 'channels' => 'Canali', + 'users' => 'Utenti', + 'roles' => 'Ruoli', + 'sliders' => 'Sliders', + 'taxes' => 'IVA', + 'tax-categories' => 'Categorie IVA', + 'tax-rates' => 'Aliquote IVA', + 'edit' => 'Modifica', + 'create' => 'Aggiungi', + 'delete' => 'Elimina', + 'promotions' => 'Promozioni', + 'cart-rules' => 'Regole Carrello', + 'catalog-rules' => 'Regole Catalogo', + ], + + 'dashboard' => [ + 'title' => 'Dashboard', + 'from' => 'Da', + 'to' => 'A', + 'total-customers' => 'Totale Clienti', + 'total-orders' => 'Totale Ordini', + 'total-sale' => 'Totale Vendite', + 'average-sale' => 'Media Ordine di Vendita', + 'increased' => ':progress%', + 'decreased' => ':progress%', + 'sales' => 'Vendite', + 'top-performing-categories' => 'Categorie più performanti', + 'product-count' => ':count Prodotti', + 'top-selling-products' => 'Prodotti più venduti', + 'sale-count' => ':count Vendite', + 'customer-with-most-sales' => 'Cliente con più Vendite', + 'order-count' => ':count Ordini', + 'revenue' => 'Fatturato :total', + 'stock-threshold' => 'Soglia stock', + 'qty-left' => ':qty rimasti' + ], + + 'datagrid' => [ + 'mass-ops' => [ + 'method-error' => 'Errore! Metodo errato selezinato, per favore verifica la configurazione dell\azione massiva', + 'delete-success' => ':resource eliminate con successo', + 'partial-action' => 'Some actions were not performed due restricted system constraints on :resource', + 'update-success' => 'Selected :resource were successfully updated', + 'no-resource' => 'The resource provided for insufficient for the action' + ], + + 'id' => 'ID', + 'status' => 'Stato', + 'code' => 'Codice', + 'admin-name' => 'Nome', + 'name' => 'Nome', + 'direction' => 'Direzione', + 'fullname' => 'Nome completo', + 'type' => 'Tipo', + 'required' => 'Richiesto', + 'unique' => 'Unico', + 'per-locale' => 'Basato su localizzazione', + 'per-channel' => 'Basato sul canale', + 'position' => 'Posizione', + 'locale' => 'Locale', + 'hostname' => 'Hostname', + 'email' => 'Email', + 'group' => 'Gruppo', + 'phone' => 'Telefono', + 'gender' => 'Sesso', + 'title' => 'Titolo', + 'layout' => 'Layout', + 'url-key' => 'URL Key', + 'comment' => 'Commento', + 'product-name' => 'Prodotto', + 'currency-name' => 'Nome Valuta', + 'exch-rate' => 'Tasso di cambio', + 'priority' => 'Priorità', + 'subscribed' => 'Iscritto', + 'base-total' => 'Base Totale', + 'grand-total' => 'Gran Totale', + 'order-date' => 'Data Ordine', + 'channel-name' => 'Nome Canale', + 'billed-to' => 'Fatturato a', + 'shipped-to' => 'Spedito a', + 'order-id' => 'Id Ordine', + 'invoice-date' => 'Data Fattura', + 'total-qty' => 'Qtà Totale', + 'inventory-source' => 'Magazzino', + 'shipment-date' => 'Data Spedizione', + 'shipment-to' => 'Spedizione A', + 'sku' => 'SKU', + 'price' => 'Prezzo', + 'qty' => 'Quantità', + 'permission-type' => 'Tipo Permessi', + 'identifier' => 'Identificatore', + 'state' => 'Provincia', + 'country' => 'Paese', + 'tax-rate' => 'Aliquota', + 'role' => 'Ruolo', + 'sub-total' => 'Subtotale', + 'no-of-products' => 'Numero di Prodotti', + 'attribute-family' => 'Famiglia Attributi', + 'starts-from' => 'Inizia dal', + 'ends-till' => 'Finisce il', + 'per-cust' => 'Per Cliente', + 'usage-throttle' => 'Numero Utilizzi', + 'for-guest' => 'Per Guest', + 'order_number' => 'Numero Ordine', + 'refund-date' => 'Data Rimborso', + 'refunded' => 'Rimborsato', + 'start' => 'Inizio', + 'end' => 'Fine', + 'active' => 'Attivo', + 'inactive' => 'Inattivo', + 'true' => 'Vero', + 'false' => 'Falso', + 'approved' => 'Approvato', + 'pending' => 'In attesa', + 'disapproved' => 'Non Approvato', + 'coupon-code' => 'Coupon Codice', + 'times-used' => 'Utilizzato Volte', + 'created-date' => 'Data Creazione', + 'expiration-date' => 'Data Scadenza', + 'edit' => 'Modifica', + 'delete' => 'Elimina', + 'view' => 'Vedi', + 'rtl' => 'RTL', + 'ltr' => 'LTR', + 'update-status' => 'Update Stato' + ], + + 'account' => [ + 'title' => 'Il Mio Account', + 'save-btn-title' => 'Salva', + 'general' => 'Generale', + 'name' => 'Nome', + 'email' => 'Email', + 'password' => 'Password', + 'confirm-password' => 'Conferma Password', + 'change-password' => 'Modifica Password', + 'current-password' => 'Attuale Password' + ], + + 'users' => [ + 'forget-password' => [ + 'title' => 'Password dimenticata', + 'header-title' => 'Recupera Password', + 'email' => 'Email registrata', + 'password' => 'Password', + 'confirm-password' => 'Conferma Password', + 'back-link-title' => 'Torna a Login', + 'submit-btn-title' => 'Invia Email Recupera Password' + ], + + 'reset-password' => [ + 'title' => 'Genera nuova Password', + 'email' => 'Email Registrata', + 'password' => 'Password', + 'confirm-password' => 'Conferma Password', + 'back-link-title' => 'Torna a Login', + 'submit-btn-title' => 'Invia Nuova Password' + ], + + 'roles' => [ + 'title' => 'Ruoli', + 'add-role-title' => 'Aggiungi Ruolo', + 'edit-role-title' => 'Modifica Ruolo', + 'save-btn-title' => 'Salva Ruolo', + 'general' => 'Generale', + 'name' => 'Nome', + 'description' => 'Descrizione', + 'access-control' => 'Controllo Accesso', + 'permissions' => 'Permissioni', + 'custom' => 'Custom', + 'all' => 'Tutto' + ], + + 'users' => [ + 'title' => 'Utente', + 'add-user-title' => 'Aggiungi Utente', + 'edit-user-title' => 'Modifica Utente', + 'save-btn-title' => 'Save Utente', + 'general' => 'Generale', + 'email' => 'Email', + 'name' => 'Nome', + 'password' => 'Password', + 'confirm-password' => 'Conferma Password', + 'status-and-role' => 'Stato e Ruolo', + 'role' => 'Ruolo', + 'status' => 'Stato', + 'account-is-active' => 'L\'Account è Attivo', + 'current-password' => 'Inserisci Password Attuale', + 'confirm-delete' => 'Conferma eliminazione di questo Account', + 'confirm-delete-title' => 'Conferma la password prima di eliminare', + 'delete-last' => 'Almeno un amministratore è necessario.', + 'delete-success' => 'Success! Utente deleted', + 'incorrect-password' => 'La password inserita non è corretta', + 'password-match' => 'La password attuale non corrisponde a quella salvata.', + 'account-save' => 'Le modifiche all\'Account sono state salvate.', + 'login-error' => 'Per favore verifica le tue credenziali e prova di nuovo.', + 'activate-warning' => 'Il tuo account deve ancora essere attivato, per favore contatta un amministratore.' + ], + + 'sessions' => [ + 'title' => 'Login', + 'email' => 'Email', + 'password' => 'Password', + 'forget-password-link-title' => 'Password dimenticata ?', + 'remember-me' => 'Ricordami', + 'submit-btn-title' => 'Login' + ] + ], + + 'sales' => [ + 'orders' => [ + 'title' => 'Ordini', + 'view-title' => 'Ordine #:order_id', + 'cancel-btn-title' => 'Cancella', + 'shipment-btn-title' => 'Spedisci', + 'invoice-btn-title' => 'Fattura', + 'info' => 'Informazoni', + 'invoices' => 'Fatture', + 'shipments' => 'Spedizioni', + 'order-and-account' => 'Ordine e Account', + 'order-info' => 'informazioni Ordine', + 'order-date' => 'Data Ordine', + 'order-status' => 'Stato Ordine', + 'order-status-canceled' => 'Cancellato', + 'order-status-closed' => 'Chiuso', + 'order-status-fraud' => 'Frode', + 'order-status-pending' => 'In attesa', + 'order-status-pending-payment' => 'In attesa Pagamento', + 'order-status-processing' => 'In corso di processamento', + 'order-status-success' => 'Completato', + 'channel' => 'Canale', + 'customer-name' => 'Nome Cliente', + 'email' => 'Email', + 'contact-number' => 'Numero Contatto', + 'account-info' => 'Informazione Account', + 'address' => 'Indirizzo', + 'shipping-address' => 'Indirizzo Spedizione', + 'billing-address' => 'Indirizzo Fatturazione', + 'payment-and-shipping' => 'Pagamento e Spedizione', + 'payment-info' => 'Informazioni Pagamento', + 'payment-method' => 'Metodo di Pagamento', + 'currency' => 'Valuta', + 'shipping-info' => 'Informazioni Spedizione', + 'shipping-method' => 'Metodo di Spedizione', + 'shipping-price' => 'Spedizione', + 'products-ordered' => 'Prodotti Ordinati', + 'SKU' => 'SKU', + 'product-name' => 'Nome Prodotto', + 'qty' => 'Qtà', + 'item-status' => 'Stato Articolo', + 'item-ordered' => 'Ordinati (:qty_ordered)', + 'item-invoice' => 'Fatturati (:qty_invoiced)', + 'item-shipped' => 'Spediti (:qty_shipped)', + 'item-canceled' => 'Cancellati (:qty_canceled)', + 'item-refunded' => 'Resi (:qty_refunded)', + 'price' => 'Prezzo', + 'total' => 'Totale', + 'subtotal' => 'Subtotale', + 'shipping-handling' => 'Spedizione', + 'discount' => 'Sconto', + 'tax' => 'IVA', + 'tax-percent' => '% IVA', + 'tax-amount' => 'Ammontare IVA', + 'discount-amount' => 'Ammontare Sconto', + 'discount-amount' => 'Ammontare Sconto', + 'grand-total' => 'Totale', + 'total-paid' => 'Totale Pagato', + 'total-refunded' => 'Totale Rimborsato', + 'total-due' => 'Totale Dovuto', + 'cancel-confirm-msg' => 'Sei sicuro di voler cancellare questo ordine ?', + 'refund-btn-title' => 'Rimborsa', + 'refunds' => 'Rimborsi', + 'comment-added-success' => 'Commento aggiunto con successo.', + 'comment' => 'Commento', + 'submit-comment' => 'Invia Commento', + 'notify-customer' => 'Notifica Cliente', + 'customer-notified' => ':date | Cliente Notificato', + 'customer-not-notified' => ':date | Cliente Non Notificato' + ], + + 'invoices' => [ + 'title' => 'Fatture', + 'id' => 'Id', + 'invoice-id' => 'Id Fattura', + 'date' => 'Data Fattura', + 'order-id' => 'Id Ordine', + 'customer-name' => 'Nome Cliente', + 'status' => 'Stato', + 'amount' => 'Ammontare', + 'action' => 'Azione', + 'add-title' => 'Crea Fattura', + 'save-btn-title' => 'Salva Fattura', + 'qty' => 'Qtà', + 'qty-ordered' => 'Qtà ordinata', + 'qty-to-invoice' => 'Qtà da fatturare', + 'view-title' => 'Fattura #:invoice_id', + 'bill-to' => 'Fatturato a', + 'ship-to' => 'Spedito a', + 'print' => 'Stampa', + 'order-date' => 'Data Ordine', + 'creation-error' => 'La creazione della fattura dell\'Ordine non è consentita.', + 'product-error' => 'La fattura non può essere creata senza prodotti.' + ], + + 'shipments' => [ + 'title' => 'Spedizioni', + 'id' => 'Id', + 'date' => 'Data Spedizione', + 'order-id' => 'Ordine Id', + 'order-date' => 'Ordine date', + 'customer-name' => 'Cliente Nome', + 'total-qty' => 'Totale Qtà', + 'action' => 'Azione', + 'add-title' => 'Crea Spedizione', + 'save-btn-title' => 'Salva Spedizione', + 'qty-ordered' => 'Qtà Ordinata', + 'qty-to-ship' => 'Qtà da Spedire', + 'available-sources' => 'Fonti Disponibili', + 'source' => 'Magazzino', + 'select-source' => 'Per favore seleziona magazzino', + 'qty-available' => 'Qtà Disponibie', + 'inventory-source' => 'Magazzino Origine', + 'carrier-title' => 'Nome Carrier', + 'tracking-number' => 'Codice Tracking', + 'view-title' => 'Spedizione #:shipment_id', + 'creation-error' => 'La spedizione non può essere creata per questo ordine.', + 'order-error' => 'La creazione della spedizione dell\'Ordine non è consentita.', + 'quantity-invalid' => 'La quantità richiesta non è valida non è disponibile.', + ], + + 'refunds' => [ + 'title' => 'Rimborsi', + 'id' => 'Id', + 'add-title' => 'Crea Rimborso', + 'save-btn-title' => 'Rimborso', + 'order-id' => 'Ordine Id', + 'qty-ordered' => 'Qtà ordinata', + 'qty-to-refund' => 'Qtà da rimborsare', + 'refund-shipping' => 'Rimborso Spedizione', + 'adjustment-refund' => 'Rimborso', + 'adjustment-fee' => 'Commissione Rimborso', + 'update-qty' => 'Aggiorna Quantità', + 'invalid-qty' => 'Abbiamo trovato una quantità non valida di articoli da rimborsare.', + 'refund-limit-error' => 'L\'ammontare massimo rimborsabile è :amount.', + 'refunded' => 'Rimborsato', + 'date' => 'Data Rimborso', + 'customer-name' => 'Nome Cliente', + 'status' => 'Stato', + 'action' => 'Azione', + 'view-title' => 'Rimborso #:refund_id', + 'invalid-refund-amount-error' => 'La somma rimborsata dovrebbe essere diversa da zero.' + + ] + ], + + 'catalog' => [ + 'products' => [ + 'title' => 'Prodotti', + 'add-product-btn-title' => 'Aggiungi Prodotto', + 'add-title' => 'Aggiungi Prodotto', + 'edit-title' => 'Modifica Prodotto', + 'save-btn-title' => 'Salva Prodotto', + 'general' => 'Generale', + 'product-type' => 'Tipo Prodotto', + 'simple' => 'Semplice', + 'configurable' => 'Configurabile', + 'familiy' => 'Famiglia Attributo', + 'sku' => 'SKU', + 'configurable-attributes' => 'Attributi Configurabili', + 'attribute-header' => 'Attributo(i)', + 'attribute-option-header' => 'Opzioni Attributo', + 'no' => 'No', + 'yes' => 'Sì', + 'disabled' => 'Disabilitato', + 'enabled' => 'Abilitato', + 'add-variant-btn-title' => 'Aggiungi Variante', + 'name' => 'Nome', + 'qty' => 'Qtà', + 'price' => 'Prezzo', + 'weight' => 'Peso', + 'status' => 'Stato', + 'variant-already-exist-message' => 'Una variante con le stesse opzioni attributo esiste già.', + 'add-image-btn-title' => 'Aggiungi Immagine', + 'add-variant-title' => 'Aggiungi Variante', + 'variant-already-exist-message' => 'Una Variante con le stesse opzioni attributo esiste già.', + 'add-image-btn-title' => 'Aggiungi Immaggine', + 'mass-delete-success' => 'Tutti i prodotti selezionati devono essere eliminate con successo', + 'mass-update-success' => 'Tutti i prodotti sono stati aggiornati con successo', + 'configurable-error' => 'Per favore seleziona almeno un attributo configurabile.', + 'categories' => 'Categorie', + 'images' => 'Immagini', + 'inventories' => 'Magazzini', + 'variations' => 'Variazioni', + 'downloadable' => 'Informazioni scaricabili', + 'links' => 'Link', + 'add-link-btn-title' => 'Aggiungi Link', + 'samples' => 'Campioni', + 'add-sample-btn-title' => 'Aggiungi Campione', + 'downloads' => 'Download Conentito', + 'file' => 'File', + 'sample' => 'Campione', + 'upload-file' => 'Carica File', + 'url' => 'Url', + 'sort-order' => 'Ordina Ordine', + 'browse-file' => 'Naviga File', + 'product-link' => 'Prodotti collegati', + 'cross-selling' => 'Cross Selling', + 'up-selling' => 'Up Selling', + 'related-products' => 'Prodotti correlati', + 'product-search-hint' => 'Inizia a digitare un nome di prodotto', + 'no-result-found' => 'Prodotti con lo stesso nome non trovato.', + 'searching' => 'Sto cercando ...', + 'grouped-products' => 'Prodotti Raggruppati', + 'search-products' => 'Cerca Prodotti', + 'no-result-found' => 'Prodotti con lo stesso nome non trovato.', + 'channel' => 'Canali', + 'bundle-items' => 'Elementi Bundle', + 'add-option-btn-title' => 'Aggiungi Opzione', + 'option-title' => 'Titolo Opzione', + 'input-type' => 'Input Tipo', + 'is-required' => 'È Richiesto', + 'select' => 'Select', + 'radio' => 'Radio', + 'checkbox' => 'Checkbox', + 'multiselect' => 'Multiselect', + 'new-option' => 'Nuova Opzione', + 'is-default' => 'È Predefinita', + 'actions' => 'Azioni' + ], + + 'attributes' => [ + 'title' => 'Attributi', + 'add-title' => 'Aggiungi Attributo', + 'edit-title' => 'Modifica Attributo', + 'save-btn-title' => 'Salva Attributo', + 'general' => 'Generale', + 'code' => 'Attribute Codice', + 'type' => 'Attribute Tipo', + 'text' => 'Text', + 'textarea' => 'Textarea', + 'price' => 'Prezzo', + 'boolean' => 'Boolean', + 'select' => 'Select', + 'multiselect' => 'Multiselect', + 'datetime' => 'Datetime', + 'date' => 'Data', + 'label' => 'Etichetta', + 'admin' => 'Admin', + 'options' => 'Opzioni', + 'position' => 'Posizione', + 'add-option-btn-title' => 'Aggiungi Option', + 'validations' => 'Validazioni', + 'input_validation' => 'Validazione Input', + 'is_required' => 'È Richiesto', + 'is_unique' => 'È Unico', + 'number' => 'Number', + 'decimal' => 'Decimal', + 'email' => 'Email', + 'url' => 'URL', + 'configuration' => 'Configurazione', + 'status' => 'Stato', + 'yes' => 'Sì', + 'no' => 'No', + 'value_per_locale' => 'Valore per Localizzazione', + 'value_per_channel' => 'Valore per Canale', + 'is_filterable' => 'Utilizzato nella Navigazione Layered', + 'is_configurable' => 'Utilizzato per creare Prodotto Configurabile', + 'admin_name' => 'Nome Admin', + 'is_visible_on_front' => 'Visible on Prodotto View Page on Front-end', + 'swatch_type' => 'Swatch Tipo', + 'dropdown' => 'Dropdown', + 'color-swatch' => 'Color Swatch', + 'image-swatch' => 'Image Swatch', + 'text-swatch' => 'Text Swatch', + 'swatch' => 'Swatch', + 'image' => 'Image', + 'file' => 'File', + 'checkbox' => 'Checkbox', + 'use_in_flat' => "Crea in tabella Product flat", + 'is_comparable' => "L'attributo è comparabile", + 'default_null_option' => 'Crea opzione predefinita vuota', + ], + 'families' => [ + 'title' => 'Famiglie', + 'add-family-btn-title' => 'Aggiungi Famiglia', + 'add-title' => 'Aggiungi Famiglia', + 'edit-title' => 'Modifica Famiglia', + 'save-btn-title' => 'Salva Famiglia', + 'general' => 'Generale', + 'code' => 'Codice Famiglia', + 'name' => 'Nome', + 'groups' => 'Gruppi', + 'add-group-title' => 'Aggiungi Gruppo', + 'position' => 'Posizione', + 'attribute-code' => 'Codice', + 'type' => 'Tipo', + 'add-attribute-title' => 'Aggiungi Attributi', + 'search' => 'Cerca', + 'group-exist-error' => 'Un gruppo con lo stesso nome esiste già.', + 'actions' => 'Azioni', + 'description' => 'Descrizione' + ], + 'categories' => [ + 'title' => 'Categorie', + 'add-title' => 'Aggiungi Categoria', + 'edit-title' => 'Modifica Categoria', + 'save-btn-title' => 'Save Categoria', + 'general' => 'Generale', + 'name' => 'Nome', + 'visible-in-menu' => 'Visibile nel Menu', + 'yes' => 'Sì', + 'no' => 'No', + 'position' => 'Posizione', + 'display-mode' => 'Modalità di visualizzazione', + 'products-and-description' => 'Prodotti e Descrizioni', + 'products-only' => 'Solo Prodotti', + 'description-only' => 'Solo Descrizioni', + 'description-and-images' => 'Descrizioni e Immagini', + 'description' => 'Descrizione', + 'parent-category' => 'Categoria Padre', + 'seo' => 'Search Engine Optimization', + 'slug' => 'Slug', + 'meta_title' => 'Meta Title', + 'meta_description' => 'Meta Description', + 'meta_keywords' => 'Meta Keywords', + 'image' => 'Immagine', + 'filterable-attributes' => 'Attributi filtrabili', + 'attributes' => 'Attributi', + ] + ], + + 'configuration' => [ + 'title' => 'Configurazione', + 'save-btn-title' => 'Salva', + 'save-message' => 'Configurazione salvata con successo', + 'yes' => 'Sì', + 'no' => 'No', + 'delete' => 'Elimina', + + 'tax-categories' => [ + 'title' => 'Categorie IVA', + 'add-title' => 'Aggiungi Categoria IVA', + 'edit-title' => 'Modifica Categoria IVA', + 'save-btn-title' => 'Salva Categoria IVA', + 'general' => 'Categoria IVA', + 'select-channel' => 'Seleziona Canale', + 'name' => 'Nome', + 'code' => 'Codice', + 'description' => 'Descrizione', + 'select-taxrates' => 'Seleziona Aliquote IVA', + 'edit' => [ + 'title' => 'Modifica Category IVA', + 'edit-button-title' => 'Modifica Categoria IVA' + ] + ], + + 'tax-rates' => [ + 'title' => 'Aliquote IVA', + 'add-title' => 'Aggiungi Aliquota IVA', + 'edit-title' => 'Modifica Aliquota IVA', + 'save-btn-title' => 'Salva Aliquota IVA', + 'general' => 'Aliquota IVA', + 'identifier' => 'Identificatore', + 'is_zip' => 'Abilita Range per CAP', + 'zip_from' => 'CAP da', + 'zip_to' => 'CAP a', + 'state' => 'Stato/Provincia', + 'select-state' => 'Seleziona una regione, stato o provincia.', + 'country' => 'Paese', + 'tax_rate' => 'Aliquota', + 'edit' => [ + 'title' => 'Modifica Aliquota IVA', + 'edit-button-title' => 'Modifica Aliquota' + ], + 'zip_code' => 'CAP', + 'is_zip' => 'Abilita Range CAP', + ], + + 'sales' => [ + 'shipping-method' => [ + 'title' => 'Metodi di Spedizione', + 'save-btn-title' => 'Salva', + 'description' => 'Descrizione', + 'active' => 'Attivo', + 'status' => 'Stato' + ] + ] + ], + + 'settings' => [ + 'locales' => [ + 'title' => 'Localizzazioni', + 'add-title' => 'Aggiungi Localizzazione', + 'edit-title' => 'Modifica Localizzazione', + 'add-title' => 'Aggiungi Localizzazione', + 'save-btn-title' => 'Salva Localizzazione', + 'general' => 'Generale', + 'code' => 'Codice', + 'name' => 'Nome', + 'direction' => 'Direzione', + 'create-success' => 'Localizzazione creata con successo.', + 'update-success' => 'Locale aggiornata con successo.', + 'delete-success' => 'Localizzazione eliminata con successo.', + 'last-delete-error' => 'Almeno una localizzazione è necessaria.', + ], + 'countries' => [ + 'title' => 'Paesi', + 'add-title' => 'Aggiungi Paese', + 'save-btn-title' => 'Salva Paese', + 'general' => 'Generale', + 'code' => 'Codice', + 'name' => 'Nome' + ], + 'currencies' => [ + 'title' => 'Valute', + 'add-title' => 'Aggiungi Valuta', + 'edit-title' => 'Modifica Valuta', + 'save-btn-title' => 'Salva Valuta', + 'general' => 'Generale', + 'code' => 'Codice', + 'name' => 'Nome', + 'symbol' => 'Simbolo', + 'create-success' => 'Valuta creata con successo.', + 'update-success' => 'Valuta aggiornata con successo.', + 'delete-success' => 'Valuta eliminata con successo.', + 'last-delete-error' => 'Almeno una valuta è necessaria.', + ], + 'exchange_rates' => [ + 'title' => 'Tasso di cambio', + 'add-title' => 'Aggiungi Tasso di cambio', + 'edit-title' => 'Modifica Tasso di cambio', + 'save-btn-title' => 'Save Tasso di cambio', + 'general' => 'Generale', + 'source_currency' => 'Valuta Origine', + 'target_currency' => 'Valuta Destinazione', + 'rate' => 'Tasso', + 'exchange-class-not-found' => ':service cambio non trovata', + 'update-rates' => 'Aggiorna cambi utilizzando :service', + 'create-success' => 'Tasso di cambio creato con successo.', + 'update-success' => 'Tasso di cambio aggiornato con successo.', + 'delete-success' => 'Tasso di cambio eliminato con successo.', + 'last-delete-error' => 'Almeno un taasso di cambio è necessario.', + ], + 'inventory_sources' => [ + 'title' => 'Magazzini', + 'add-title' => 'Aggiungi Magazzino', + 'edit-title' => 'Modifica Magazzino', + 'save-btn-title' => 'Salva Magazzino', + 'general' => 'Generale', + 'code' => 'Codice', + 'name' => 'Nome', + 'description' => 'Descrizione', + 'source-is-active' => 'Magazzino è Attivo', + 'contact-info' => 'Informazioni Contatto', + 'contact_name' => 'Nome', + 'contact_email' => 'Email', + 'contact_number' => 'Numero Contatto', + 'contact_fax' => 'Fax', + 'address' => 'Indirizzo Magazzino', + 'country' => 'Paese', + 'state' => 'Provincia', + 'city' => 'Città', + 'street' => 'Indirizzo', + 'postcode' => 'CAP', + 'priority' => 'Priorità', + 'latitude' => 'Latitudine', + 'longitude' => 'Longitudine', + 'status' => 'Stato', + 'create-success' => 'Magazzino creato con successo.', + 'update-success' => 'Magazzino aggiornato con successo.', + 'delete-success' => 'Magazzino eliminato con successo.', + 'last-delete-error' => 'Almeno un Magazzino è necessario.', + ], + 'channels' => [ + 'title' => 'Canali', + 'add-title' => 'Aggiungi Canale', + 'edit-title' => 'Modifica Canale', + 'save-btn-title' => 'Save Canale', + 'general' => 'Generale', + 'code' => 'Codice', + 'name' => 'Nome', + 'description' => 'Descrizione', + 'hostname' => 'Hostname', + 'currencies-and-locales' => 'Valute e localizzazioni', + 'locales' => 'Localizzazioni', + 'default-locale' => 'Localizzazione predefinita', + 'currencies' => 'Valute', + 'base-currency' => 'Valuta Predefinita', + 'root-category' => 'Categoria principale', + 'inventory_sources' => 'Magazzini', + 'design' => 'Design', + 'theme' => 'Theme', + 'home_page_content' => 'Contenuto Home Page', + 'footer_content' => 'Contenuto Footer', + 'logo' => 'Logo', + 'favicon' => 'Favicon', + 'create-success' => 'Canale creato con successo.', + 'update-success' => 'Canale aggiornato con successo.', + 'delete-success' => 'Canale eliminato con successo.', + 'last-delete-error' => 'Almeno un Canale è necessario.', + 'seo' => 'Home page SEO', + 'seo-title' => 'Meta title', + 'seo-description' => 'Meta description', + 'seo-keywords' => 'Meta keywords', + + ], + + 'sliders' => [ + 'title' => 'Sliders', + 'name' => 'Nome', + 'add-title' => 'Crea Slider', + 'edit-title' => 'Modifica Slider', + 'save-btn-title' => 'Salva Slider', + 'general' => 'Generale', + 'image' => 'Immagine', + 'content' => 'Contenuto', + 'channels' => 'Canale', + 'created-success' => 'Slider creato con successo', + 'created-fault' => 'Errore nella creazione dello slider', + 'update-success' => 'Slider aggiornato con successo', + 'update-fail' => 'Non è stato possibile aggiornare lo Slider', + 'delete-success' => 'Non è stato possibile eliminare l\'ultimo slider', + 'delete-fail' => 'Slider eliminato con successo' + ], + + 'tax-categories' => [ + 'title' => 'Categorie IVA', + 'add-title' => 'Crea Categoria IVA', + 'edit-title' => 'Modifica Categoria IVA', + 'save-btn-title' => 'Salva Categoria IVA', + 'general' => 'Categoria IVA', + 'select-channel' => 'Seleziona Canale', + 'name' => 'Nome', + 'code' => 'Codice', + 'description' => 'Descrizione', + 'select-taxrates' => 'Seleziona Aliquote IVA', + 'edit' => [ + 'title' => 'Modifica Categoria IVA', + 'edit-button-title' => 'Modifica Categoria IVA' + ], + 'create-success' => 'Nuova Categoria IVA creata', + 'create-error' => 'Errore, nella creazione della Categoria IVA', + 'update-success' => 'Categoria IVA aggiornata con successo', + 'update-error' => 'Errore durante l\'aggiornamento della Categoria IVA', + 'atleast-one' => 'Non èstato possibile eliminare l\'ultima Categoria IVA', + 'delete' => 'Categoria IVA eliminata con successo' + ], + + 'tax-rates' => [ + 'title' => 'Aliquote IVA', + 'add-title' => 'Crea Aliquota IVA', + 'edit-title' => 'Modifica Aliquota IVA', + 'save-btn-title' => 'Salva Aliquota IVA', + 'general' => 'Aliquota IVA', + 'identifier' => 'Identificatore', + 'is_zip' => 'Abilita Zip Range', + 'zip_from' => 'Zip Da', + 'zip_to' => 'Zip a', + 'state' => 'Provincia/Stato', + 'select-state' => 'Seleziona una regione, stato o provincia.', + 'country' => 'Paese', + 'tax_rate' => 'Aliquota', + 'edit' => [ + 'title' => 'Modifica Aliquota', + 'edit-button-title' => 'Modifica Aliquota' + ], + 'zip_code' => 'Codice CAP', + 'is_zip' => 'Abilita Range CAP', + 'create-success' => 'Aliquota creata con successo', + 'create-error' => 'Non è stato possibile creare l\'Aliquota IVA', + 'update-success' => 'Aliquota aggiornata con successo', + 'update-error' => 'Errore! Non è stato possibile l\'Aliquota IVA', + 'delete' => 'Aliquota IVA eliminata con successo', + 'atleast-one' => 'Non posso eliminare l\'ultimo tasso IVA' + ], + 'development' => [ + 'title' => 'Sviluppo', + ] + ], + + 'customers' => [ + 'groups' =>[ + 'add-title' => 'Aggiungi Gruppo', + 'edit-title' => 'Modifica Gruppo', + 'save-btn-title' => 'Salva Gruppo', + 'title' => 'Gruppi', + 'save-btn-title' => 'Salva Gruppo', + 'code' => 'Codice', + 'name' => 'Nome', + 'is_user_defined' => 'Utente Definito', + 'yes' => 'Sì' + ], + + 'addresses' => [ + 'title' => 'Elenco Indirizzi :customer_name', + 'vat_id' => 'Partita IVA / Codice Fiscale', + 'create-title' => 'Crea Indirizzo Cliente', + 'edit-title' => 'Aggiorna Indirizzo Cliente', + 'title-orders' => 'Elenco Ordini :customer_name', + 'address-list' => 'Ellenco Indirizzi', + 'order-list' => 'Elenco Ordini', + 'address-id' => 'ID Indirizzo', + 'address-1' => 'Indirizzo 1', + 'city' => 'Città', + 'state-name' => 'Provincia', + 'country-name' => 'Paese', + 'postcode' => 'CAP', + 'default-address' => 'Indirizzo Principale', + 'yes' => 'Sì', + 'not-approved' => 'Non Approvato', + 'no' => 'No', + 'dash' => '-', + 'delete' => 'Elimina', + 'create-btn-title' => 'Aggiungi Indirizzo', + 'save-btn-title' => 'Salva Indirizzo', + 'general' => 'Generale', + 'success-create' => 'Success: Indirizzo cliente creato con successo.', + 'success-update' => 'Success: Indirizzo cliente aggiornato con successo.', + 'success-delete' => 'Success: Indirizzo cliente eliminato con successo.', + 'success-mass-delete' => 'Success: indirizzi selezionati eliminati con successo.', + 'error-create' => 'Error: Indirizzo cliente non creato.', + ], + + 'note' => [ + 'title' => 'Aggiungi Nota', + 'save-note' => 'Salva Nota', + 'enter-note' => 'Inserisci Nota', + 'help-title' => 'Aggiungi Note su questo Cliente' + ], + + 'customers' => [ + 'add-title' => 'Aggiungi Cliente', + 'edit-title' => 'Modifica Cliente', + 'title' => 'Clienti', + 'first_name' => 'Nome', + 'last_name' => 'Cognome', + 'gender' => 'Sesso', + 'email' => 'Email', + 'date_of_birth' => 'Data di Nascita', + 'phone' => 'Telefono', + 'customer_group' => 'Gruppo Clienti', + 'save-btn-title' => 'Salva Cliente', + 'channel_name' => 'Nome Canale', + 'state' => 'Provincia', + 'select-state' => 'Seleziiona una Regione, Stato o provincia.', + 'country' => 'Paese', + 'other' => 'Altro', + 'male' => 'Maschio', + 'female' => 'Femmina', + 'phone' => 'Telefono', + 'group-default' => 'Non è possibile eliminare il gruppo predefinito.', + 'edit-help-title' => 'Modifica Cliente', + 'delete-help-title' => 'Elimina Cliente', + 'addresses' => 'Indirizzi', + 'mass-destroy-success' => 'Clienti eliminati con successo', + 'mass-update-success' => 'Clienti aggiornati con successo', + 'status' => 'Stato', + 'active' => 'Attivo', + 'inactive' => 'Non attivo', + 'in-active' => 'Non attivo' + ], + + 'reviews' => [ + 'title' => 'Recensioni', + 'edit-title' => 'Modifica Recensione', + 'rating' => 'Rating', + 'status' => 'Stato', + 'comment' => 'Commento', + 'pending' => 'In attesa', + 'approved' => 'Approva', + 'disapproved' => 'Rifiuta' + ], + + 'subscribers' => [ + 'title' => 'Iscritti a Newsletter', + 'title-edit' => 'Modifica iscritto a Newsletter', + 'email' => 'Email', + 'is_subscribed' => 'Iscritto', + 'edit-btn-title' => 'Aggiorna iscritto', + 'update-success' => 'Iscritto aggiornato con successo', + 'update-failed' => 'Errore! Non puoi disiscrivere l\'utente', + 'delete' => 'Iscritto eliminato correttamente', + 'delete-failed' => 'Errore! L\'iscritto non può essere eliminato' + ] + ], + + 'promotions' => [ + 'cart-rules' => [ + 'title' => 'Regole Carrello', + 'add-title' => 'Aggiungi Regola Carrello', + 'edit-title' => 'Modifica Regola Carrello', + 'save-btn-title' => 'Salva Regola Carrello', + 'rule-information' => 'Infrmazioni sulla Regola', + 'name' => 'Nome', + 'description' => 'Descrizione', + 'status' => 'Stato', + 'is-active' => 'La Regola del Carrello è Attiva', + 'channels' => 'Canali', + 'customer-groups' => 'Gruppi Clienti', + 'coupon-type' => 'Tipo Coupon', + 'no-coupon' => 'No Coupon', + 'specific-coupon' => 'Coupon Specifico', + 'auto-generate-coupon' => 'Auto Genera Coupon', + 'no' => 'No', + 'yes' => 'Sì', + 'coupon-code' => 'Codice Coupon', + 'uses-per-coupon' => 'Usi per Coupon', + 'uses-per-customer' => 'Usi per Cliente', + 'uses-per-customer-control-info' => 'Sarà utilizzato solo per clienti registrati e autenticati.', + 'from' => 'Da', + 'to' => 'A', + 'priority' => 'Priorità', + 'conditions' => 'Condizioni', + 'condition-type' => 'Tipo Condizione', + 'all-conditions-true' => 'Tutte le Condizioni Sono Vere', + 'any-condition-true' => 'Almeno una Condizione è Vera', + 'add-condition' => 'Aggiungi Condizione', + 'choose-condition-to-add' => 'Scegli una condizione da aggiungere', + 'cart-attribute' => 'Attributi Carrello', + 'subtotal' => 'Subtotale', + 'total-items-qty' => 'Totale articoli Qtà', + 'total-weight' => 'Totale Peso', + 'payment-method' => 'Metodo di Pagamento', + 'shipping-method' => 'Metodo di Spedizione', + 'shipping-postcode' => 'CAP di Spedizione', + 'shipping-state' => 'Provincia di Spedizione', + 'shipping-country' => 'Paese di Spedizione', + 'cart-item-attribute' => 'Attributo Articolo Carrello', + 'price-in-cart' => 'Prezzo nel Carrello', + 'qty-in-cart' => 'Qtà nel Carrello', + 'product-attribute' => 'Attributo Prodotto', + 'attribute-name-children-only' => ':attribute_name (Solo Figlio)', + 'attribute-name-parent-only' => ':attribute_name (Solo Padre)', + 'is-equal-to' => 'È uguale a', + 'is-not-equal-to' => 'Non è uguale a', + 'equals-or-greater-than' => 'Uguale o maggiore di', + 'equals-or-less-than' => 'Uguale o minore di', + 'greater-than' => 'Maggiore di', + 'less-than' => 'Minore di', + 'contain' => 'Contengono', + 'contains' => 'Contiene', + 'does-not-contain' => 'Non contiene', + 'actions' => 'Azioni', + 'action-type' => 'Tipo Azione', + 'percentage-product-price' => 'Percentuale sul Prezzo del Prodotto', + 'fixed-amount' => 'Ammontare fisso', + 'fixed-amount-whole-cart' => 'Ammontare fisso per intero carrello', + 'buy-x-get-y-free' => 'Compra X e ottieni Y gratis', + 'discount-amount' => 'Ammontare Sconto', + 'discount-quantity' => 'Massima quantità scontabile', + 'discount-step' => 'Compra quantità X', + 'free-shipping' => 'Spedizione gratuita', + 'apply-to-shipping' => 'Applica a spedizione', + 'coupon-codes' => 'Codici Coupon', + 'coupon-qty' => 'Qtà Coupon', + 'code-length' => 'Lunghezza Codice', + 'code-format' => 'Formato Codice', + 'alphanumeric' => 'Alfanumerico', + 'alphabetical' => 'Alfabetico', + 'numeric' => 'Numerico', + 'code-prefix' => 'Prefisso Codice', + 'code-suffix' => 'Suffisso Codice', + 'generate' => 'Genera', + 'cart-rule-not-defind-error' => 'La regola del carrello non è stata definitaaCart rule is not defined', + 'mass-delete-success' => 'Tutti i coupon selezinati sono stati eliminati con successo.', + 'end-other-rules' => 'Fine altre regole', + 'children-categories' => 'Categorie (Children Only)', + 'parent-categories' => 'Categorie (Parent Only)', + 'categories' => 'Categorie', + 'attribute_family' => 'Famiglia Attributo' + ], + + 'catalog-rules' => [ + 'title' => 'Regole Catalogo', + 'add-title' => 'Aggiungi Regola Catalogo', + 'edit-title' => 'Modifica Regola Catalogo', + 'save-btn-title' => 'Salva Regola Catalogo', + 'rule-information' => 'Regola Information', + 'name' => 'Nome', + 'description' => 'Descrizione', + 'status' => 'Stato', + 'is-active' => 'Regola del Catalogo è Attiva', + 'channels' => 'Canali', + 'customer-groups' => 'Gruppi di Clienti', + 'no' => 'No', + 'yes' => 'S+', + 'from' => 'Da', + 'to' => 'A', + 'priority' => 'Priorità', + 'conditions' => 'Condizioni', + 'condition-type' => 'Tipo Condizione', + 'all-conditions-true' => 'Tutte le condizioni sono Vere', + 'any-condition-true' => 'Almeno una condizione è Vera', + 'add-condition' => 'Aggiungi Condizione', + 'choose-condition-to-add' => 'Scegli una Condizione da aggiungere', + 'product-attribute' => 'Attributo Prodotto', + 'attribute-name-children-only' => ':attribute_name (Solo Figli)', + 'attribute-name-parent-only' => ':attribute_name (Solo Padre)', + 'is-equal-to' => 'È uguale a', + 'is-not-equal-to' => 'È non uguale a', + 'equals-or-greater-than' => 'Uguale o maggiore di', + 'equals-or-less-than' => 'Uguale o minore di', + 'greater-than' => 'Maggiore di', + 'less-than' => 'Minore di', + 'contain' => 'Coniene', + 'contains' => 'Contengono', + 'does-not-contain' => 'Non contiene', + 'actions' => 'Azioni', + 'action-type' => 'Tipo Azione', + 'percentage-product-price' => 'Percentuale su Prezzo Prodotto', + 'fixed-amount' => 'Ammontare fisso', + 'fixed-amount-whole-cart' => 'Ammontare fisso sull\'intero catalogo', + 'buy-x-get-y-free' => 'Compra X Ottieni Y Gratis', + 'discount-amount' => 'Ammontare Sconto', + 'mass-delete-success' => 'Tutti gli indici selezionati dei coupon sono stati eliminati con successo.', + 'end-other-rules' => 'Fine altre regole', + 'categories' => 'Categorie', + 'attribute_family' => 'Famiglia Attributi' + ] + ], + + 'error' => [ + 'go-to-home' => 'TORNA A HOME', + 'in-maitainace' => 'In Manutezione', + 'right-back' => 'Torno subito', + + '404' => [ + 'page-title' => '404 Pagina non trovata', + 'name' => '404', + 'title' => 'Pagina non trovata', + 'message' => 'La Pagina che stai cercando non esiste o è stata spostata. Naviga utilizzando il menu.' + ], + '403' => [ + 'page-title' => '403 accesso negato', + 'name' => '403', + 'title' => 'Accesso negato', + 'message' => 'Non hai i permessi per accedere a questa pagina' + ], + '500' => [ + 'page-title' => '500 Errore interno del server', + 'name' => '500', + 'title' => 'Errore interno del server', + 'message' => 'Il Server ha incontrato un errore interno.' + ], + '401' => [ + 'page-title' => '401 Errore non autorizzato', + 'name' => '401', + 'title' => 'Errore non autorizzato', + 'message' => 'La richiesta non è stata applicata perchè manca di una valida autenticazione per accedere alla risorsa.' + ], + ], + + 'export' => [ + 'export' => 'Esporta + 'import' => 'Importa, + 'format' => 'Seleziona formato', + 'download' => 'Download', + 'upload' => 'Upload', + 'csv' => 'CSV', + 'xls' => 'XLS', + 'file' => 'File', + 'upload-error' => 'Il file deve essere di tipo: xls, xlsx, csv.', + 'duplicate-error' => 'L\'Identificativo deve essere unico, identificativi duplicati :identifier nella riga :position.', + 'enough-row-error' => 'Il file non ha abbastanza righe', + 'allowed-type' => 'Tipo consentito:', + 'file-type' => 'csv, xls, xlsx.', + 'no-records' => 'Niente da esportare', + 'illegal-format' => 'Errore! Questo tipo di formato non è supportato o è in un formato illegale' + ], + + 'cms' => [ + 'pages' => [ + 'general' => 'Generale', + 'seo' => 'SEO', + 'pages' => 'Pagine', + 'title' => 'Pagine', + 'add-title' => 'Aggiungi Pagina', + 'content' => 'Contenuto', + 'url-key' => 'URL Key', + 'channel' => 'Canali', + 'locale' => 'Localizzazioni', + 'create-btn-title' => 'Salva Pagina', + 'edit-title' => 'Modifica Pagina', + 'edit-btn-title' => 'Salva Pagina', + 'create-success' => 'Pagina creata con successo', + 'create-partial' => 'Alcune delle pagine richieste esistono già', + 'create-failure' => 'Tutte le pagine richieste esistono già', + 'update-success' => 'Pagina aggiornata con successo', + 'update-failure' => 'Non è stato possibile aggiornare la Pagina', + 'page-title' => 'Titolo Pagina', + 'layout' => 'Layout', + 'meta_keywords' => 'Meta Keywords', + 'meta_description' => 'Meta Description', + 'meta_title' => 'Meta Title', + 'delete-success' => 'Pagina CMS eliminata con successo', + 'delete-failure' => 'La Pagina CMS non può essere eliminata', + 'preview' => 'Anteprima', + 'one-col' => '
Ci piace personalizzare software e risolvere problemi del mondo reale. Siamo fortemente to our goals. We invest our resources to create world class easy to use softwares and applications for the enterprise business with the top notch, on the edge technology expertise.
', + 'slider-path' => 'Percorso Slider', + 'category-logo' => 'Logo Categoria', + 'product-policy' => 'Policy Prodotto', + 'featured-product' => 'Prodotti in evidenza', + 'new-products' => 'Nuovi Prodotti', + 'update-meta-data' => 'Aggiorna Meta Data', + 'product-view-image' => 'Immagine Vista Prodotto', + 'advertisement-two' => 'Advertisement Two Images', + 'advertisement-one' => 'Advertisement One Images', + 'footer-middle-content' => 'Contenuto Footer Centrale', + 'advertisement-four' => 'Advertisement Four Images', + 'advertisement-three' => 'Advertisement Three Images', + 'images' => 'Immmagini', + 'general' => 'Generale', + 'add-image-btn-title' => 'Aggiungi Immagine' + ], + 'category' => [ + 'save-btn-title' => 'Salva Menu', + 'title' => 'Elenco Menu Categorie', + 'add-title' => 'Aggiungi Menu Contenuto', + 'edit-title' => 'Modifica Menu Contenuto', + 'btn-add-category' => 'Aggiungi Contenuto Categoria', + 'datagrid' => [ + 'category-id' => 'Id Categoria', + 'category-name' => 'Nome Categoria', + 'category-icon' => 'Icona Categoria', + 'category-status' => 'Stato', + ], + 'tab' => [ + 'general' => 'Generale', + ], + 'status' => 'Status', + 'active' => 'Attivo', + 'inactive' => 'Non Attivo', + 'select' => '-- Seleziona --', + 'icon-class' => 'Classe Icona', + 'select-category' => 'Scegli Categoria', + 'tooltip-content' => 'Contenuto Tooltip', + 'mass-delete-success' => 'Categorie a menu eliminate con successo.', + ], + 'general' => [ + 'locale_logo' => 'Logo Lingua', + ], + ], + + 'home' => [ + 'view-all' => 'Mostra tutto', + 'add-to-cart' => 'Aggiungi al Carrello', + 'hot-categories' => 'Categorie Hot', + 'payment-methods' => 'Metodi Pagamenti', + 'customer-reviews' => 'Recensioni Clienti', + 'shipping-methods' => 'Metodi di Spedizione', + 'popular-categories' => 'Categorie Popolari', + ], + + 'header' => [ + 'cart' => 'Carrello', + 'cart' => 'Carrello', + 'guest' => 'Guest', + 'logout' => 'Logout', + 'title' => 'Account', + 'account' => 'Account', + 'profile' => 'Profilo', + 'wishlist' => 'Wishlist', + 'all-categories' => 'Tutte le Categorie', + 'search-text' => 'Cerca prodotti qui', + 'welcome-message' => 'Benvenuto, :customer_name', + 'dropdown-text' => 'Gestione Carrello, Ordini e Wishlist', + ], + + 'menu-navbar' => [ + 'text-more' => 'More', + 'text-category' => 'Acquista per Categoria', + ], + + 'minicart' => [ + 'cart' => 'Carrello', + 'view-cart' => 'Vai al Carrello', + ], + + 'checkout' => [ + 'qty' => 'Qtà', + 'checkout' => 'Cassa', + 'cart' => [ + 'view-cart' => 'Vai al Carrello', + 'cart-summary' => 'Sommario Carrello', + ], + 'qty' => 'Qtà', + 'items' => 'Articoli', + 'subtotal' => 'Subtotale', + 'sub-total' => 'Sub Totale', + 'proceed' => 'Procedi alla cassa', + ], + + 'customer' => [ + + 'compare' => [ + 'text' => 'Compara', + 'compare_similar_items' => 'Compara articoli simili', + 'added' => 'Articolo aggiunto alla lista di comparazione', + 'already_added' => 'Articolo già aggiunto alla lista di comparazione', + 'removed' => 'Articolo rimosso dalla lista di comparazione', + 'empty-text' => "Non hai articoli nella tua lista di comparazione", + ], + 'login-form' => [ + 'sign-up' => 'Registrati', + 'new-customer' => 'Nuovo Cliente', + 'customer-login' => 'Login Cliente', + 'registered-user' => 'Utente Registrato', + 'your-email-address' => 'Il tuo indirizzo email', + 'form-login-text' => 'Se hai un account, effettua login con la tua email.', + ], + 'signup-form' => [ + 'login' => 'Login', + 'become-user' => 'Diventa Utente', + 'user-registration' => 'Registrazione Utente', + 'form-sginup-text' => 'Se sei nuovo nel nostro store, siamo lieti di averti come nuovo amico.', + ], + 'forget-password' => [ + 'login' => 'Login', + 'forgot-password' => 'Password dimenticata', + 'recover-password' => 'Recupera Password', + 'recover-password-text' => 'Se hai dimenticato la password, recuperala inserendo il tuo indirizzo email.', + ] + ], + + 'error' => [ + 'go-to-home' => 'Vai alla home', + 'page-lost-short' => 'Page lost content', + 'something-went-wrong' => 'Qualcosa è andato storto', + 'page-lost-description' => "La pagina che stavi cercando non è disponibile. Prova a cercare ancora o usa il tasto Torna Indietro qui sotto.", + ], + + 'products' => [ + 'text' => 'Prodotti', + 'details' => 'Dettagli', + 'reviews-title' => 'Recensioni', + 'reviewed' => 'Recensito', + 'review-by' => 'Recensione di', + 'quick-view' => 'Vista veloce', + 'not-available' => 'Non Disponibile', + 'submit-review' => 'Invia Recensione', + 'ratings' => 'Valutazioni :totalRatings', + 'reviews-count' => ':totalReviews Recensioni', + 'customer-rating' => 'Valutazione Cliente', + 'more-infomation' => 'Scopri di più', + 'view-all-reviews' => 'Mostra tutte le Recensioni', + 'write-your-review' => 'Scrivi la tua Recensione', + 'short-description' => 'Descrizioni Brevi', + 'recently-viewed' => 'Prodotti visti di recente', + 'be-first-review' => 'Sii il primo a scrivere una review', + ], + + 'shop' => [ + 'gender' => [ + 'male' => 'Maschio', + 'other' => 'Altro', + 'female' => 'Femmina', + ], + 'general' => [ + 'no' => 'No', + 'yes' => 'Sì', + 'view' => 'View', + 'filter' => 'Filtro', + 'orders' => 'Ordini', + 'update' => 'Aggiorna', + 'reviews' => 'Recensioni', + 'addresses' => 'Indirizzi', + 'top-brands' => 'Marchi top', + 'new-password' => 'Nuova password', + 'downloadables' => 'Prodotti Scaricabili', + 'confirm-new-password' => 'Conferma nuova password', + 'enter-current-password' => 'Inserisci la password attuale', + + 'alert' => [ + 'info' => 'Info', + 'error' => 'Errore', + 'success' => 'Successo', + 'warning' => 'Attenzione', + ], + ], + 'wishlist' => [ + 'add-wishlist-text' => 'Aggiungi prodotto a wishlist', + 'remove-wishlist-text' => 'Rimuovi prodotti da wishlist' + ] + ], + + 'responsive' => [ + 'header' => [ + 'done' => 'Fatto', + 'languages' => 'Lingue', + 'greeting' => 'Benvenuto, :customer !', + ] + ], +] + +?> \ No newline at end of file diff --git a/tests/functional/Admin/Catalog/ProductCest.php b/tests/functional/Admin/Catalog/ProductCest.php index 9d2d3461a..ef49cb1ce 100644 --- a/tests/functional/Admin/Catalog/ProductCest.php +++ b/tests/functional/Admin/Catalog/ProductCest.php @@ -1,6 +1,6 @@ wantTo('Instantiate a european faker factory to have the vat provider available'); - $faker = Faker\Factory::create('at_AT'); + $faker = \Faker\Factory::create('at_AT'); $formCssSelector = '#customer-address-form'; diff --git a/tests/functional/Shop/CartTaxesCest.php b/tests/functional/Shop/CartTaxesCest.php index af1c338a1..9474e2e3f 100644 --- a/tests/functional/Shop/CartTaxesCest.php +++ b/tests/functional/Shop/CartTaxesCest.php @@ -1,6 +1,6 @@ faker = Factory::create(); @@ -45,7 +45,7 @@ class DatabaseLogicCest ]); $parentCategoryName = $this->faker->word; - + $parentCategoryAttributes = [ 'parent_id' => $rootCategory->id, 'position' => 1, @@ -68,7 +68,7 @@ class DatabaseLogicCest $rootCategory->prependNode($parentCategory); $I->assertNotNull($parentCategory); - $categoryName = $this->faker->word; + $categoryName = $this->faker->word; $categoryAttributes = [ 'position' => 1, 'status' => 1, diff --git a/tests/trigger/Shop/TriggerCest.php b/tests/trigger/Shop/TriggerCest.php index 2be0f75d0..704a08fb6 100644 --- a/tests/trigger/Shop/TriggerCest.php +++ b/tests/trigger/Shop/TriggerCest.php @@ -1,6 +1,6 @@ sub_total = round($this->sub_total, self::CART_TOTAL_PRECISION); $this->tax_total = round($this->tax_total, self::CART_TOTAL_PRECISION); - $this->grand_total = round($this->sub_total + $this->tax_total - $this->discount_amount, self::CART_TOTAL_PRECISION); + $this->discount_amount = round($this->discount_amount, self::CART_TOTAL_PRECISION); + $this->grand_total = round($this->sub_total + $this->tax_total - $this->discount_amount, + self::CART_TOTAL_PRECISION); $this->base_sub_total = round($this->base_sub_total, self::CART_TOTAL_PRECISION); $this->base_tax_total = round($this->base_tax_total, self::CART_TOTAL_PRECISION); - $this->base_grand_total = round($this->base_sub_total + $this->base_tax_total - $this->base_discount_amount, self::CART_TOTAL_PRECISION); + $this->base_discount_amount = round($this->base_discount_amount, self::CART_TOTAL_PRECISION); + $this->base_grand_total = round($this->base_sub_total + $this->base_tax_total - $this->base_discount_amount, + self::CART_TOTAL_PRECISION); } public function toArray(): array @@ -579,6 +583,102 @@ class CartRuleCest } } + public function checkExampleCase(UnitTester $I) + { + config(['app.default_country' => 'DE']); + + $faker = Factory::create(); + + $customer = $I->have(Customer::class); + + auth()->guard('customer')->loginUsingId($customer->id); + Event::dispatch('customer.after.login', $customer['email']); + + $this->sessionToken = $faker->uuid; + session(['_token' => $this->sessionToken]); + + $tax = $I->have(TaxRate::class, [ + 'country' => 'DE', + 'tax_rate' => 19.0, + ]); + + $taxCategorie = $I->have(TaxCategory::class); + + $I->have(TaxMap::class, [ + 'tax_rate_id' => $tax->id, + 'tax_category_id' => $taxCategorie->id, + ]); + + $productConfig = [ + 'attributeValues' => [ + 'price' => 23.92, + 'tax_category_id' => $taxCategorie->id, + ], + ]; + $product = $I->haveProduct(Laravel5Helper::SIMPLE_PRODUCT, $productConfig); + + $ruleConfig = [ + 'action_type' => self::ACTION_TYPE_PERCENTAGE, + 'discount_amount' => 100, + 'conditions' => [ + [ + 'attribute' => 'product|sku', + 'value' => $product->sku, + 'operator' => '==', + 'attribute_type' => 'text', + ], + ], + ]; + $cartRule = $I->have(CartRule::class, $ruleConfig); + + DB::table('cart_rule_channels')->insert([ + 'cart_rule_id' => $cartRule->id, + 'channel_id' => core()->getCurrentChannel()->id, + ]); + + $guestCustomerGroup = $I->grabRecord('customer_groups', ['code' => 'guest']); + DB::table('cart_rule_customer_groups')->insert([ + 'cart_rule_id' => $cartRule->id, + 'customer_group_id' => $guestCustomerGroup['id'], + ]); + + $generalCustomerGroup = $I->grabRecord('customer_groups', ['code' => 'general']); + DB::table('cart_rule_customer_groups')->insert([ + 'cart_rule_id' => $cartRule->id, + 'customer_group_id' => $generalCustomerGroup['id'], + ]); + + $coupon = $I->have(CartRuleCoupon::class, [ + 'code' => 'AWESOME', + 'cart_rule_id' => $cartRule->id, + ]); + + + $data = [ + '_token' => session('_token'), + 'product_id' => $product->id, + 'quantity' => 1, + ]; + cart()->addProduct($product->id, $data); + cart()->setCouponCode('AWESOME')->collectTotals(); + + $cart = cart()->getCart(); + $cartItem = $cart->items()->first(); + + $I->assertEquals('AWESOME', $cartItem['coupon_code']); + $I->assertEquals(23.92, $cartItem['price']); + $I->assertEquals(19.0, $cartItem['tax_percent']); + $I->assertEquals(4.5448, $cartItem['tax_amount']); + $I->assertEquals(28.4648, $cartItem['discount_amount']); + + $I->assertEquals('AWESOME', $cart->coupon_code); + $I->assertEquals(23.92, $cart->sub_total); + $I->assertEquals(4.54, $cart->tax_total); + $I->assertEquals(28.46, $cart->discount_amount); + // 23.92 + 4.54 - 28.46 = 0.00 + $I->assertEquals(0.00, $cart->grand_total); + } + /** * @param \Codeception\Example $scenario * @param \Tests\Unit\Category\cartRuleWithCoupon $cartRuleWithCoupon @@ -586,19 +686,15 @@ class CartRuleCest * * @return array */ - private function getExpectedCartItems( - Example $scenario, - ?cartRuleWithCoupon $cartRuleWithCoupon, - int $cartID - ): array { + private function getExpectedCartItems(Example $scenario, ?cartRuleWithCoupon $cartRuleWithCoupon, int $cartID): array + { $cartItems = []; foreach ($scenario['productSequence'] as $key => $item) { $pos = $this->array_find( 'product_id', $this->products[$scenario['productSequence'][$key]]->id, - $cartItems, - true + $cartItems ); if ($pos === null) { @@ -793,11 +889,8 @@ class CartRuleCest * * @return \Tests\Unit\Category\expectedCart */ - private function getExpectedCart( - int $cartId, - array $expectedCartItems, - ?cartRuleWithCoupon $cartRuleWithCoupon - ): expectedCart { + private function getExpectedCart(int $cartId, array $expectedCartItems, ?cartRuleWithCoupon $cartRuleWithCoupon): expectedCart + { $cart = new expectedCart( $cartId, auth()->guard('customer')->user()->id diff --git a/tests/unit/Tax/Helpers/TaxCest.php b/tests/unit/Tax/Helpers/TaxCest.php index 4dd4c843a..dc775952a 100644 --- a/tests/unit/Tax/Helpers/TaxCest.php +++ b/tests/unit/Tax/Helpers/TaxCest.php @@ -17,7 +17,6 @@ class TaxCest private const PRODUCT2_QTY = 7; private const CART_TOTAL_PRECISION = 2; - private const TAX_AMOUNT_PRECISION = 2; public function _before(UnitTester $I) { @@ -73,16 +72,17 @@ class TaxCest 'quantity' => self::PRODUCT2_QTY, ]); + // rounded by precision of 2 because this are sums of corresponding tax categories $expectedTaxAmount1 = round( round(self::PRODUCT1_QTY * $product1->price, self::CART_TOTAL_PRECISION) * $tax1->tax_rate / 100, - self::TAX_AMOUNT_PRECISION + self::CART_TOTAL_PRECISION ); $expectedTaxAmount2 = round( round(self::PRODUCT2_QTY * $product2->price, self::CART_TOTAL_PRECISION) * $tax2->tax_rate / 100, - self::TAX_AMOUNT_PRECISION + self::CART_TOTAL_PRECISION ); $this->scenario = [ @@ -92,7 +92,7 @@ class TaxCest (string)round((float)$tax2->tax_rate, 4) => $expectedTaxAmount2, ], 'expectedTaxTotal' => - round($expectedTaxAmount1 + $expectedTaxAmount2, self::TAX_AMOUNT_PRECISION), + round($expectedTaxAmount1 + $expectedTaxAmount2, self::CART_TOTAL_PRECISION), ]; }