1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Bug fixes

This commit is contained in:
Hillel Coren 2018-07-08 15:08:02 +03:00
parent b172f645a8
commit b9b522bf6e
3 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,7 @@ The self-host zip includes all third party libraries whereas downloading the cod
## Third Party Modules ## Third Party Modules
* [Event Scheduler](https://github.com/cytech/Scheduler-InvoiceNinja) * [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. > Feel free to email us for help if you're working on a module, we're happy to provide developer support.

View File

@ -32,7 +32,7 @@ class ProductDatatable extends EntityDatatable
[ [
'cost', 'cost',
function ($model) { function ($model) {
return Utils::formatMoney($model->cost); return Utils::roundSignificant($model->cost);
}, },
], ],
[ [

View File

@ -8,6 +8,9 @@ class GatewayTypesSeeder extends Seeder
{ {
Eloquent::unguard(); Eloquent::unguard();
// fix for legacy data
DB::statement('UPDATE gateway_types SET alias = "custom1" WHERE id = 6');
$gateway_types = [ $gateway_types = [
['alias' => 'credit_card', 'name' => 'Credit Card'], ['alias' => 'credit_card', 'name' => 'Credit Card'],
['alias' => 'bank_transfer', 'name' => 'Bank Transfer'], ['alias' => 'bank_transfer', 'name' => 'Bank Transfer'],