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'],