From b9b522bf6ef8d8cb3e025d998c6b9899f8c30ea2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 8 Jul 2018 15:08:02 +0300 Subject: [PATCH] Bug fixes --- README.md | 1 + app/Ninja/Datatables/ProductDatatable.php | 2 +- database/seeds/GatewayTypesSeeder.php | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ffea74adbf2..b432daf1390d 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ The self-host zip includes all third party libraries whereas downloading the cod ## Third Party Modules * [Event Scheduler](https://github.com/cytech/Scheduler-InvoiceNinja) +* [Manufacturer Module](https://github.com/dicarlosystems/manufacturer-invoiceninja) > Feel free to email us for help if you're working on a module, we're happy to provide developer support. diff --git a/app/Ninja/Datatables/ProductDatatable.php b/app/Ninja/Datatables/ProductDatatable.php index 504c69e35cda..72bd137d30b8 100644 --- a/app/Ninja/Datatables/ProductDatatable.php +++ b/app/Ninja/Datatables/ProductDatatable.php @@ -32,7 +32,7 @@ class ProductDatatable extends EntityDatatable [ 'cost', function ($model) { - return Utils::formatMoney($model->cost); + return Utils::roundSignificant($model->cost); }, ], [ diff --git a/database/seeds/GatewayTypesSeeder.php b/database/seeds/GatewayTypesSeeder.php index 64c6c2172738..324f9acec3b8 100644 --- a/database/seeds/GatewayTypesSeeder.php +++ b/database/seeds/GatewayTypesSeeder.php @@ -8,6 +8,9 @@ class GatewayTypesSeeder extends Seeder { Eloquent::unguard(); + // fix for legacy data + DB::statement('UPDATE gateway_types SET alias = "custom1" WHERE id = 6'); + $gateway_types = [ ['alias' => 'credit_card', 'name' => 'Credit Card'], ['alias' => 'bank_transfer', 'name' => 'Bank Transfer'],