mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updates for translations
This commit is contained in:
parent
7a96c25f8b
commit
999ead0fec
@ -44,6 +44,19 @@ class ClientService
|
|||||||
}, 2);
|
}, 2);
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
nlog("DB ERROR " . $throwable->getMessage());
|
nlog("DB ERROR " . $throwable->getMessage());
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
|
||||||
|
if (DB::connection(config('database.default'))->transactionLevel() > 0) {
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(\Exception $exception){
|
||||||
|
nlog("DB ERROR " . $exception->getMessage());
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
|
||||||
|
if (DB::connection(config('database.default'))->transactionLevel() > 0) {
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -60,6 +73,17 @@ class ClientService
|
|||||||
}, 2);
|
}, 2);
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
nlog("DB ERROR " . $throwable->getMessage());
|
nlog("DB ERROR " . $throwable->getMessage());
|
||||||
|
|
||||||
|
if (DB::connection(config('database.default'))->transactionLevel() > 0) {
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(\Exception $exception){
|
||||||
|
nlog("DB ERROR " . $exception->getMessage());
|
||||||
|
|
||||||
|
if (DB::connection(config('database.default'))->transactionLevel() > 0) {
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -67,11 +91,27 @@ class ClientService
|
|||||||
|
|
||||||
public function updatePaidToDate(float $amount)
|
public function updatePaidToDate(float $amount)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
DB::connection(config('database.default'))->transaction(function () use ($amount) {
|
DB::connection(config('database.default'))->transaction(function () use ($amount) {
|
||||||
$this->client = Client::withTrashed()->where('id', $this->client->id)->lockForUpdate()->first();
|
$this->client = Client::withTrashed()->where('id', $this->client->id)->lockForUpdate()->first();
|
||||||
$this->client->paid_to_date += $amount;
|
$this->client->paid_to_date += $amount;
|
||||||
$this->client->saveQuietly();
|
$this->client->saveQuietly();
|
||||||
}, 2);
|
}, 2);
|
||||||
|
}
|
||||||
|
catch (\Throwable $throwable) {
|
||||||
|
nlog("DB ERROR " . $throwable->getMessage());
|
||||||
|
|
||||||
|
if (DB::connection(config('database.default'))->transactionLevel() > 0) {
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(\Exception $exception){
|
||||||
|
nlog("DB ERROR " . $exception->getMessage());
|
||||||
|
|
||||||
|
if (DB::connection(config('database.default'))->transactionLevel() > 0) {
|
||||||
|
DB::connection(config('database.default'))->rollBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -5179,6 +5179,7 @@ $LANG = array(
|
|||||||
'stock_quantity_number' => 'Stock :quantity',
|
'stock_quantity_number' => 'Stock :quantity',
|
||||||
'upcoming' => 'Upcoming',
|
'upcoming' => 'Upcoming',
|
||||||
'client_contact' => 'Client Contact',
|
'client_contact' => 'Client Contact',
|
||||||
|
'uncategorized' => 'Uncategorized',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user