mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for exchange rate
This commit is contained in:
parent
92036b74af
commit
9215f895c2
@ -135,6 +135,7 @@ class CreditTransformer extends EntityTransformer
|
||||
'custom_surcharge_tax4' => (bool) $credit->custom_surcharge_tax4,
|
||||
'line_items' => $credit->line_items ?: (array)[],
|
||||
'entity_type' => 'credit',
|
||||
'exchange_rate' => (float)$credit->exchange_rate,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -135,6 +135,7 @@ class InvoiceTransformer extends EntityTransformer
|
||||
'custom_surcharge2' => (float)$invoice->custom_surcharge2,
|
||||
'custom_surcharge3' => (float)$invoice->custom_surcharge3,
|
||||
'custom_surcharge4' => (float)$invoice->custom_surcharge4,
|
||||
'exchange_rate' => (float)$invoice->exchange_rate,
|
||||
'custom_surcharge_tax1' => (bool) $invoice->custom_surcharge_tax1,
|
||||
'custom_surcharge_tax2' => (bool) $invoice->custom_surcharge_tax2,
|
||||
'custom_surcharge_tax3' => (bool) $invoice->custom_surcharge_tax3,
|
||||
|
@ -134,7 +134,7 @@ class QuoteTransformer extends EntityTransformer
|
||||
'custom_surcharge_taxes' => (bool) $quote->custom_surcharge_taxes,
|
||||
'line_items' => $quote->line_items ?: (array)[],
|
||||
'entity_type' => 'quote',
|
||||
|
||||
'exchange_rate' => (float)$quote->exchange_rate,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -22,18 +22,6 @@ class AddIsPublicToDocumentsTable extends Migration
|
||||
$table->decimal('amount', 16, 4);
|
||||
});
|
||||
|
||||
Schema::table('invoices', function (Blueprint $table) {
|
||||
$table->decimal('exchange_rate', 16, 4);
|
||||
});
|
||||
|
||||
Schema::table('quotes', function (Blueprint $table) {
|
||||
$table->decimal('exchange_rate', 16, 4);
|
||||
});
|
||||
|
||||
Schema::table('credits', function (Blueprint $table) {
|
||||
$table->decimal('exchange_rate', 16, 4);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user