mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 12:44:35 -04:00
Updates for payment currency
This commit is contained in:
parent
31e09de230
commit
ae8bdcd273
@ -107,6 +107,10 @@ class PaymentRepository extends BaseRepository {
|
|||||||
$payment->is_manual = true;
|
$payment->is_manual = true;
|
||||||
$payment->status_id = Payment::STATUS_COMPLETED;
|
$payment->status_id = Payment::STATUS_COMPLETED;
|
||||||
|
|
||||||
|
if (! $payment->currency_id) {
|
||||||
|
$payment->currency_id = $client->company->settings->currency_id;
|
||||||
|
}
|
||||||
|
|
||||||
$payment->save();
|
$payment->save();
|
||||||
|
|
||||||
/*Save documents*/
|
/*Save documents*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user