mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 02:54:36 -04:00
Updates for static analysis
This commit is contained in:
parent
e76b650a0b
commit
81bad287ca
@ -47,9 +47,9 @@ use Illuminate\Contracts\Translation\HasLocalePreference;
|
|||||||
* @property string|null $logo
|
* @property string|null $logo
|
||||||
* @property string|null $phone
|
* @property string|null $phone
|
||||||
* @property string|null $routing_id
|
* @property string|null $routing_id
|
||||||
* @property string $balance
|
* @property float $balance
|
||||||
* @property string $paid_to_date
|
* @property float $paid_to_date
|
||||||
* @property string $credit_balance
|
* @property float $credit_balance
|
||||||
* @property int|null $last_login
|
* @property int|null $last_login
|
||||||
* @property int|null $industry_id
|
* @property int|null $industry_id
|
||||||
* @property int|null $size_id
|
* @property int|null $size_id
|
||||||
|
@ -56,7 +56,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
* @property float $exchange_rate
|
* @property float $exchange_rate
|
||||||
* @property int $currency_id
|
* @property int $currency_id
|
||||||
* @property int|null $exchange_currency_id
|
* @property int|null $exchange_currency_id
|
||||||
* @property \App\Models\Paymentable $paymentables
|
* @property \App\Models\Paymentable $paymentable
|
||||||
* @property object|null $meta
|
* @property object|null $meta
|
||||||
* @property string|null $custom_value1
|
* @property string|null $custom_value1
|
||||||
* @property string|null $custom_value2
|
* @property string|null $custom_value2
|
||||||
|
@ -171,6 +171,7 @@ trait Refundable
|
|||||||
$credit_note->save();
|
$credit_note->save();
|
||||||
|
|
||||||
if ($data['gateway_refund'] !== false && $total_refund > 0) {
|
if ($data['gateway_refund'] !== false && $total_refund > 0) {
|
||||||
|
/** @var \App\Models\CompanyGateway $gateway */
|
||||||
$gateway = CompanyGateway::find($this->company_gateway_id);
|
$gateway = CompanyGateway::find($this->company_gateway_id);
|
||||||
|
|
||||||
if ($gateway) {
|
if ($gateway) {
|
||||||
@ -190,8 +191,7 @@ trait Refundable
|
|||||||
|
|
||||||
$client_balance_adjustment = $this->adjustInvoices($data);
|
$client_balance_adjustment = $this->adjustInvoices($data);
|
||||||
|
|
||||||
// $credit_note->ledger()->updateCreditBalance($client_balance_adjustment, $ledger_string);
|
/** @var \App\Models\Client $this->client */
|
||||||
|
|
||||||
$this->client->paid_to_date -= $data['amount'];
|
$this->client->paid_to_date -= $data['amount'];
|
||||||
$this->client->save();
|
$this->client->save();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user