mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Compare commits
211 Commits
2.0.2
...
Geoffry304
| Author | SHA1 | Date | |
|---|---|---|---|
| a0a46d306e | |||
| 8f0af3dcd6 | |||
| 53860378b9 | |||
| e8e44c5dc8 | |||
| ac33164342 | |||
| 5c7c0d84ea | |||
| 7ca725ac37 | |||
| 510a4b3dbb | |||
| 25114009e3 | |||
| 79c16d74ce | |||
| 742e1e445a | |||
| 386f96d60e | |||
| 82d85af672 | |||
| 4d1b267688 | |||
| bc99ad63a6 | |||
| 4bb44f8c93 | |||
| c72265ed50 | |||
| b8958c9eb6 | |||
| e33e314cb7 | |||
| 84cebee9da | |||
| 34d3cf7ae8 | |||
| 93d0da836a | |||
| fd51276948 | |||
| d6274854ba | |||
| ea4bd1a31d | |||
| 286e047963 | |||
| be16f48f3d | |||
| ebea1e0813 | |||
| cc8d08f829 | |||
| aacffc22eb | |||
| d71ca4ffb9 | |||
| 186004f7f8 | |||
| c2eb22d666 | |||
| af189b15b6 | |||
| 1c19be85c3 | |||
| 4bb4362d23 | |||
| f6f66b3ae6 | |||
| b4ccecbcf1 | |||
| 92f1f196bb | |||
| ee14070a7b | |||
| 8ce7e14a02 | |||
| 3401ca049e | |||
| 5dcc7b9efd | |||
| 06a538bb81 | |||
| 7ab0419f27 | |||
| a7275aaa42 | |||
| bc4e6a05ea | |||
| ca170f5a87 | |||
| 3baeb72892 | |||
| 22e7e96dfa | |||
| fcfd1ddb7a | |||
| daf8c9265b | |||
| 406d098172 | |||
| 824d2e3e8d | |||
| 3cd975dbbd | |||
| 8e50c36a71 | |||
| b499741ab4 | |||
| 84f8d281a7 | |||
| b409cdb913 | |||
| fb49332de9 | |||
| 13e56105e3 | |||
| f68e86e4cf | |||
| da996c1f33 | |||
| 0990ce4678 | |||
| bb6fb2f49d | |||
| 400296575e | |||
| d58c790b1f | |||
| c674c2ab9e | |||
| d79692cf3b | |||
| 353c2479f1 | |||
| 0176a854b8 | |||
| 00548ea908 | |||
| 09e335a8a7 | |||
| 53e2ed253f | |||
| 06b035d9ac | |||
| 5c88cbcc42 | |||
| d9b175a676 | |||
| f5b9bc95c6 | |||
| 586dcdea0d | |||
| 50957fc179 | |||
| c725e4744b | |||
| 7479ce237e | |||
| 84420441c0 | |||
| ac96721e87 | |||
| db4c7f5e32 | |||
| 87dc78eea0 | |||
| e9c2898056 | |||
| b9c4570137 | |||
| 8e2525cc6c | |||
| 8862a93f23 | |||
| 82efd88920 | |||
| 0ef528d296 | |||
| 4c33a5d88c | |||
| d64d06181b | |||
| ef9cf2db22 | |||
| 96c295a003 | |||
| 22528f5b66 | |||
| 1cd9c72537 | |||
| 7253b43eb4 | |||
| 181964cf03 | |||
| 5914245ae4 | |||
| 1bf3d28d4e | |||
| dbcbd93ace | |||
| 1729c6a308 | |||
| 019493cbfa | |||
| 60540ba966 | |||
| 601ad419ec | |||
| 80e7bab891 | |||
| f5c8befbf0 | |||
| 09c984baa7 | |||
| 0d93260672 | |||
| 3e9e217f92 | |||
| 3cd8859c62 | |||
| 4493b4a419 | |||
| 79e3e70bd6 | |||
| 56a955befd | |||
| 496c28f80d | |||
| 7a59f3fe0c | |||
| 3d6875a532 | |||
| 15bf380f4f | |||
| 0b910db039 | |||
| 0e5e8f602f | |||
| d9db0f9401 | |||
| c0da7c7339 | |||
| 7e7599b4a7 | |||
| 99cd88e6c6 | |||
| 053a06229c | |||
| 1a6e8280a8 | |||
| 125e8be83c | |||
| 4d89ca2101 | |||
| e8aee3bb32 | |||
| d3c7ca75f0 | |||
| 694d5f56d5 | |||
| a48439785c | |||
| 7c9bd84f00 | |||
| bd5a93d81c | |||
| 858e10953b | |||
| 3617032735 | |||
| 75ddc51b1e | |||
| 1dfa36e396 | |||
| d9e9a5a540 | |||
| ea6e11c324 | |||
| f55dfe0b46 | |||
| 3eac3b8af5 | |||
| 2b2bd4351a | |||
| b9c32bbdc1 | |||
| bceffbf6a0 | |||
| 7c6a40374d | |||
| d04e142a3e | |||
| f11436736b | |||
| 9271ceba45 | |||
| c88eb24265 | |||
| 5eb0a04378 | |||
| d926073095 | |||
| a691969025 | |||
| 7df06fb005 | |||
| 45db850025 | |||
| 18a50315ba | |||
| bce1b4bb3e | |||
| ddd204105f | |||
| e030d4b9d0 | |||
| 302968225a | |||
| e59bf288ce | |||
| b1fcd90b62 | |||
| ddb0ff1b8a | |||
| ce99fa3d82 | |||
| e28c89085d | |||
| 34f7e33abc | |||
| 80be7a492d | |||
| 387cb4490d | |||
| 09829a559e | |||
| b06fc5f0b9 | |||
| 5f7401f622 | |||
| 4f6dae919b | |||
| 36be395579 | |||
| 79e77f9e16 | |||
| cbf0af2120 | |||
| 92f754e888 | |||
| a6896eaa01 | |||
| 01f3646869 | |||
| b2918e9dbb | |||
| 0a064ec5ba | |||
| 5f0b4b3496 | |||
| 17b59f0d19 | |||
| 283b910cc3 | |||
| 81739827c0 | |||
| 90edc3a85e | |||
| 655c2a7849 | |||
| ca833d174e | |||
| 33e8381fc4 | |||
| 9b5125d440 | |||
| 2899021804 | |||
| d8f6d03d1e | |||
| c474e98925 | |||
| 799d212d9b | |||
| 9424dc6c27 | |||
| fa15502ce7 | |||
| 1f4d3bf784 | |||
| 3692373cd2 | |||
| 0c71356f59 | |||
| e539bb501d | |||
| 2fcd169270 | |||
| 14d71fedb3 | |||
| 7fe9a4c2a2 | |||
| 7b697a477e | |||
| 146cf835b9 | |||
| ec87e72547 | |||
| bf2e8c9c99 | |||
| b6096aadfa | |||
| 1cbc41c3ce | |||
| 8bc5ea2d5e |
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@ -0,0 +1,10 @@
|
||||
.dockerignore
|
||||
.gitignore
|
||||
*.md
|
||||
.git/
|
||||
.idea/
|
||||
.DS_Store/
|
||||
docker-compose.*
|
||||
LICENSE
|
||||
nginx.conf
|
||||
yarn.lock
|
||||
@ -1,15 +1,15 @@
|
||||
APP_ENV=production
|
||||
APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0=
|
||||
APP_DEBUG=false
|
||||
APP_DEBUG=true
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://crater.test
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=crater
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=bytefury
|
||||
DB_USERNAME=crater
|
||||
DB_PASSWORD="crater"
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
|
||||
12
.eslintrc
12
.eslintrc
@ -2,9 +2,17 @@
|
||||
"root": true,
|
||||
"extends": [
|
||||
"plugin:vue/recommended",
|
||||
"standard"
|
||||
"eslint:recommended",
|
||||
"prettier/vue",
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"vue/max-attributes-per-line" : 3
|
||||
"vue/max-attributes-per-line": ["error", {
|
||||
"singleline": 10,
|
||||
"multiline": {
|
||||
"max": 1,
|
||||
"allowFirstLine": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Please complete the following information:**
|
||||
- Crater version:
|
||||
- PHP version:
|
||||
- Database type and version:
|
||||
|
||||
**Optional info**
|
||||
- OS: [e.g. Ubuntu]
|
||||
- Browser: [e.g. chrome, safari]
|
||||
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,3 +11,5 @@ Homestead.yaml
|
||||
.rnd
|
||||
/.expo
|
||||
/.vscode
|
||||
docker-compose.yml
|
||||
docker-compose.yaml
|
||||
|
||||
5
.prettierrc.json
Normal file
5
.prettierrc.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2
|
||||
}
|
||||
53
Dockerfile
Normal file
53
Dockerfile
Normal file
@ -0,0 +1,53 @@
|
||||
##### STAGE 1 #####
|
||||
|
||||
FROM composer as composer
|
||||
|
||||
# Copy composer files from project root into composer container's working dir
|
||||
COPY composer.* /app/
|
||||
|
||||
# Copy database directory for autoloader optimization
|
||||
COPY database /app/database
|
||||
|
||||
# Run composer to build dependencies in vendor folder
|
||||
RUN composer install --no-scripts --no-suggest --no-interaction --prefer-dist --optimize-autoloader
|
||||
|
||||
# Copy everything from project root into composer container's working dir
|
||||
COPY . /app
|
||||
|
||||
RUN composer dump-autoload --optimize --classmap-authoritative
|
||||
|
||||
##### STAGE 2 #####
|
||||
|
||||
FROM php:7.3.12-fpm-alpine
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
RUN apk add --no-cache libpng-dev libxml2-dev oniguruma-dev libzip-dev gnu-libiconv && \
|
||||
docker-php-ext-install bcmath ctype json gd mbstring pdo pdo_mysql tokenizer xml zip
|
||||
|
||||
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
|
||||
|
||||
# Set container's working dir
|
||||
WORKDIR /app
|
||||
|
||||
# Copy everything from project root into php container's working dir
|
||||
COPY . /app
|
||||
|
||||
# Copy vendor folder from composer container into php container
|
||||
COPY --from=composer /app/vendor /app/vendor
|
||||
|
||||
RUN touch database/database.sqlite && \
|
||||
cp .env.example .env && \
|
||||
php artisan config:cache && \
|
||||
php artisan passport:keys && \
|
||||
php artisan key:generate && \
|
||||
chown -R www-data:www-data . && \
|
||||
chmod -R 755 . && \
|
||||
chmod -R 775 storage/framework/ && \
|
||||
chmod -R 775 storage/logs/ && \
|
||||
chmod -R 775 bootstrap/cache/
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
CMD ["php-fpm", "--nodaemonize"]
|
||||
@ -7,8 +7,8 @@ use Crater\Country;
|
||||
|
||||
class Address extends Model
|
||||
{
|
||||
const BILLING_TYPE = 'BILLING';
|
||||
const SHIPPING_TYPE = 'SHIPPING';
|
||||
const BILLING_TYPE = 'billing';
|
||||
const SHIPPING_TYPE = 'shipping';
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
|
||||
51
app/Console/Commands/ResetApp.php
Normal file
51
app/Console/Commands/ResetApp.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
|
||||
class ResetApp extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'reset:app';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Clean database, database_created and public/storage folder';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
if ($this->confirm('Do you wish to continue? This will delete your tables')) {
|
||||
Artisan::call('migrate:reset --force');
|
||||
|
||||
\Storage::disk('local')->delete('database_created');
|
||||
|
||||
// $file = new Filesystem;
|
||||
// $file->cleanDirectory('public/storage');
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -12,7 +12,7 @@ class Kernel extends ConsoleKernel
|
||||
* @var array
|
||||
*/
|
||||
protected $commands = [
|
||||
|
||||
Commands\ResetApp::class
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@ -49,15 +49,20 @@ class Estimate extends Model
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'total' => 'float',
|
||||
'tax' => 'float',
|
||||
'sub_total' => 'float'
|
||||
'total' => 'integer',
|
||||
'tax' => 'integer',
|
||||
'sub_total' => 'integer',
|
||||
'discount' => 'float',
|
||||
'discount_val' => 'integer',
|
||||
];
|
||||
|
||||
public static function getNextEstimateNumber()
|
||||
public static function getNextEstimateNumber($value)
|
||||
{
|
||||
// Get the last created order
|
||||
$lastOrder = Estimate::orderBy('created_at', 'desc')->first();
|
||||
// Get the last created order
|
||||
$lastOrder = Estimate::where('estimate_number', 'LIKE', $value . '-%')
|
||||
->orderBy('created_at', 'desc')
|
||||
->first();
|
||||
|
||||
if (!$lastOrder) {
|
||||
// We get here if there is no order at all
|
||||
// If there is no number set it to 0, which will be 1 at the end.
|
||||
@ -99,10 +104,16 @@ class Estimate extends Model
|
||||
|
||||
public function getEstimateNumAttribute()
|
||||
{
|
||||
$position = $this->strposX($this->estimate_number, "-", 2) + 1;
|
||||
$position = $this->strposX($this->estimate_number, "-", 1) + 1;
|
||||
return substr($this->estimate_number, $position);
|
||||
}
|
||||
|
||||
public function getEstimatePrefixAttribute()
|
||||
{
|
||||
$prefix = explode("-",$this->estimate_number)[0];
|
||||
return $prefix;
|
||||
}
|
||||
|
||||
private function strposX($haystack, $needle, $number)
|
||||
{
|
||||
if ($number == '1') {
|
||||
|
||||
@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\MediaLibrary\HasMedia\HasMedia;
|
||||
use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
|
||||
use Crater\ExpenseCategory;
|
||||
use Crater\User;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
@ -16,6 +17,7 @@ class Expense extends Model implements HasMedia
|
||||
'expense_category_id',
|
||||
'amount',
|
||||
'company_id',
|
||||
'user_id',
|
||||
'expense_date',
|
||||
'notes',
|
||||
'attachment_receipt'
|
||||
@ -32,6 +34,11 @@ class Expense extends Model implements HasMedia
|
||||
return $this->belongsTo(ExpenseCategory::class, 'expense_category_id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function getFormattedExpenseDateAttribute($value)
|
||||
{
|
||||
$dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id);
|
||||
@ -81,6 +88,11 @@ class Expense extends Model implements HasMedia
|
||||
return $query->where('expenses.expense_category_id', $categoryId);
|
||||
}
|
||||
|
||||
public function scopeWhereUser($query, $user_id)
|
||||
{
|
||||
return $query->where('expenses.user_id', $user_id);
|
||||
}
|
||||
|
||||
public function scopeApplyFilters($query, array $filters)
|
||||
{
|
||||
$filters = collect($filters);
|
||||
@ -89,6 +101,10 @@ class Expense extends Model implements HasMedia
|
||||
$query->whereCategory($filters->get('expense_category_id'));
|
||||
}
|
||||
|
||||
if ($filters->get('user_id')) {
|
||||
$query->whereUser($filters->get('user_id'));
|
||||
}
|
||||
|
||||
if ($filters->get('from_date') && $filters->get('to_date')) {
|
||||
$start = Carbon::createFromFormat('d/m/Y', $filters->get('from_date'));
|
||||
$end = Carbon::createFromFormat('d/m/Y', $filters->get('to_date'));
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
@ -20,11 +21,22 @@ use Crater\CompanySetting;
|
||||
|
||||
class CompanyController extends Controller
|
||||
{
|
||||
/**
|
||||
* Retrive the Admin account.
|
||||
* @return \Crater\User
|
||||
*/
|
||||
public function getAdmin()
|
||||
{
|
||||
return User::find(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the Admin profile.
|
||||
* Includes name, email and (or) password
|
||||
*
|
||||
* @param \Crater\Http\Requests\ProfileRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function updateAdminProfile(ProfileRequest $request)
|
||||
{
|
||||
$verifyEmail = User::where('email', $request->email)->first();
|
||||
@ -54,6 +66,14 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get Admin Account alongside the country from the addresses table and
|
||||
* The company from companies table
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getAdminCompany()
|
||||
{
|
||||
$user = User::with(['addresses', 'addresses.country', 'company'])->find(1);
|
||||
@ -63,6 +83,13 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Update Admin Company Details
|
||||
* @param \Crater\Http\Requests\CompanyRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function updateAdminCompany(CompanyRequest $request)
|
||||
{
|
||||
$user = User::find(1);
|
||||
@ -85,23 +112,28 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve General App Settings
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getGeneralSettings(Request $request)
|
||||
{
|
||||
$date_formats = DateFormatter::get_list();
|
||||
|
||||
$time_zones = TimeZones::get_list();
|
||||
$fiscal_years = [
|
||||
['key' => 'january-december' , 'value' => '1-12'],
|
||||
['key' => 'february-january' , 'value' => '2-1'],
|
||||
['key' => 'march-february' , 'value' => '3-2'],
|
||||
['key' => 'april-march' , 'value' => '4-3'],
|
||||
['key' => 'may-april' , 'value' => '5-4'],
|
||||
['key' => 'june-may' , 'value' => '6-5'],
|
||||
['key' => 'july-june' , 'value' => '7-6'],
|
||||
['key' => 'august-july' , 'value' => '8-7'],
|
||||
['key' => 'september-august' , 'value' => '9-8'],
|
||||
['key' => 'january-december', 'value' => '1-12'],
|
||||
['key' => 'february-january', 'value' => '2-1'],
|
||||
['key' => 'march-february', 'value' => '3-2'],
|
||||
['key' => 'april-march', 'value' => '4-3'],
|
||||
['key' => 'may-april', 'value' => '5-4'],
|
||||
['key' => 'june-may', 'value' => '6-5'],
|
||||
['key' => 'july-june', 'value' => '7-6'],
|
||||
['key' => 'august-july', 'value' => '8-7'],
|
||||
['key' => 'september-august', 'value' => '9-8'],
|
||||
['key' => 'october-september', 'value' => '10-9'],
|
||||
['key' => 'november-october' , 'value' => '11-10'],
|
||||
['key' => 'november-october', 'value' => '11-10'],
|
||||
['key' => 'december-november', 'value' => '12-11'],
|
||||
];
|
||||
|
||||
@ -112,10 +144,17 @@ class CompanyController extends Controller
|
||||
$currency = CompanySetting::getSetting('currency', $request->header('company'));
|
||||
$fiscal_year = CompanySetting::getSetting('fiscal_year', $request->header('company'));
|
||||
|
||||
$languages = [
|
||||
["code"=>"en", "name" => "English"],
|
||||
["code"=>"fr", "name" => "French"],
|
||||
["code"=>"es", "name" => "Spanish"]
|
||||
$languages = [ // alphabetical order
|
||||
["code" => "pt_BR", "name" => "Brazilian Portuguese"],
|
||||
["code" => "en", "name" => "English"],
|
||||
["code" => "fr", "name" => "French"],
|
||||
["code" => "de", "name" => "German"],
|
||||
["code" => "it", "name" => "Italian"],
|
||||
["code" => "es", "name" => "Spanish"],
|
||||
["code" => "ar", "name" => "العربية"],
|
||||
["code" => "de", "name" => "German"],
|
||||
["code" => "pt_BR", "name" => "Brazilian Portuguese"],
|
||||
["code" => "nl", "name" => "Dutch"]
|
||||
];
|
||||
|
||||
return response()->json([
|
||||
@ -133,6 +172,13 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Update General App Settings
|
||||
* @param \Crater\Http\Requests\CompanySettingRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function updateGeneralSettings(CompanySettingRequest $request)
|
||||
{
|
||||
$sets = [
|
||||
@ -153,6 +199,63 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function getCustomizeSetting(Request $request)
|
||||
{
|
||||
$invoice_prefix = CompanySetting::getSetting('invoice_prefix', $request->header('company'));
|
||||
$invoice_auto_generate = CompanySetting::getSetting('invoice_auto_generate', $request->header('company'));
|
||||
|
||||
$estimate_prefix = CompanySetting::getSetting('estimate_prefix', $request->header('company'));
|
||||
$estimate_auto_generate = CompanySetting::getSetting('estimate_auto_generate', $request->header('company'));
|
||||
|
||||
$payment_prefix = CompanySetting::getSetting('payment_prefix', $request->header('company'));
|
||||
$payment_auto_generate = CompanySetting::getSetting('payment_auto_generate', $request->header('company'));
|
||||
|
||||
return response()->json([
|
||||
'invoice_prefix' => $invoice_prefix,
|
||||
'invoice_auto_generate' => $invoice_auto_generate,
|
||||
'estimate_prefix' => $estimate_prefix,
|
||||
'estimate_auto_generate' => $estimate_auto_generate,
|
||||
'payment_prefix' => $payment_prefix,
|
||||
'payment_auto_generate' => $payment_auto_generate,
|
||||
]);
|
||||
}
|
||||
|
||||
public function updateCustomizeSetting(Request $request)
|
||||
{
|
||||
$sets = [];
|
||||
|
||||
if ($request->type == "PAYMENTS") {
|
||||
$sets = [
|
||||
'payment_prefix'
|
||||
];
|
||||
}
|
||||
|
||||
if ($request->type == "INVOICES") {
|
||||
$sets = [
|
||||
'invoice_prefix',
|
||||
];
|
||||
}
|
||||
|
||||
if ($request->type == "ESTIMATES") {
|
||||
$sets = [
|
||||
'estimate_prefix',
|
||||
];
|
||||
}
|
||||
|
||||
foreach ($sets as $key) {
|
||||
CompanySetting::setSetting($key, $request->$key, $request->header('company'));
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'success' => true
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a specific Company Setting
|
||||
* @param \Crater\Http\Requests\SettingRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function updateSetting(SettingRequest $request)
|
||||
{
|
||||
CompanySetting::setSetting($request->key, $request->value, $request->header('company'));
|
||||
@ -162,6 +265,11 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve Specific Company Setting
|
||||
* @param \Crater\Http\Requests\SettingKeyRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getSetting(SettingKeyRequest $request)
|
||||
{
|
||||
$setting = CompanySetting::getSetting($request->key, $request->header('company'));
|
||||
@ -171,6 +279,12 @@ class CompanyController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve App Colors
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getColors(Request $request)
|
||||
{
|
||||
$colors = [
|
||||
@ -205,16 +319,16 @@ class CompanyController extends Controller
|
||||
* Upload the company logo to storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function uploadCompanyLogo(Request $request)
|
||||
{
|
||||
$data = json_decode($request->company_logo);
|
||||
|
||||
if($data) {
|
||||
if ($data) {
|
||||
$company = Company::find($request->header('company'));
|
||||
|
||||
if($company) {
|
||||
if ($company) {
|
||||
$company->clearMediaCollection('logo');
|
||||
|
||||
$company->addMediaFromBase64($data->data)
|
||||
@ -232,16 +346,16 @@ class CompanyController extends Controller
|
||||
* Upload the Admin Avatar to public storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function uploadAdminAvatar(Request $request)
|
||||
{
|
||||
$data = json_decode($request->admin_avatar);
|
||||
|
||||
if($data) {
|
||||
if ($data) {
|
||||
$user = auth()->user();
|
||||
|
||||
if($user) {
|
||||
if ($user) {
|
||||
$user->clearMediaCollection('admin_avatar');
|
||||
|
||||
$user->addMediaFromBase64($data->data)
|
||||
|
||||
@ -19,7 +19,7 @@ class CustomersController extends Controller
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
@ -53,7 +53,7 @@ class CustomersController extends Controller
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function store(Requests\CustomerRequest $request)
|
||||
{
|
||||
@ -104,7 +104,7 @@ class CustomersController extends Controller
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
@ -124,7 +124,7 @@ class CustomersController extends Controller
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
@ -144,7 +144,7 @@ class CustomersController extends Controller
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function update($id, Requests\CustomerRequest $request)
|
||||
{
|
||||
@ -177,6 +177,7 @@ class CustomersController extends Controller
|
||||
$customer->enable_portal = $request->enable_portal;
|
||||
$customer->save();
|
||||
|
||||
$customer->addresses()->delete();
|
||||
if ($request->addresses) {
|
||||
foreach ($request->addresses as $address) {
|
||||
$newAddress = $customer->addresses()->firstOrNew(['type' => $address["type"]]);
|
||||
@ -203,10 +204,10 @@ class CustomersController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
* Remove the specified Customer along side all his/her resources (ie. Estimates, Invoices, Payments and Addresses)
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
@ -217,6 +218,13 @@ class CustomersController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Remove a list of Customers along side all their resources (ie. Estimates, Invoices, Payments and Addresses)
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function delete(Request $request)
|
||||
{
|
||||
foreach ($request->id as $id) {
|
||||
|
||||
@ -15,6 +15,12 @@ use Illuminate\Support\Facades\DB;
|
||||
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieve Dashboard details
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
$invoiceTotals = [];
|
||||
@ -30,7 +36,8 @@ class DashboardController extends Controller
|
||||
$start = Carbon::now();
|
||||
$end = Carbon::now();
|
||||
$terms = explode('-', $fiscalYear);
|
||||
if ($terms[0] < $start->month) {
|
||||
|
||||
if ($terms[0] <= $start->month) {
|
||||
$startDate->month($terms[0])->startOfMonth();
|
||||
$start->month($terms[0])->startOfMonth();
|
||||
$end->month($terms[0])->endOfMonth();
|
||||
@ -87,6 +94,7 @@ class DashboardController extends Controller
|
||||
}
|
||||
|
||||
$start->subMonth()->endOfMonth();
|
||||
|
||||
$salesTotal = Invoice::whereCompany($request->header('company'))
|
||||
->whereBetween(
|
||||
'invoice_date',
|
||||
@ -137,6 +145,11 @@ class DashboardController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrive Expense Chart data
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getExpenseChartData(Request $request)
|
||||
{
|
||||
$expensesCategories = Expense::with('category')
|
||||
|
||||
@ -56,25 +56,43 @@ class EstimatesController extends Controller
|
||||
|
||||
public function create(Request $request)
|
||||
{
|
||||
$nextEstimateNumber = 'EST-'.Estimate::getNextEstimateNumber();
|
||||
$estimate_prefix = CompanySetting::getSetting('estimate_prefix', $request->header('company'));
|
||||
$estimate_num_auto_generate = CompanySetting::getSetting('estimate_auto_generate', $request->header('company'));
|
||||
|
||||
$nextEstimateNumberAttribute = null;
|
||||
$nextEstimateNumber = Estimate::getNextEstimateNumber($estimate_prefix);
|
||||
|
||||
if ($estimate_num_auto_generate == "YES") {
|
||||
$nextEstimateNumberAttribute = $nextEstimateNumber;
|
||||
}
|
||||
|
||||
$tax_per_item = CompanySetting::getSetting('tax_per_item', $request->header('company'));
|
||||
$discount_per_item = CompanySetting::getSetting('discount_per_item', $request->header('company'));
|
||||
$customers = User::where('role', 'customer')->get();
|
||||
|
||||
return response()->json([
|
||||
'customers' => $customers,
|
||||
'nextEstimateNumber' => $nextEstimateNumber,
|
||||
'nextEstimateNumberAttribute' => $nextEstimateNumberAttribute,
|
||||
'nextEstimateNumber' => $estimate_prefix.'-'.$nextEstimateNumber,
|
||||
'taxes' => Tax::whereCompany($request->header('company'))->latest()->get(),
|
||||
'items' => Item::whereCompany($request->header('company'))->get(),
|
||||
'tax_per_item' => $tax_per_item,
|
||||
'discount_per_item' => $discount_per_item,
|
||||
'estimateTemplates' => EstimateTemplate::all(),
|
||||
'shareable_link' => ''
|
||||
'shareable_link' => '',
|
||||
'estimate_prefix' => $estimate_prefix
|
||||
]);
|
||||
}
|
||||
|
||||
public function store(EstimatesRequest $request)
|
||||
{
|
||||
$estimate_number = explode("-",$request->estimate_number);
|
||||
$number_attributes['estimate_number'] = $estimate_number[0].'-'.sprintf('%06d', intval($estimate_number[1]));
|
||||
|
||||
Validator::make($number_attributes, [
|
||||
'estimate_number' => 'required|unique:estimates,estimate_number'
|
||||
])->validate();
|
||||
|
||||
$estimate_date = Carbon::createFromFormat('d/m/Y', $request->estimate_date);
|
||||
$expiry_date = Carbon::createFromFormat('d/m/Y', $request->expiry_date);
|
||||
$status = Estimate::STATUS_DRAFT;
|
||||
@ -101,7 +119,7 @@ class EstimatesController extends Controller
|
||||
$estimate = Estimate::create([
|
||||
'estimate_date' => $estimate_date,
|
||||
'expiry_date' => $expiry_date,
|
||||
'estimate_number' => $request->estimate_number,
|
||||
'estimate_number' => $number_attributes['estimate_number'],
|
||||
'reference_number' => $request->reference_number,
|
||||
'user_id' => $request->user_id,
|
||||
'company_id' => $request->header('company'),
|
||||
@ -127,7 +145,7 @@ class EstimatesController extends Controller
|
||||
|
||||
if (array_key_exists('taxes', $estimateItem) && $estimateItem['taxes']) {
|
||||
foreach ($estimateItem['taxes'] as $tax) {
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
$item->taxes()->create($tax);
|
||||
}
|
||||
@ -137,7 +155,7 @@ class EstimatesController extends Controller
|
||||
|
||||
if ($request->has('taxes')) {
|
||||
foreach ($request->taxes as $tax) {
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
$estimate->taxes()->create($tax);
|
||||
}
|
||||
@ -150,10 +168,6 @@ class EstimatesController extends Controller
|
||||
$data['user'] = User::find($userId)->toArray();
|
||||
$data['company'] = Company::find($estimate->company_id);
|
||||
$email = $data['user']['email'];
|
||||
$notificationEmail = CompanySetting::getSetting(
|
||||
'notification_email',
|
||||
$request->header('company')
|
||||
);
|
||||
|
||||
if (!$email) {
|
||||
return response()->json([
|
||||
@ -161,13 +175,7 @@ class EstimatesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$notificationEmail) {
|
||||
return response()->json([
|
||||
'error' => 'notification_email_does_not_exist'
|
||||
]);
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new EstimatePdf($data, $notificationEmail));
|
||||
\Mail::to($email)->send(new EstimatePdf($data));
|
||||
}
|
||||
|
||||
$estimate = Estimate::with([
|
||||
@ -216,26 +224,33 @@ class EstimatesController extends Controller
|
||||
|
||||
return response()->json( [
|
||||
'customers' => $customers,
|
||||
'nextEstimateNumber' => $estimate->estimate_number,
|
||||
'nextEstimateNumber' => $estimate->getEstimateNumAttribute(),
|
||||
'taxes' => Tax::latest()->whereCompany($request->header('company'))->get(),
|
||||
'estimate' => $estimate,
|
||||
'items' => Item::whereCompany($request->header('company'))->latest()->get(),
|
||||
'estimateTemplates' => EstimateTemplate::all(),
|
||||
'tax_per_item' => $estimate->tax_per_item,
|
||||
'discount_per_item' => $estimate->discount_per_item,
|
||||
'shareable_link' => url('/estimates/pdf/'.$estimate->unique_hash)
|
||||
'shareable_link' => url('/estimates/pdf/'.$estimate->unique_hash),
|
||||
'estimate_prefix' => $estimate->getEstimatePrefixAttribute()
|
||||
]);
|
||||
}
|
||||
|
||||
public function update(EstimatesRequest $request, $id)
|
||||
{
|
||||
$estimate_number = explode("-",$request->estimate_number);
|
||||
$number_attributes['estimate_number'] = $estimate_number[0].'-'.sprintf('%06d', intval($estimate_number[1]));
|
||||
Validator::make($number_attributes, [
|
||||
'estimate_number' => 'required|unique:estimates,estimate_number'.','.$id
|
||||
])->validate();
|
||||
|
||||
$estimate_date = Carbon::createFromFormat('d/m/Y', $request->estimate_date);
|
||||
$expiry_date = Carbon::createFromFormat('d/m/Y', $request->expiry_date);
|
||||
|
||||
$estimate = Estimate::find($id);
|
||||
$estimate->estimate_date = $estimate_date;
|
||||
$estimate->expiry_date = $expiry_date;
|
||||
$estimate->estimate_number = $request->estimate_number;
|
||||
$estimate->estimate_number = $number_attributes['estimate_number'];
|
||||
$estimate->reference_number = $request->reference_number;
|
||||
$estimate->user_id = $request->user_id;
|
||||
$estimate->estimate_template_id = $request->estimate_template_id;
|
||||
@ -266,7 +281,7 @@ class EstimatesController extends Controller
|
||||
|
||||
if (array_key_exists('taxes', $estimateItem) && $estimateItem['taxes']) {
|
||||
foreach ($estimateItem['taxes'] as $tax) {
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
$item->taxes()->create($tax);
|
||||
}
|
||||
@ -276,7 +291,7 @@ class EstimatesController extends Controller
|
||||
|
||||
if ($request->has('taxes')) {
|
||||
foreach ($request->taxes as $tax) {
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
$estimate->taxes()->create($tax);
|
||||
}
|
||||
@ -315,10 +330,6 @@ class EstimatesController extends Controller
|
||||
$data['company'] = Company::find($estimate->company_id);
|
||||
|
||||
$email = $data['user']['email'];
|
||||
$notificationEmail = CompanySetting::getSetting(
|
||||
'notification_email',
|
||||
$request->header('company')
|
||||
);
|
||||
|
||||
if (!$email) {
|
||||
return response()->json([
|
||||
@ -326,13 +337,7 @@ class EstimatesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$notificationEmail) {
|
||||
return response()->json([
|
||||
'error' => 'notification_email_does_not_exist'
|
||||
]);
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new EstimatePdf($data, $notificationEmail));
|
||||
\Mail::to($email)->send(new EstimatePdf($data));
|
||||
|
||||
if ($estimate->status == Estimate::STATUS_DRAFT) {
|
||||
$estimate->status = Estimate::STATUS_SENT;
|
||||
@ -381,6 +386,10 @@ class EstimatesController extends Controller
|
||||
{
|
||||
$estimate = Estimate::with(['items', 'items.taxes', 'user', 'estimateTemplate', 'taxes'])->find($id);
|
||||
$invoice_date = Carbon::parse($estimate->estimate_date);
|
||||
$invoice_prefix = CompanySetting::getSetting(
|
||||
'invoice_prefix',
|
||||
$request->header('company')
|
||||
);
|
||||
$due_date = Carbon::parse($estimate->estimate_date)->addDays(7);
|
||||
$tax_per_item = CompanySetting::getSetting(
|
||||
'tax_per_item',
|
||||
@ -400,7 +409,7 @@ class EstimatesController extends Controller
|
||||
$invoice = Invoice::create([
|
||||
'invoice_date' => $invoice_date,
|
||||
'due_date' => $due_date,
|
||||
'invoice_number' => "INV-".Invoice::getNextInvoiceNumber(),
|
||||
'invoice_number' => $invoice_prefix."-".Invoice::getNextInvoiceNumber($invoice_prefix),
|
||||
'reference_number' => $estimate->reference_number,
|
||||
'user_id' => $estimate->user_id,
|
||||
'company_id' => $request->header('company'),
|
||||
|
||||
@ -17,16 +17,18 @@ class ExpensesController extends Controller
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
$limit = $request->has('limit') ? $request->limit : 10;
|
||||
|
||||
$expenses = Expense::with('category')
|
||||
->leftJoin('users', 'users.id', '=', 'expenses.user_id')
|
||||
->join('expense_categories', 'expense_categories.id', '=', 'expenses.expense_category_id')
|
||||
->applyFilters($request->only([
|
||||
'expense_category_id',
|
||||
'user_id',
|
||||
'search',
|
||||
'from_date',
|
||||
'to_date',
|
||||
@ -34,11 +36,16 @@ class ExpensesController extends Controller
|
||||
'orderBy'
|
||||
]))
|
||||
->whereCompany($request->header('company'))
|
||||
->select('expenses.*', 'expense_categories.name')
|
||||
->select('expenses.*', 'expense_categories.name', 'users.name as user_name')
|
||||
->paginate($limit);
|
||||
|
||||
$customers = User::customer()
|
||||
->whereCompany($request->header('company'))
|
||||
->get();
|
||||
|
||||
return response()->json([
|
||||
'expenses' => $expenses,
|
||||
'customers' => $customers,
|
||||
'currency' => Currency::findOrFail(
|
||||
CompanySetting::getSetting('currency', $request->header('company'))
|
||||
)
|
||||
@ -48,14 +55,18 @@ class ExpensesController extends Controller
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function create(Request $request)
|
||||
{
|
||||
$categories = ExpenseCategory::whereCompany($request->header('company'))->get();
|
||||
$customers = User::customer()
|
||||
->whereCompany($request->header('company'))
|
||||
->get();
|
||||
|
||||
return response()->json([
|
||||
'categories' => $categories
|
||||
'categories' => $categories,
|
||||
'customers' => $customers
|
||||
]);
|
||||
}
|
||||
|
||||
@ -63,7 +74,7 @@ class ExpensesController extends Controller
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function store(ExpenseRequest $request)
|
||||
{
|
||||
@ -72,6 +83,7 @@ class ExpensesController extends Controller
|
||||
$expense = new Expense();
|
||||
$expense->notes = $request->notes;
|
||||
$expense->expense_category_id = $request->expense_category_id;
|
||||
$expense->user_id = $request->user_id;
|
||||
$expense->amount = $request->amount;
|
||||
$expense->company_id = $request->header('company');
|
||||
$expense->expense_date = $expense_date;
|
||||
@ -91,7 +103,7 @@ class ExpensesController extends Controller
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \Crater\Expense $expense
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function show(Expense $expense)
|
||||
{
|
||||
@ -102,12 +114,14 @@ class ExpensesController extends Controller
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function edit(Request $request,$id)
|
||||
{
|
||||
$categories = ExpenseCategory::whereCompany($request->header('company'))->get();
|
||||
$customers = User::where('role', 'customer')->whereCompany($request->header('company'))->get();
|
||||
$customers = User::customer()
|
||||
->whereCompany($request->header('company'))
|
||||
->get();
|
||||
$expense = Expense::with('category')->where('id', $id)->first();
|
||||
|
||||
return response()->json([
|
||||
@ -122,7 +136,7 @@ class ExpensesController extends Controller
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Crater\Expense $expense
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function update(ExpenseRequest $request, Expense $expense)
|
||||
{
|
||||
@ -132,6 +146,7 @@ class ExpensesController extends Controller
|
||||
$expense->notes = $request->notes;
|
||||
$expense->expense_category_id = $request->expense_category_id;
|
||||
$expense->amount = $request->amount;
|
||||
$expense->user_id = $request->user_id;
|
||||
$expense->expense_date = $expense_date;
|
||||
$expense->save();
|
||||
|
||||
@ -150,7 +165,7 @@ class ExpensesController extends Controller
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \Crater\Expense $expense
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function destroy(Expense $expense)
|
||||
{
|
||||
@ -175,7 +190,7 @@ class ExpensesController extends Controller
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function uploadReceipts(Request $request, $id)
|
||||
{
|
||||
@ -200,6 +215,12 @@ class ExpensesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrive details of an expense receipt from storage.
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function showReceipt($id)
|
||||
{
|
||||
$expense = Expense::find($id);
|
||||
@ -226,6 +247,14 @@ class ExpensesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Download an expense receipt from storage.
|
||||
* @param int $id
|
||||
* @param strig $hash
|
||||
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse | \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function downloadReceipt($id, $hash)
|
||||
{
|
||||
$company = Company::where('unique_hash', $hash)->first();
|
||||
|
||||
@ -6,6 +6,7 @@ use Crater\Invoice;
|
||||
use PDF;
|
||||
use Crater\CompanySetting;
|
||||
use Crater\Estimate;
|
||||
use Crater\Payment;
|
||||
use Crater\User;
|
||||
use Crater\Company;
|
||||
use Crater\InvoiceTemplate;
|
||||
@ -118,6 +119,11 @@ class FrontendController extends Controller
|
||||
return $pdf->stream();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function getCustomerInvoicePdf($id)
|
||||
{
|
||||
$invoice = Invoice::with([
|
||||
@ -371,4 +377,34 @@ class FrontendController extends Controller
|
||||
|
||||
return $pdf->stream();
|
||||
}
|
||||
|
||||
public function getPaymentPdf($id)
|
||||
{
|
||||
$payment = Payment::with([
|
||||
'user',
|
||||
'invoice',
|
||||
'paymentMethod'
|
||||
])
|
||||
->where('unique_hash', $id)
|
||||
->first();
|
||||
|
||||
$company = Company::find($payment->company_id);
|
||||
$companyAddress = User::with(['addresses', 'addresses.country'])->find(1);
|
||||
|
||||
$logo = $company->getMedia('logo')->first();
|
||||
|
||||
if($logo) {
|
||||
$logo = $logo->getFullUrl();
|
||||
}
|
||||
|
||||
view()->share([
|
||||
'payment' => $payment,
|
||||
'company_address' => $companyAddress,
|
||||
'logo' => $logo ?? null
|
||||
]);
|
||||
|
||||
$pdf = PDF::loadView('app.pdf.payment.payment');
|
||||
|
||||
return $pdf->stream();
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ use Crater\Invoice;
|
||||
use Crater\InvoiceItem;
|
||||
use Carbon\Carbon;
|
||||
use Crater\Item;
|
||||
use Crater\Mail\invoicePdf;
|
||||
use Crater\Mail\InvoicePdf;
|
||||
use function MongoDB\BSON\toJSON;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Crater\User;
|
||||
@ -27,7 +27,7 @@ class InvoicesController extends Controller
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
@ -60,20 +60,30 @@ class InvoicesController extends Controller
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function create(Request $request)
|
||||
{
|
||||
$tax_per_item = CompanySetting::getSetting('tax_per_item', $request->header('company'));
|
||||
$discount_per_item = CompanySetting::getSetting('discount_per_item', $request->header('company'));
|
||||
$nextInvoiceNumber = "INV-".Invoice::getNextInvoiceNumber();
|
||||
$invoice_prefix = CompanySetting::getSetting('invoice_prefix', $request->header('company'));
|
||||
$invoice_num_auto_generate = CompanySetting::getSetting('invoice_auto_generate', $request->header('company'));
|
||||
|
||||
$nextInvoiceNumberAttribute = null;
|
||||
$nextInvoiceNumber = Invoice::getNextInvoiceNumber($invoice_prefix);
|
||||
|
||||
if ($invoice_num_auto_generate == "YES") {
|
||||
$nextInvoiceNumberAttribute = $nextInvoiceNumber;
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'nextInvoiceNumber' => $nextInvoiceNumber,
|
||||
'nextInvoiceNumberAttribute' => $nextInvoiceNumberAttribute,
|
||||
'nextInvoiceNumber' => $invoice_prefix.'-'.$nextInvoiceNumber,
|
||||
'items' => Item::with('taxes')->whereCompany($request->header('company'))->get(),
|
||||
'invoiceTemplates' => InvoiceTemplate::all(),
|
||||
'tax_per_item' => $tax_per_item,
|
||||
'discount_per_item' => $discount_per_item
|
||||
'discount_per_item' => $discount_per_item,
|
||||
'invoice_prefix' => $invoice_prefix
|
||||
]);
|
||||
}
|
||||
|
||||
@ -81,10 +91,17 @@ class InvoicesController extends Controller
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function store(Requests\InvoicesRequest $request)
|
||||
{
|
||||
$invoice_number = explode("-",$request->invoice_number);
|
||||
$number_attributes['invoice_number'] = $invoice_number[0].'-'.sprintf('%06d', intval($invoice_number[1]));
|
||||
|
||||
Validator::make($number_attributes, [
|
||||
'invoice_number' => 'required|unique:invoices,invoice_number'
|
||||
])->validate();
|
||||
|
||||
$invoice_date = Carbon::createFromFormat('d/m/Y', $request->invoice_date);
|
||||
$due_date = Carbon::createFromFormat('d/m/Y', $request->due_date);
|
||||
$status = Invoice::STATUS_DRAFT;
|
||||
@ -99,7 +116,7 @@ class InvoicesController extends Controller
|
||||
$invoice = Invoice::create([
|
||||
'invoice_date' => $invoice_date,
|
||||
'due_date' => $due_date,
|
||||
'invoice_number' => $request->invoice_number,
|
||||
'invoice_number' => $number_attributes['invoice_number'],
|
||||
'reference_number' => $request->reference_number,
|
||||
'user_id' => $request->user_id,
|
||||
'company_id' => $request->header('company'),
|
||||
@ -128,8 +145,7 @@ class InvoicesController extends Controller
|
||||
if (array_key_exists('taxes', $invoiceItem) && $invoiceItem['taxes']) {
|
||||
foreach ($invoiceItem['taxes'] as $tax) {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$item->taxes()->create($tax);
|
||||
}
|
||||
}
|
||||
@ -140,7 +156,7 @@ class InvoicesController extends Controller
|
||||
foreach ($request->taxes as $tax) {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$invoice->taxes()->create($tax);
|
||||
}
|
||||
}
|
||||
@ -151,11 +167,6 @@ class InvoicesController extends Controller
|
||||
$data['user'] = User::find($request->user_id)->toArray();
|
||||
$data['company'] = Company::find($invoice->company_id);
|
||||
|
||||
$notificationEmail = CompanySetting::getSetting(
|
||||
'notification_email',
|
||||
$request->header('company')
|
||||
);
|
||||
|
||||
$email = $data['user']['email'];
|
||||
|
||||
if (!$email) {
|
||||
@ -164,13 +175,7 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$notificationEmail) {
|
||||
return response()->json([
|
||||
'error' => 'notification_email_does_not_exist'
|
||||
]);
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new invoicePdf($data, $notificationEmail));
|
||||
\Mail::to($email)->send(new InvoicePdf($data));
|
||||
}
|
||||
|
||||
$invoice = Invoice::with(['items', 'user', 'invoiceTemplate', 'taxes'])->find($invoice->id);
|
||||
@ -185,7 +190,7 @@ class InvoicesController extends Controller
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function show(Request $request, $id)
|
||||
{
|
||||
@ -209,7 +214,7 @@ class InvoicesController extends Controller
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function edit(Request $request,$id)
|
||||
{
|
||||
@ -222,12 +227,13 @@ class InvoicesController extends Controller
|
||||
])->find($id);
|
||||
|
||||
return response()->json([
|
||||
'nextInvoiceNumber' => $invoice->invoice_number,
|
||||
'nextInvoiceNumber' => $invoice->getInvoiceNumAttribute(),
|
||||
'invoice' => $invoice,
|
||||
'invoiceTemplates' => InvoiceTemplate::all(),
|
||||
'tax_per_item' => $invoice->tax_per_item,
|
||||
'discount_per_item' => $invoice->discount_per_item,
|
||||
'shareable_link' => url('/invoices/pdf/'.$invoice->unique_hash)
|
||||
'shareable_link' => url('/invoices/pdf/'.$invoice->unique_hash),
|
||||
'invoice_prefix' => $invoice->getInvoicePrefixAttribute()
|
||||
]);
|
||||
}
|
||||
|
||||
@ -236,10 +242,17 @@ class InvoicesController extends Controller
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function update(Requests\InvoicesRequest $request, $id)
|
||||
{
|
||||
$invoice_number = explode("-",$request->invoice_number);
|
||||
$number_attributes['invoice_number'] = $invoice_number[0].'-'.sprintf('%06d', intval($invoice_number[1]));
|
||||
|
||||
Validator::make($number_attributes, [
|
||||
'invoice_number' => 'required|unique:invoices,invoice_number'.','.$id
|
||||
])->validate();
|
||||
|
||||
$invoice_date = Carbon::createFromFormat('d/m/Y', $request->invoice_date);
|
||||
$due_date = Carbon::createFromFormat('d/m/Y', $request->due_date);
|
||||
|
||||
@ -268,7 +281,7 @@ class InvoicesController extends Controller
|
||||
|
||||
$invoice->invoice_date = $invoice_date;
|
||||
$invoice->due_date = $due_date;
|
||||
$invoice->invoice_number = $request->invoice_number;
|
||||
$invoice->invoice_number = $number_attributes['invoice_number'];
|
||||
$invoice->reference_number = $request->reference_number;
|
||||
$invoice->user_id = $request->user_id;
|
||||
$invoice->invoice_template_id = $request->invoice_template_id;
|
||||
@ -292,7 +305,6 @@ class InvoicesController extends Controller
|
||||
foreach ($oldTaxes as $oldTax) {
|
||||
Tax::destroy($oldTax['id']);
|
||||
}
|
||||
|
||||
foreach ($invoiceItems as $invoiceItem) {
|
||||
$invoiceItem['company_id'] = $request->header('company');
|
||||
$item = $invoice->items()->create($invoiceItem);
|
||||
@ -300,8 +312,7 @@ class InvoicesController extends Controller
|
||||
if (array_key_exists('taxes', $invoiceItem) && $invoiceItem['taxes']) {
|
||||
foreach ($invoiceItem['taxes'] as $tax) {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$item->taxes()->create($tax);
|
||||
}
|
||||
}
|
||||
@ -312,7 +323,7 @@ class InvoicesController extends Controller
|
||||
foreach ($request->taxes as $tax) {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
|
||||
if ($tax['amount']) {
|
||||
if (gettype($tax['amount']) !== "NULL") {
|
||||
$invoice->taxes()->create($tax);
|
||||
}
|
||||
}
|
||||
@ -331,7 +342,7 @@ class InvoicesController extends Controller
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
@ -369,6 +380,14 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Mail a specific invoice to the correponding cusitomer's email address.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function sendInvoice(Request $request)
|
||||
{
|
||||
$invoice = Invoice::findOrFail($request->id);
|
||||
@ -378,10 +397,6 @@ class InvoicesController extends Controller
|
||||
$data['user'] = User::find($userId)->toArray();
|
||||
$data['company'] = Company::find($invoice->company_id);
|
||||
$email = $data['user']['email'];
|
||||
$notificationEmail = CompanySetting::getSetting(
|
||||
'notification_email',
|
||||
$request->header('company')
|
||||
);
|
||||
|
||||
if (!$email) {
|
||||
return response()->json([
|
||||
@ -389,13 +404,7 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$notificationEmail) {
|
||||
return response()->json([
|
||||
'error' => 'notification_email_does_not_exist'
|
||||
]);
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new invoicePdf($data, $notificationEmail));
|
||||
\Mail::to($email)->send(new InvoicePdf($data));
|
||||
|
||||
if ($invoice->status == Invoice::STATUS_DRAFT) {
|
||||
$invoice->status = Invoice::STATUS_SENT;
|
||||
@ -409,6 +418,13 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Mark a specific invoice as sent.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function markAsSent(Request $request)
|
||||
{
|
||||
$invoice = Invoice::findOrFail($request->id);
|
||||
@ -421,6 +437,13 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Mark a specific invoice as paid.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function markAsPaid(Request $request)
|
||||
{
|
||||
$invoice = Invoice::findOrFail($request->id);
|
||||
@ -434,6 +457,14 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrive a specified user's unpaid invoices from storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getCustomersUnpaidInvoices(Request $request, $id)
|
||||
{
|
||||
$invoices = Invoice::where('paid_status', '<>', Invoice::STATUS_PAID)
|
||||
@ -445,4 +476,94 @@ class InvoicesController extends Controller
|
||||
'invoices' => $invoices
|
||||
]);
|
||||
}
|
||||
|
||||
public function cloneInvoice(Request $request)
|
||||
{
|
||||
$oldInvoice = Invoice::with([
|
||||
'items.taxes',
|
||||
'user',
|
||||
'invoiceTemplate',
|
||||
'taxes.taxType'
|
||||
])
|
||||
->find($request->id);
|
||||
|
||||
$date = Carbon::now();
|
||||
$invoice_prefix = CompanySetting::getSetting(
|
||||
'invoice_prefix',
|
||||
$request->header('company')
|
||||
);
|
||||
$tax_per_item = CompanySetting::getSetting(
|
||||
'tax_per_item',
|
||||
$request->header('company')
|
||||
) ? CompanySetting::getSetting(
|
||||
'tax_per_item',
|
||||
$request->header('company')
|
||||
) : 'NO';
|
||||
$discount_per_item = CompanySetting::getSetting(
|
||||
'discount_per_item',
|
||||
$request->header('company')
|
||||
) ? CompanySetting::getSetting(
|
||||
'discount_per_item',
|
||||
$request->header('company')
|
||||
) : 'NO';
|
||||
|
||||
$invoice = Invoice::create([
|
||||
'invoice_date' => $date,
|
||||
'due_date' => $date,
|
||||
'invoice_number' => $invoice_prefix."-".Invoice::getNextInvoiceNumber($invoice_prefix),
|
||||
'reference_number' => $oldInvoice->reference_number,
|
||||
'user_id' => $oldInvoice->user_id,
|
||||
'company_id' => $request->header('company'),
|
||||
'invoice_template_id' => 1,
|
||||
'status' => Invoice::STATUS_DRAFT,
|
||||
'paid_status' => Invoice::STATUS_UNPAID,
|
||||
'sub_total' => $oldInvoice->sub_total,
|
||||
'discount' => $oldInvoice->discount,
|
||||
'discount_type' => $oldInvoice->discount_type,
|
||||
'discount_val' => $oldInvoice->discount_val,
|
||||
'total' => $oldInvoice->total,
|
||||
'due_amount' => $oldInvoice->total,
|
||||
'tax_per_item' => $oldInvoice->tax_per_item,
|
||||
'discount_per_item' => $oldInvoice->discount_per_item,
|
||||
'tax' => $oldInvoice->tax,
|
||||
'notes' => $oldInvoice->notes,
|
||||
'unique_hash' => str_random(60)
|
||||
]);
|
||||
|
||||
$invoiceItems = $oldInvoice->items->toArray();
|
||||
|
||||
foreach ($invoiceItems as $invoiceItem) {
|
||||
$invoiceItem['company_id'] = $request->header('company');
|
||||
$invoiceItem['name'] = $invoiceItem['name'];
|
||||
$item = $invoice->items()->create($invoiceItem);
|
||||
|
||||
if (array_key_exists('taxes', $invoiceItem) && $invoiceItem['taxes']) {
|
||||
foreach ($invoiceItem['taxes'] as $tax) {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
|
||||
if ($tax['amount']) {
|
||||
$item->taxes()->create($tax);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($oldInvoice->taxes) {
|
||||
foreach ($oldInvoice->taxes->toArray() as $tax) {
|
||||
$tax['company_id'] = $request->header('company');
|
||||
$invoice->taxes()->create($tax);
|
||||
}
|
||||
}
|
||||
|
||||
$invoice = Invoice::with([
|
||||
'items',
|
||||
'user',
|
||||
'invoiceTemplate',
|
||||
'taxes'
|
||||
])->find($invoice->id);
|
||||
|
||||
return response()->json([
|
||||
'invoice' => $invoice
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,14 +14,17 @@ class ItemsController extends Controller
|
||||
{
|
||||
$limit = $request->has('limit') ? $request->limit : 10;
|
||||
|
||||
$items = Item::applyFilters($request->only([
|
||||
$items = Item::with(['taxes'])
|
||||
->leftJoin('units', 'units.id', '=', 'items.unit_id')
|
||||
->applyFilters($request->only([
|
||||
'search',
|
||||
'price',
|
||||
'unit',
|
||||
'unit_id',
|
||||
'orderByField',
|
||||
'orderBy'
|
||||
]))
|
||||
->whereCompany($request->header('company'))
|
||||
->select('items.*', 'units.name as unit_name')
|
||||
->latest()
|
||||
->paginate($limit);
|
||||
|
||||
@ -33,7 +36,7 @@ class ItemsController extends Controller
|
||||
|
||||
public function edit(Request $request, $id)
|
||||
{
|
||||
$item = Item::with('taxes')->find($id);
|
||||
$item = Item::with(['taxes', 'unit'])->find($id);
|
||||
|
||||
return response()->json([
|
||||
'item' => $item,
|
||||
@ -43,11 +46,18 @@ class ItemsController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create Item.
|
||||
*
|
||||
* @param Crater\Http\Requests\ItemsRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function store(Requests\ItemsRequest $request)
|
||||
{
|
||||
$item = new Item();
|
||||
$item->name = $request->name;
|
||||
$item->unit = $request->unit;
|
||||
$item->unit_id = $request->unit_id;
|
||||
$item->description = $request->description;
|
||||
$item->company_id = $request->header('company');
|
||||
$item->price = $request->price;
|
||||
@ -67,11 +77,18 @@ class ItemsController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing Item.
|
||||
*
|
||||
* @param Crater\Http\Requests\ItemsRequest $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function update(Requests\ItemsRequest $request, $id)
|
||||
{
|
||||
$item = Item::find($id);
|
||||
$item->name = $request->name;
|
||||
$item->unit = $request->unit;
|
||||
$item->unit_id = $request->unit_id;
|
||||
$item->description = $request->description;
|
||||
$item->price = $request->price;
|
||||
$item->save();
|
||||
@ -96,6 +113,13 @@ class ItemsController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delete an existing Item.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
$data = Item::deleteItem($id);
|
||||
@ -111,12 +135,20 @@ class ItemsController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Delete a list of existing Items.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function delete(Request $request)
|
||||
{
|
||||
$items = [];
|
||||
foreach ($request->id as $id) {
|
||||
$item = Item::deleteItem($id);
|
||||
if (!$item) {
|
||||
if ($item) {
|
||||
array_push($items, $id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,6 +6,12 @@ use Crater\Country;
|
||||
|
||||
class LocationController extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrive a list of Countries.
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getCountries()
|
||||
{
|
||||
return response()->json([
|
||||
|
||||
@ -18,6 +18,13 @@ use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
class OnboardingController extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieve Onboarding data.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getOnboardingData(Request $request)
|
||||
{
|
||||
if (!\Storage::disk('local')->has('database_created')) {
|
||||
@ -37,9 +44,14 @@ class OnboardingController extends Controller
|
||||
$date_formats = DateFormatter::get_list();
|
||||
$time_zones = TimeZones::get_list();
|
||||
$languages = [
|
||||
["code"=>"ar", "name" => "Arabic"],
|
||||
["code"=>"en", "name" => "English"],
|
||||
["code"=>"fr", "name" => "French"],
|
||||
["code"=>"es", "name" => "Spanish"]
|
||||
["code"=>"es", "name" => "Spanish"],
|
||||
["code"=>"ar", "name" => "العربية"],
|
||||
["code"=>"de", "name" => "German"],
|
||||
["code"=>"pt-br", "name" => "Portuguese (Brazilian)"],
|
||||
["code"=>"it", "name" => "Italian"],
|
||||
];
|
||||
$fiscal_years = [
|
||||
['key' => 'january-december' , 'value' => '1-12'],
|
||||
@ -72,6 +84,13 @@ class OnboardingController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Setup Admin Profile.
|
||||
*
|
||||
* @param \Crater\Http\Requests\ProfileRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function adminProfile(ProfileRequest $request)
|
||||
{
|
||||
$setting = Setting::getSetting('profile_complete');
|
||||
@ -97,6 +116,12 @@ class OnboardingController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup Admin Avatar.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function uploadAdminAvatar(Request $request)
|
||||
{
|
||||
$setting = Setting::getSetting('profile_complete');
|
||||
@ -123,6 +148,12 @@ class OnboardingController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup Admin Company.
|
||||
*
|
||||
* @param \Crater\Http\Requests\CompanyRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function adminCompany(CompanyRequest $request)
|
||||
{
|
||||
$setting = Setting::getSetting('profile_complete');
|
||||
@ -174,6 +205,13 @@ class OnboardingController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Setup Company Settings.
|
||||
*
|
||||
* @param \Crater\Http\Requests\CompanySettingRequest $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function companySettings(CompanySettingRequest $request)
|
||||
{
|
||||
$setting = Setting::getSetting('profile_complete');
|
||||
@ -202,6 +240,45 @@ class OnboardingController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
$invoices = [
|
||||
'invoice_auto_generate' => 'YES',
|
||||
'invoice_prefix' => 'INV'
|
||||
];
|
||||
|
||||
foreach ($invoices as $key => $value) {
|
||||
CompanySetting::setSetting(
|
||||
$key,
|
||||
$value,
|
||||
$user->company_id
|
||||
);
|
||||
}
|
||||
|
||||
$estimates = [
|
||||
'estimate_prefix' => 'EST',
|
||||
'estimate_auto_generate' => 'YES'
|
||||
];
|
||||
|
||||
foreach ($estimates as $key => $value) {
|
||||
CompanySetting::setSetting(
|
||||
$key,
|
||||
$value,
|
||||
$user->company_id
|
||||
);
|
||||
}
|
||||
|
||||
$payments = [
|
||||
'payment_prefix' => 'PAY',
|
||||
'payment_auto_generate' => 'YES'
|
||||
];
|
||||
|
||||
foreach ($payments as $key => $value) {
|
||||
CompanySetting::setSetting(
|
||||
$key,
|
||||
$value,
|
||||
$user->company_id
|
||||
);
|
||||
}
|
||||
|
||||
$colors = [
|
||||
'primary_text_color' => '#5851D8',
|
||||
'heading_text_color' => '#595959',
|
||||
@ -232,13 +309,24 @@ class OnboardingController extends Controller
|
||||
|
||||
Artisan::call('passport:install --force');
|
||||
|
||||
Artisan::call('db:seed', ['--class' => 'PaymentMethodSeeder', '--force' => true]);
|
||||
|
||||
Artisan::call('db:seed', ['--class' => 'UnitSeeder', '--force' => true]);
|
||||
|
||||
$client = DB::table('oauth_clients')->find(2);
|
||||
|
||||
$path = base_path('.env');
|
||||
|
||||
if (file_exists($path)) {
|
||||
file_put_contents($path, str_replace(
|
||||
'PROXY_OAUTH_CLIENT_SECRET='.config('auth.proxy.client_secret'), 'PROXY_OAUTH_CLIENT_SECRET='.$client->secret, file_get_contents($path)
|
||||
'PROXY_OAUTH_CLIENT_SECRET='.config('auth.proxy.client_secret'),
|
||||
'PROXY_OAUTH_CLIENT_SECRET='.$client->secret,
|
||||
file_get_contents($path)
|
||||
));
|
||||
file_put_contents($path, str_replace(
|
||||
'APP_DEBUG=true',
|
||||
'APP_DEBUG=false',
|
||||
file_get_contents($path)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@ -4,12 +4,16 @@ namespace Crater\Http\Controllers;
|
||||
use Illuminate\Http\Request;
|
||||
use Crater\CompanySetting;
|
||||
use Crater\Currency;
|
||||
use Crater\Company;
|
||||
use Crater\Invoice;
|
||||
use Crater\Payment;
|
||||
use Crater\PaymentMethod;
|
||||
use Carbon\Carbon;
|
||||
use function MongoDB\BSON\toJSON;
|
||||
use Crater\User;
|
||||
use Crater\Http\Requests\PaymentRequest;
|
||||
use Validator;
|
||||
use Crater\Mail\PaymentPdf;
|
||||
|
||||
class PaymentController extends Controller
|
||||
{
|
||||
@ -22,19 +26,20 @@ class PaymentController extends Controller
|
||||
{
|
||||
$limit = $request->has('limit') ? $request->limit : 10;
|
||||
|
||||
$payments = Payment::with('user', 'invoice')
|
||||
$payments = Payment::with(['user', 'invoice', 'paymentMethod'])
|
||||
->join('users', 'users.id', '=', 'payments.user_id')
|
||||
->leftJoin('invoices', 'invoices.id', '=', 'payments.invoice_id')
|
||||
->leftJoin('payment_methods', 'payment_methods.id', '=', 'payments.payment_method_id')
|
||||
->applyFilters($request->only([
|
||||
'search',
|
||||
'payment_number',
|
||||
'payment_mode',
|
||||
'payment_method_id',
|
||||
'customer_id',
|
||||
'orderByField',
|
||||
'orderBy'
|
||||
]))
|
||||
->whereCompany($request->header('company'))
|
||||
->select('payments.*', 'users.name', 'invoices.invoice_number')
|
||||
->select('payments.*', 'users.name', 'invoices.invoice_number', 'payment_methods.name as payment_mode')
|
||||
->latest()
|
||||
->paginate($limit);
|
||||
|
||||
@ -50,13 +55,27 @@ class PaymentController extends Controller
|
||||
*/
|
||||
public function create(Request $request)
|
||||
{
|
||||
$nextPaymentNumber = 'PAY-'.Payment::getNextPaymentNumber();
|
||||
$payment_prefix = CompanySetting::getSetting('payment_prefix', $request->header('company'));
|
||||
$payment_num_auto_generate = CompanySetting::getSetting('payment_auto_generate', $request->header('company'));
|
||||
|
||||
|
||||
$nextPaymentNumberAttribute = null;
|
||||
$nextPaymentNumber = Payment::getNextPaymentNumber($payment_prefix);
|
||||
|
||||
if ($payment_num_auto_generate == "YES") {
|
||||
$nextPaymentNumberAttribute = $nextPaymentNumber;
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'customers' => User::where('role', 'customer')
|
||||
->whereCompany($request->header('company'))
|
||||
->get(),
|
||||
'nextPaymentNumber' => $nextPaymentNumber
|
||||
'paymentMethods' => PaymentMethod::whereCompany($request->header('company'))
|
||||
->latest()
|
||||
->get(),
|
||||
'nextPaymentNumberAttribute' => $nextPaymentNumberAttribute,
|
||||
'nextPaymentNumber' => $payment_prefix.'-'.$nextPaymentNumber,
|
||||
'payment_prefix' => $payment_prefix
|
||||
]);
|
||||
}
|
||||
|
||||
@ -68,6 +87,13 @@ class PaymentController extends Controller
|
||||
*/
|
||||
public function store(PaymentRequest $request)
|
||||
{
|
||||
$payment_number = explode("-",$request->payment_number);
|
||||
$number_attributes['payment_number'] = $payment_number[0].'-'.sprintf('%06d', intval($payment_number[1]));
|
||||
|
||||
Validator::make($number_attributes, [
|
||||
'payment_number' => 'required|unique:payments,payment_number'
|
||||
])->validate();
|
||||
|
||||
$payment_date = Carbon::createFromFormat('d/m/Y', $request->payment_date);
|
||||
|
||||
if ($request->has('invoice_id') && $request->invoice_id != null) {
|
||||
@ -90,17 +116,19 @@ class PaymentController extends Controller
|
||||
|
||||
$payment = Payment::create([
|
||||
'payment_date' => $payment_date,
|
||||
'payment_number' => $request->payment_number,
|
||||
'payment_number' => $number_attributes['payment_number'],
|
||||
'user_id' => $request->user_id,
|
||||
'company_id' => $request->header('company'),
|
||||
'invoice_id' => $request->invoice_id,
|
||||
'payment_mode' => $request->payment_mode,
|
||||
'payment_method_id' => $request->payment_method_id,
|
||||
'amount' => $request->amount,
|
||||
'notes' => $request->notes,
|
||||
'unique_hash' => str_random(60)
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
'payment' => $payment,
|
||||
'shareable_link' => url('/payments/pdf/'.$payment->unique_hash),
|
||||
'success' => true
|
||||
]);
|
||||
}
|
||||
@ -113,7 +141,12 @@ class PaymentController extends Controller
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
$payment = Payment::with(['user', 'invoice', 'paymentMethod'])->find($id);
|
||||
|
||||
return response()->json([
|
||||
'payment' => $payment,
|
||||
'shareable_link' => url('/payments/pdf/'.$payment->unique_hash)
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -124,7 +157,7 @@ class PaymentController extends Controller
|
||||
*/
|
||||
public function edit(Request $request, $id)
|
||||
{
|
||||
$payment = Payment::with('user', 'invoice')->find($id);
|
||||
$payment = Payment::with(['user', 'invoice', 'paymentMethod'])->find($id);
|
||||
|
||||
$invoices = Invoice::where('paid_status', '<>', Invoice::STATUS_PAID)
|
||||
->where('user_id', $payment->user_id)->where('due_amount', '>', 0)
|
||||
@ -135,7 +168,12 @@ class PaymentController extends Controller
|
||||
'customers' => User::where('role', 'customer')
|
||||
->whereCompany($request->header('company'))
|
||||
->get(),
|
||||
'nextPaymentNumber' => $payment->payment_number,
|
||||
'paymentMethods' => PaymentMethod::whereCompany($request->header('company'))
|
||||
->latest()
|
||||
->get(),
|
||||
'nextPaymentNumber' => $payment->getPaymentNumAttribute(),
|
||||
'payment_prefix' => $payment->getPaymentPrefixAttribute(),
|
||||
'shareable_link' => url('/payments/pdf/'.$payment->unique_hash),
|
||||
'payment' => $payment,
|
||||
'invoices' => $invoices
|
||||
]);
|
||||
@ -150,6 +188,13 @@ class PaymentController extends Controller
|
||||
*/
|
||||
public function update(PaymentRequest $request, $id)
|
||||
{
|
||||
$payment_number = explode("-",$request->payment_number);
|
||||
$number_attributes['payment_number'] = $payment_number[0].'-'.sprintf('%06d', intval($payment_number[1]));
|
||||
|
||||
Validator::make($number_attributes, [
|
||||
'payment_number' => 'required|unique:payments,payment_number'.','.$id
|
||||
])->validate();
|
||||
|
||||
$payment_date = Carbon::createFromFormat('d/m/Y', $request->payment_date);
|
||||
|
||||
$payment = Payment::find($id);
|
||||
@ -178,16 +223,17 @@ class PaymentController extends Controller
|
||||
}
|
||||
|
||||
$payment->payment_date = $payment_date;
|
||||
$payment->payment_number = $request->payment_number;
|
||||
$payment->payment_number = $number_attributes['payment_number'];
|
||||
$payment->user_id = $request->user_id;
|
||||
$payment->invoice_id = $request->invoice_id;
|
||||
$payment->payment_mode = $request->payment_mode;
|
||||
$payment->payment_method_id = $request->payment_method_id;
|
||||
$payment->amount = $request->amount;
|
||||
$payment->notes = $request->notes;
|
||||
$payment->save();
|
||||
|
||||
return response()->json([
|
||||
'payment' => $payment,
|
||||
'shareable_link' => url('/payments/pdf/'.$payment->unique_hash),
|
||||
'success' => true
|
||||
]);
|
||||
}
|
||||
@ -249,4 +295,27 @@ class PaymentController extends Controller
|
||||
'success' => true
|
||||
]);
|
||||
}
|
||||
|
||||
public function sendPayment(Request $request)
|
||||
{
|
||||
$payment = Payment::findOrFail($request->id);
|
||||
|
||||
$data['payment'] = $payment->toArray();
|
||||
$userId = $data['payment']['user_id'];
|
||||
$data['user'] = User::find($userId)->toArray();
|
||||
$data['company'] = Company::find($payment->company_id);
|
||||
$email = $data['user']['email'];
|
||||
|
||||
if (!$email) {
|
||||
return response()->json([
|
||||
'error' => 'user_email_does_not_exist'
|
||||
]);
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new PaymentPdf($data));
|
||||
|
||||
return response()->json([
|
||||
'success' => true
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
119
app/Http/Controllers/PaymentMethodController.php
Normal file
119
app/Http/Controllers/PaymentMethodController.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Http\Controllers;
|
||||
|
||||
use Crater\PaymentMethod;
|
||||
use Illuminate\Http\Request;
|
||||
use Crater\Http\Requests\PaymentMethodRequest;
|
||||
|
||||
class PaymentMethodController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
$paymentMethods = PaymentMethod::whereCompany($request->header('company'))
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
return response()->json([
|
||||
'paymentMethods' => $paymentMethods
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(PaymentMethodRequest $request)
|
||||
{
|
||||
$paymentMethod = new PaymentMethod;
|
||||
$paymentMethod->name = $request->name;
|
||||
$paymentMethod->company_id = $request->header('company');
|
||||
$paymentMethod->save();
|
||||
|
||||
return response()->json([
|
||||
'paymentMethod' => $paymentMethod
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \Crater\PaymentMethod $paymentMethod
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(PaymentMethod $paymentMethod)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param \Crater\PaymentMethod $paymentMethod
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(PaymentMethod $paymentMethod)
|
||||
{
|
||||
return response()->json([
|
||||
'paymentMethod' => $paymentMethod
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Crater\PaymentMethod $paymentMethod
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(PaymentMethodRequest $request, PaymentMethod $paymentMethod)
|
||||
{
|
||||
$paymentMethod->name = $request->name;
|
||||
$paymentMethod->company_id = $request->header('company');
|
||||
$paymentMethod->save();
|
||||
|
||||
return response()->json([
|
||||
'paymentMethod' => $paymentMethod
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \Crater\PaymentMethod $paymentMethod
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(PaymentMethod $paymentMethod)
|
||||
{
|
||||
$payments = $paymentMethod->payments;
|
||||
|
||||
if ($payments->count() > 0) {
|
||||
return response()->json([
|
||||
'error' => 'payments_attached'
|
||||
]);
|
||||
}
|
||||
|
||||
$paymentMethod->delete();
|
||||
|
||||
return response()->json([
|
||||
'success' => 'Payment method deleted successfully'
|
||||
]);
|
||||
}
|
||||
}
|
||||
@ -4,9 +4,18 @@ namespace Crater\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Crater\Setting;
|
||||
use Crater\Mail\TestMail;
|
||||
use Mail;
|
||||
|
||||
class SettingsController extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrive App Version.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function getAppVersion(Request $request)
|
||||
{
|
||||
$version = Setting::getSetting('version');
|
||||
@ -16,4 +25,18 @@ class SettingsController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function testEmailConfig(Request $request)
|
||||
{
|
||||
$this->validate($request, [
|
||||
'to' => 'required|email',
|
||||
'subject' => 'required',
|
||||
'message' => 'required'
|
||||
]);
|
||||
|
||||
Mail::to($request->to)->send(new TestMail($request->subject, $request->message));
|
||||
|
||||
return response()->json([
|
||||
'success' => true
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
119
app/Http/Controllers/UnitController.php
Normal file
119
app/Http/Controllers/UnitController.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Http\Controllers;
|
||||
|
||||
use Crater\Unit;
|
||||
use Illuminate\Http\Request;
|
||||
use Crater\Http\Requests\UnitRequest;
|
||||
|
||||
class UnitController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
$units = Unit::whereCompany($request->header('company'))
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
return response()->json([
|
||||
'units' => $units
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(UnitRequest $request)
|
||||
{
|
||||
$unit = new Unit;
|
||||
$unit->name = $request->name;
|
||||
$unit->company_id = $request->header('company');
|
||||
$unit->save();
|
||||
|
||||
return response()->json([
|
||||
'unit' => $unit
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \Crater\Unit $unit
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Unit $unit)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param \Crater\Unit $unit
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(Unit $unit)
|
||||
{
|
||||
return response()->json([
|
||||
'unit' => $unit
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Crater\Unit $unit
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(UnitRequest $request, Unit $unit)
|
||||
{
|
||||
$unit->name = $request->name;
|
||||
$unit->company_id = $request->header('company');
|
||||
$unit->save();
|
||||
|
||||
return response()->json([
|
||||
'unit' => $unit
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \Crater\Unit $unit
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(Unit $unit)
|
||||
{
|
||||
$items = $unit->items;
|
||||
|
||||
if ($items->count() > 0) {
|
||||
return response()->json([
|
||||
'error' => 'items_attached'
|
||||
]);
|
||||
}
|
||||
|
||||
$unit->delete();
|
||||
|
||||
return response()->json([
|
||||
'success' => 'Unit deleted successfully'
|
||||
]);
|
||||
}
|
||||
}
|
||||
@ -7,6 +7,8 @@ use Crater\User;
|
||||
use Crater\Currency;
|
||||
use Crater\Setting;
|
||||
use Crater\Item;
|
||||
use Crater\PaymentMethod;
|
||||
use Crater\Unit;
|
||||
use Crater\TaxType;
|
||||
use DB;
|
||||
use Carbon\Carbon;
|
||||
@ -46,10 +48,18 @@ class UsersController extends Controller
|
||||
$request->header('company')
|
||||
);
|
||||
|
||||
$items = Item::all();
|
||||
$items = Item::with('taxes')->get();
|
||||
|
||||
$taxTypes = TaxType::latest()->get();
|
||||
|
||||
$paymentMethods = PaymentMethod::whereCompany($request->header('company'))
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
$units = Unit::whereCompany($request->header('company'))
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
return response()->json([
|
||||
'user' => $user,
|
||||
'customers' => $customers,
|
||||
@ -61,6 +71,8 @@ class UsersController extends Controller
|
||||
'items' => $items,
|
||||
'taxTypes' => $taxTypes,
|
||||
'moment_date_format' => $moment_date_format,
|
||||
'paymentMethods' => $paymentMethods,
|
||||
'units' => $units,
|
||||
'fiscal_year' => $fiscal_year,
|
||||
]);
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@ class EstimatesRequest extends FormRequest
|
||||
$rules = [
|
||||
'estimate_date' => 'required',
|
||||
'expiry_date' => 'required',
|
||||
'estimate_number' => 'required|unique:estimates,estimate_number',
|
||||
'user_id' => 'required',
|
||||
'discount' => 'required',
|
||||
'discount_val' => 'required',
|
||||
@ -41,10 +40,6 @@ class EstimatesRequest extends FormRequest
|
||||
'items.*.price' => 'required'
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
$rules['estimate_number'] = $rules['estimate_number'].','.$this->get('id');
|
||||
}
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@ class InvoicesRequest extends FormRequest
|
||||
$rules = [
|
||||
'invoice_date' => 'required',
|
||||
'due_date' => 'required',
|
||||
'invoice_number' => 'required|unique:invoices,invoice_number',
|
||||
'user_id' => 'required',
|
||||
'discount' => 'required',
|
||||
'discount_val' => 'required',
|
||||
@ -41,10 +40,6 @@ class InvoicesRequest extends FormRequest
|
||||
'items.*.price' => 'required'
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
$rules['invoice_number'] = $rules['invoice_number'].','.$this->get('id');
|
||||
}
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,12 +40,9 @@ class MailEnvironmentRequest extends FormRequest
|
||||
case 'mailgun':
|
||||
return [
|
||||
'mail_driver' => 'required|string',
|
||||
'mail_host' => 'required|string',
|
||||
'mail_port' => 'required',
|
||||
'mail_mailgun_domain' => 'required|string',
|
||||
'mail_mailgun_secret' => 'required|string',
|
||||
'mail_mailgun_endpoint' => 'required|string',
|
||||
'mail_encryption' => 'required|string',
|
||||
'from_name' => 'required|string',
|
||||
'from_mail' => 'required|string',
|
||||
];
|
||||
|
||||
40
app/Http/Requests/PaymentMethodRequest.php
Normal file
40
app/Http/Requests/PaymentMethodRequest.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class PaymentMethodRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
$data = [
|
||||
'name' => 'required|unique:payment_methods,name'
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
$data['name'] = [
|
||||
'required',
|
||||
Rule::unique('payment_methods')->ignore($this->route('payment_method'), 'id')
|
||||
];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
@ -24,15 +24,10 @@ class PaymentRequest extends FormRequest
|
||||
{
|
||||
$rules = [
|
||||
'payment_date' => 'required',
|
||||
'payment_number' => 'required|unique:payments,payment_number',
|
||||
'user_id' => 'required',
|
||||
'amount' => 'required',
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
$rules['payment_number'] = $rules['payment_number'].','.$this->route('payment');
|
||||
}
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ class ProfileRequest extends FormRequest
|
||||
case 'POST':
|
||||
return [
|
||||
'name' => 'required',
|
||||
'password' => 'required',
|
||||
'password' => 'required|min:8',
|
||||
'address_street_1' => 'max:255',
|
||||
'address_street_2' => 'max:255',
|
||||
'email' => [
|
||||
|
||||
40
app/Http/Requests/UnitRequest.php
Normal file
40
app/Http/Requests/UnitRequest.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class UnitRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
$data = [
|
||||
'name' => 'required|unique:units,name'
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
$data['name'] = [
|
||||
'required',
|
||||
Rule::unique('units')->ignore($this->route('unit'), 'id')
|
||||
];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
@ -66,10 +66,14 @@ class Invoice extends Model
|
||||
'formattedDueDate'
|
||||
];
|
||||
|
||||
public static function getNextInvoiceNumber()
|
||||
public static function getNextInvoiceNumber($value)
|
||||
{
|
||||
// Get the last created order
|
||||
$lastOrder = Invoice::orderBy('created_at', 'desc')->first();
|
||||
$lastOrder = Invoice::where('invoice_number', 'LIKE', $value . '-%')
|
||||
->orderBy('created_at', 'desc')
|
||||
->first();
|
||||
|
||||
|
||||
if (!$lastOrder) {
|
||||
// We get here if there is no order at all
|
||||
// If there is no number set it to 0, which will be 1 at the end.
|
||||
@ -143,10 +147,15 @@ class Invoice extends Model
|
||||
|
||||
public function getInvoiceNumAttribute()
|
||||
{
|
||||
$position = $this->strposX($this->invoice_number, "-", 2) + 1;
|
||||
$position = $this->strposX($this->invoice_number, "-", 1) + 1;
|
||||
return substr($this->invoice_number, $position);
|
||||
}
|
||||
|
||||
public function getInvoicePrefixAttribute () {
|
||||
$prefix = explode("-", $this->invoice_number)[0];
|
||||
return $prefix;
|
||||
}
|
||||
|
||||
public function getFormattedCreatedAtAttribute($value)
|
||||
{
|
||||
$dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id);
|
||||
|
||||
19
app/Item.php
19
app/Item.php
@ -24,19 +24,24 @@ class Item extends Model
|
||||
'formattedCreatedAt'
|
||||
];
|
||||
|
||||
public function unit()
|
||||
{
|
||||
return $this->belongsTo(Unit::class);
|
||||
}
|
||||
|
||||
public function scopeWhereSearch($query, $search)
|
||||
{
|
||||
return $query->where('name', 'LIKE', '%'.$search.'%');
|
||||
return $query->where('items.name', 'LIKE', '%'.$search.'%');
|
||||
}
|
||||
|
||||
public function scopeWherePrice($query, $price)
|
||||
{
|
||||
return $query->where('price', $price);
|
||||
return $query->where('items.price', $price);
|
||||
}
|
||||
|
||||
public function scopeWhereUnit($query, $unit)
|
||||
public function scopeWhereUnit($query, $unit_id)
|
||||
{
|
||||
return $query->where('unit', $unit);
|
||||
return $query->where('items.unit_id', $unit_id);
|
||||
}
|
||||
|
||||
public function scopeWhereOrder($query, $orderByField, $orderBy)
|
||||
@ -56,8 +61,8 @@ class Item extends Model
|
||||
$query->wherePrice($filters->get('price'));
|
||||
}
|
||||
|
||||
if ($filters->get('unit')) {
|
||||
$query->whereUnit($filters->get('unit'));
|
||||
if ($filters->get('unit_id')) {
|
||||
$query->whereUnit($filters->get('unit_id'));
|
||||
}
|
||||
|
||||
if ($filters->get('orderByField') || $filters->get('orderBy')) {
|
||||
@ -80,7 +85,7 @@ class Item extends Model
|
||||
|
||||
public function scopeWhereCompany($query, $company_id)
|
||||
{
|
||||
$query->where('company_id', $company_id);
|
||||
$query->where('items.company_id', $company_id);
|
||||
}
|
||||
|
||||
public function invoiceItems()
|
||||
|
||||
@ -6,7 +6,6 @@ use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Crater\Listeners\Updates\Listener;
|
||||
use Crater\Listeners\Updates\v2\Version200;
|
||||
use Crater\Events\UpdateFinished;
|
||||
use Crater\Setting;
|
||||
use Crater\Address;
|
||||
|
||||
64
app/Listeners/Updates/v2/Version210.php
Normal file
64
app/Listeners/Updates/v2/Version210.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Listeners\Updates\v2;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Crater\Events\UpdateFinished;
|
||||
use Crater\Listeners\Updates\Listener;
|
||||
use Crater\Setting;
|
||||
use Crater\CompanySetting;
|
||||
|
||||
class Version210 extends Listener
|
||||
{
|
||||
const VERSION = '2.1.0';
|
||||
|
||||
/**
|
||||
* Create the event listener.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param object $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(UpdateFinished $event)
|
||||
{
|
||||
if ($this->isListenerFired($event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add initial auto generate value
|
||||
$this->addAutoGenerateSettings();
|
||||
|
||||
// Update Crater app version
|
||||
Setting::setSetting('version', static::VERSION);
|
||||
}
|
||||
|
||||
private function addAutoGenerateSettings()
|
||||
{
|
||||
$settings = [
|
||||
'invoice_auto_generate' => 'YES',
|
||||
'invoice_prefix' => 'INV',
|
||||
'estimate_prefix' => 'EST',
|
||||
'estimate_auto_generate' => 'YES',
|
||||
'payment_prefix' => 'PAY',
|
||||
'payment_auto_generate' => 'YES'
|
||||
];
|
||||
|
||||
foreach ($settings as $key => $value) {
|
||||
CompanySetting::setSetting(
|
||||
$key,
|
||||
$value,
|
||||
auth()->user()->company->id
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
162
app/Listeners/Updates/v3/Version300.php
Normal file
162
app/Listeners/Updates/v3/Version300.php
Normal file
@ -0,0 +1,162 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Listeners\Updates\v3;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Crater\Setting;
|
||||
use Crater\Unit;
|
||||
use Crater\PaymentMethod;
|
||||
use Crater\Currency;
|
||||
use Crater\Payment;
|
||||
use Crater\Item;
|
||||
use Crater\User;
|
||||
use Crater\Listeners\Updates\Listener;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class Version300 extends Listener
|
||||
{
|
||||
const VERSION = '3.0.0';
|
||||
|
||||
/**
|
||||
* Create the event listener.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param object $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle($event)
|
||||
{
|
||||
if ($this->isListenerFired($event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->changeMigrations();
|
||||
|
||||
$this->addSeederData();
|
||||
|
||||
$this->databaseChanges();
|
||||
|
||||
$this->changeMigrations(true);
|
||||
|
||||
Setting::setSetting('version', static::VERSION);
|
||||
}
|
||||
|
||||
public function changeMigrations($removeColumn = false)
|
||||
{
|
||||
if ($removeColumn) {
|
||||
\Schema::table('items', function (Blueprint $table) {
|
||||
$table->dropColumn('unit');
|
||||
});
|
||||
|
||||
\Schema::table('payments', function (Blueprint $table) {
|
||||
$table->dropColumn('payment_mode');
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
\Schema::create('units', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
\Schema::table('items', function (Blueprint $table) {
|
||||
$table->integer('unit_id')->unsigned()->nullable();
|
||||
$table->foreign('unit_id')->references('id')->on('units')->onDelete('cascade');
|
||||
});
|
||||
|
||||
\Schema::create('payment_methods', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
\Schema::table('payments', function (Blueprint $table) {
|
||||
$table->string('unique_hash')->nullable();
|
||||
$table->integer('payment_method_id')->unsigned()->nullable();
|
||||
$table->foreign('payment_method_id')->references('id')->on('payment_methods')->onDelete('cascade');
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function addSeederData()
|
||||
{
|
||||
$company_id = User::where('role', 'admin')->first()->company_id;
|
||||
|
||||
Unit::create(['name' => 'box', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'cm', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'dz', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'ft', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'g', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'in', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'kg', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'km', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'lb', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'mg', 'company_id' => $company_id]);
|
||||
Unit::create(['name' => 'pc', 'company_id' => $company_id]);
|
||||
|
||||
PaymentMethod::create(['name' => 'Cash', 'company_id' => $company_id]);
|
||||
PaymentMethod::create(['name' => 'Check', 'company_id' => $company_id]);
|
||||
PaymentMethod::create(['name' => 'Credit Card', 'company_id' => $company_id]);
|
||||
PaymentMethod::create(['name' => 'Bank Transfer', 'company_id' => $company_id]);
|
||||
|
||||
Currency::create([
|
||||
'name' => 'Serbian Dinar',
|
||||
'code' => 'RSD',
|
||||
'symbol' => 'RSD',
|
||||
'precision' => '2',
|
||||
'thousand_separator' => '.',
|
||||
'decimal_separator' => ','
|
||||
]);
|
||||
}
|
||||
|
||||
public function databaseChanges()
|
||||
{
|
||||
$payments = Payment::all();
|
||||
|
||||
if ($payments) {
|
||||
foreach ($payments as $payment) {
|
||||
$payment->unique_hash = str_random(60);
|
||||
$payment->save();
|
||||
|
||||
$paymentMethod = PaymentMethod::where('name', $payment->payment_mode)
|
||||
->first();
|
||||
|
||||
if ($paymentMethod) {
|
||||
$payment->payment_method_id = $paymentMethod->id;
|
||||
$payment->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$items = Item::all();
|
||||
|
||||
if ($items) {
|
||||
foreach ($items as $item) {
|
||||
$unit = Unit::where('name', $item->unit)
|
||||
->first();
|
||||
|
||||
if ($unit) {
|
||||
$item->unit_id = $unit->id;
|
||||
$item->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
51
app/Listeners/Updates/v3/Version301.php
Normal file
51
app/Listeners/Updates/v3/Version301.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Listeners\Updates\v3;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Crater\Events\UpdateFinished;
|
||||
use Crater\Listeners\Updates\Listener;
|
||||
use Crater\Setting;
|
||||
use Crater\Currency;
|
||||
|
||||
class Version301 extends Listener
|
||||
{
|
||||
const VERSION = '3.0.1';
|
||||
|
||||
/**
|
||||
* Create the event listener.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param object $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(UpdateFinished $event)
|
||||
{
|
||||
if ($this->isListenerFired($event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Currency::create([
|
||||
'name' => 'Kyrgyzstani som',
|
||||
'code' => 'KGS',
|
||||
'symbol' => 'С̲ ',
|
||||
'precision' => '2',
|
||||
'thousand_separator' => '.',
|
||||
'decimal_separator' => ','
|
||||
]);
|
||||
|
||||
// Update Crater app version
|
||||
Setting::setSetting('version', static::VERSION);
|
||||
}
|
||||
}
|
||||
36
app/Listeners/Updates/v3/Version310.php
Normal file
36
app/Listeners/Updates/v3/Version310.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Listeners\Updates\v3;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Crater\Listeners\Updates\Listener;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Crater\Events\UpdateFinished;
|
||||
|
||||
class Version310
|
||||
{
|
||||
/**
|
||||
* Create the event listener.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param object $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(UpdateFinished $event)
|
||||
{
|
||||
\Schema::table('expenses', function (Blueprint $table) {
|
||||
$table->integer('user_id')->unsigned()->nullable();
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -12,17 +12,14 @@ class EstimatePdf extends Mailable
|
||||
|
||||
public $data = [];
|
||||
|
||||
public $notificationEmail = '';
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($data, $notificationEmail)
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
$this->notificationEmail = $notificationEmail;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -32,6 +29,9 @@ class EstimatePdf extends Mailable
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->from($this->notificationEmail)->markdown('emails.send.estimate', ['data', $this->data]);
|
||||
$company = $this->data['company']['name'];
|
||||
|
||||
return $this->subject("Estimate from $company")
|
||||
->markdown('emails.send.estimate', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,6 +31,8 @@ class EstimateViewed extends Mailable
|
||||
public function build()
|
||||
{
|
||||
$email = $this->data['user']['email'];
|
||||
return $this->from($email)->markdown('emails.viewed.estimate', ['data', $this->data]);
|
||||
$name = $this->data['user']['name'];
|
||||
return $this->from($email, $name)
|
||||
->markdown('emails.viewed.estimate', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,23 +6,20 @@ use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
|
||||
class invoicePdf extends Mailable
|
||||
class InvoicePdf extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public $data = [];
|
||||
|
||||
public $notificationEmail = '';
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($data, $notificationEmail)
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
$this->notificationEmail = $notificationEmail;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -32,6 +29,9 @@ class invoicePdf extends Mailable
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->from($this->notificationEmail)->markdown('emails.send.invoice', ['data', $this->data]);
|
||||
$company = $this->data['company']['name'];
|
||||
|
||||
return $this->subject("Invoice from $company")
|
||||
->markdown('emails.send.invoice', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
@ -31,6 +31,8 @@ class InvoiceViewed extends Mailable
|
||||
public function build()
|
||||
{
|
||||
$email = $this->data['user']['email'];
|
||||
return $this->from($email)->markdown('emails.viewed.invoice', ['data', $this->data]);
|
||||
$name = $this->data['user']['name'];
|
||||
return $this->from($email, $name)
|
||||
->markdown('emails.viewed.invoice', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
|
||||
38
app/Mail/PaymentPdf.php
Normal file
38
app/Mail/PaymentPdf.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PaymentPdf extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public $data = [];
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$company = $this->data['company']['name'];
|
||||
|
||||
return $this->subject("Payment from $company")
|
||||
->markdown('emails.send.payment', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
38
app/Mail/TestMail.php
Normal file
38
app/Mail/TestMail.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
namespace Crater\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
|
||||
class TestMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
public $subject;
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @param $subject
|
||||
* @param $message
|
||||
*/
|
||||
public function __construct($subject, $message)
|
||||
{
|
||||
$this->subject = $subject;
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->subject($this->subject)->markdown('emails.test')->with([
|
||||
'my_message' => $this->message
|
||||
]);
|
||||
}
|
||||
}
|
||||
@ -5,6 +5,7 @@ use Crater\User;
|
||||
use Crater\Invoice;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Crater\PaymentMethod;
|
||||
|
||||
class Payment extends Model
|
||||
{
|
||||
@ -19,9 +20,11 @@ class Payment extends Model
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'invoice_id',
|
||||
'payment_method_id',
|
||||
'payment_date',
|
||||
'company_id',
|
||||
'notes',
|
||||
'unique_hash',
|
||||
'payment_number',
|
||||
'payment_mode',
|
||||
'amount'
|
||||
@ -32,10 +35,34 @@ class Payment extends Model
|
||||
'formattedPaymentDate'
|
||||
];
|
||||
|
||||
public static function getNextPaymentNumber()
|
||||
|
||||
private function strposX($haystack, $needle, $number)
|
||||
{
|
||||
if ($number == '1') {
|
||||
return strpos($haystack, $needle);
|
||||
} elseif ($number > '1') {
|
||||
return strpos(
|
||||
$haystack,
|
||||
$needle,
|
||||
$this->strposX($haystack, $needle, $number - 1) + strlen($needle)
|
||||
);
|
||||
} else {
|
||||
return error_log('Error: Value for parameter $number is out of range');
|
||||
}
|
||||
}
|
||||
|
||||
public function getPaymentNumAttribute()
|
||||
{
|
||||
$position = $this->strposX($this->payment_number, "-", 1) + 1;
|
||||
return substr($this->payment_number, $position);
|
||||
}
|
||||
|
||||
public static function getNextPaymentNumber($value)
|
||||
{
|
||||
// Get the last created order
|
||||
$payment = Payment::orderBy('created_at', 'desc')->first();
|
||||
$payment = Payment::where('payment_number', 'LIKE', $value . '-%')
|
||||
->orderBy('created_at', 'desc')
|
||||
->first();
|
||||
if (!$payment) {
|
||||
// We get here if there is no order at all
|
||||
// If there is no number set it to 0, which will be 1 at the end.
|
||||
@ -54,6 +81,12 @@ class Payment extends Model
|
||||
return sprintf('%06d', intval($number) + 1);
|
||||
}
|
||||
|
||||
public function getPaymentPrefixAttribute ()
|
||||
{
|
||||
$prefix= explode("-",$this->payment_number)[0];
|
||||
return $prefix;
|
||||
}
|
||||
|
||||
public function invoice()
|
||||
{
|
||||
return $this->belongsTo(Invoice::class);
|
||||
@ -64,6 +97,11 @@ class Payment extends Model
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function paymentMethod()
|
||||
{
|
||||
return $this->belongsTo(PaymentMethod::class);
|
||||
}
|
||||
|
||||
public function getFormattedCreatedAtAttribute($value)
|
||||
{
|
||||
$dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id);
|
||||
@ -92,9 +130,9 @@ class Payment extends Model
|
||||
return $query->where('payments.payment_number', 'LIKE', '%'.$paymentNumber.'%');
|
||||
}
|
||||
|
||||
public function scopePaymentMode($query, $paymentMode)
|
||||
public function scopePaymentMethod($query, $paymentMethodId)
|
||||
{
|
||||
return $query->where('payments.payment_mode', $paymentMode);
|
||||
return $query->where('payments.payment_method_id', $paymentMethodId);
|
||||
}
|
||||
|
||||
public function scopeApplyFilters($query, array $filters)
|
||||
@ -109,8 +147,8 @@ class Payment extends Model
|
||||
$query->paymentNumber($filters->get('payment_number'));
|
||||
}
|
||||
|
||||
if ($filters->get('payment_mode')) {
|
||||
$query->paymentMode($filters->get('payment_mode'));
|
||||
if ($filters->get('payment_method_id')) {
|
||||
$query->paymentMethod($filters->get('payment_method_id'));
|
||||
}
|
||||
|
||||
if ($filters->get('customer_id')) {
|
||||
|
||||
25
app/PaymentMethod.php
Normal file
25
app/PaymentMethod.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Crater;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentMethod extends Model
|
||||
{
|
||||
protected $fillable = ['name', 'company_id'];
|
||||
|
||||
public function payments()
|
||||
{
|
||||
return $this->hasMany(Payment::class);
|
||||
}
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function scopeWhereCompany($query, $company_id)
|
||||
{
|
||||
$query->where('company_id', $company_id);
|
||||
}
|
||||
}
|
||||
@ -9,6 +9,10 @@ use Crater\Listeners\Updates\v1\Version110;
|
||||
use Crater\Listeners\Updates\v2\Version200;
|
||||
use Crater\Listeners\Updates\v2\Version201;
|
||||
use Crater\Listeners\Updates\v2\Version202;
|
||||
use Crater\Listeners\Updates\v2\Version210;
|
||||
use Crater\Listeners\Updates\v3\Version300;
|
||||
use Crater\Listeners\Updates\v3\Version301;
|
||||
use Crater\Listeners\Updates\v3\Version310;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
@ -23,6 +27,10 @@ class EventServiceProvider extends ServiceProvider
|
||||
Version200::class,
|
||||
Version201::class,
|
||||
Version202::class,
|
||||
Version210::class,
|
||||
Version300::class,
|
||||
Version301::class,
|
||||
Version310::class,
|
||||
],
|
||||
Registered::class => [
|
||||
SendEmailVerificationNotification::class,
|
||||
|
||||
@ -38,7 +38,7 @@ class EnvironmentManager
|
||||
'DB_PORT='.config('database.connections.'.config('database.default').'.port')."\n".
|
||||
'DB_DATABASE='.config('database.connections.'.config('database.default').'.database')."\n".
|
||||
'DB_USERNAME='.config('database.connections.'.config('database.default').'.username')."\n".
|
||||
'DB_PASSWORD='.config('database.connections.'.config('database.default').'.password')."\n\n";
|
||||
'DB_PASSWORD="'.config('database.connections.'.config('database.default').'.password')."\"\n\n";
|
||||
|
||||
$newDatabaseData =
|
||||
'DB_CONNECTION='.$request->database_connection."\n".
|
||||
@ -46,7 +46,7 @@ class EnvironmentManager
|
||||
'DB_PORT='.$request->database_port."\n".
|
||||
'DB_DATABASE='.$request->database_name."\n".
|
||||
'DB_USERNAME='.$request->database_username."\n".
|
||||
'DB_PASSWORD='.$request->database_password."\n\n";
|
||||
'DB_PASSWORD="'.$request->database_password."\"\n\n";
|
||||
|
||||
try {
|
||||
|
||||
@ -61,7 +61,7 @@ class EnvironmentManager
|
||||
} catch (Exception $e) {
|
||||
|
||||
return [
|
||||
'error' => $e->getMessage()
|
||||
'error_message' => $e->getMessage()
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,13 @@ class Updater
|
||||
$data = null;
|
||||
$path = null;
|
||||
|
||||
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update';
|
||||
if(env('APP_ENV') === 'development')
|
||||
{
|
||||
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update&is_dev=1';
|
||||
} else {
|
||||
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update';
|
||||
}
|
||||
|
||||
|
||||
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
||||
|
||||
@ -115,7 +121,12 @@ class Updater
|
||||
public static function checkForUpdate()
|
||||
{
|
||||
$data = null;
|
||||
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update';
|
||||
if(env('APP_ENV') === 'development')
|
||||
{
|
||||
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update&is_dev=1';
|
||||
} else {
|
||||
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update';
|
||||
}
|
||||
|
||||
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
||||
|
||||
|
||||
@ -41,10 +41,14 @@ function clean_slug($string)
|
||||
* @param $money
|
||||
* @return formated_money
|
||||
*/
|
||||
function format_money_pdf($money)
|
||||
function format_money_pdf($money, $currency = null)
|
||||
{
|
||||
$money = $money / 100;
|
||||
$currency = Currency::findOrFail(CompanySetting::getSetting('currency', 1));
|
||||
|
||||
if (!$currency) {
|
||||
$currency = Currency::findOrFail(CompanySetting::getSetting('currency', 1));
|
||||
}
|
||||
|
||||
$format_money = number_format(
|
||||
$money,
|
||||
$currency->precision,
|
||||
|
||||
26
app/Unit.php
Normal file
26
app/Unit.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Crater;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Crater\Item;
|
||||
|
||||
class Unit extends Model
|
||||
{
|
||||
protected $fillable = ['name', 'company_id'];
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany(Item::class);
|
||||
}
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function scopeWhereCompany($query, $company_id)
|
||||
{
|
||||
$query->where('company_id', $company_id);
|
||||
}
|
||||
}
|
||||
@ -9,6 +9,7 @@ use carbon\carbon;
|
||||
use Crater\MemberLoan;
|
||||
use Crater\Address;
|
||||
use Crater\Payment;
|
||||
use Crater\Expense;
|
||||
use Crater\Company;
|
||||
use Crater\Notifications\MailResetPasswordNotification;
|
||||
use Spatie\MediaLibrary\HasMedia\HasMedia;
|
||||
@ -105,6 +106,11 @@ class User extends Authenticatable implements HasMedia
|
||||
return $this->hasMany(Address::class);
|
||||
}
|
||||
|
||||
public function expenses()
|
||||
{
|
||||
return $this->hasMany(Expense::class);
|
||||
}
|
||||
|
||||
public function billingAddress()
|
||||
{
|
||||
return $this->hasOne(Address::class)->where('type', Address::BILLING_TYPE);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "laravel/laravel",
|
||||
"description": "The Laravel Framework.",
|
||||
"name": "bytefury/crater",
|
||||
"description": "Free & Open Source Invoice App for Freelancers & Small Businesses. https://craterapp.com",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"laravel"
|
||||
@ -53,11 +53,20 @@
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"scripts": {
|
||||
"initial-setup": [
|
||||
"test -f .env || (cp .env.example .env; php artisan key:generate 2>/dev/null; exit 0)"
|
||||
],
|
||||
"pre-install-cmd": [
|
||||
"@initial-setup"
|
||||
],
|
||||
"pre-update-cmd": [
|
||||
"@initial-setup"
|
||||
],
|
||||
"post-root-package-install": [
|
||||
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
"@initial-setup"
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"php artisan key:generate --ansi"
|
||||
"@initial-setup"
|
||||
],
|
||||
"post-autoload-dump": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
|
||||
@ -9,6 +9,6 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'version' => '2.0.2',
|
||||
'version' => '3.0.0',
|
||||
|
||||
];
|
||||
|
||||
244
config/dompdf.php
Normal file
244
config/dompdf.php
Normal file
@ -0,0 +1,244 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set some default values. It is possible to add all defines that can be set
|
||||
| in dompdf_config.inc.php. You can also override the entire config file.
|
||||
|
|
||||
*/
|
||||
'show_warnings' => false, // Throw an Exception on warnings from dompdf
|
||||
'orientation' => 'portrait',
|
||||
'defines' => array(
|
||||
/**
|
||||
* The location of the DOMPDF font directory
|
||||
*
|
||||
* The location of the directory where DOMPDF will store fonts and font metrics
|
||||
* Note: This directory must exist and be writable by the webserver process.
|
||||
* *Please note the trailing slash.*
|
||||
*
|
||||
* Notes regarding fonts:
|
||||
* Additional .afm font metrics can be added by executing load_font.php from command line.
|
||||
*
|
||||
* Only the original "Base 14 fonts" are present on all pdf viewers. Additional fonts must
|
||||
* be embedded in the pdf file or the PDF may not display correctly. This can significantly
|
||||
* increase file size unless font subsetting is enabled. Before embedding a font please
|
||||
* review your rights under the font license.
|
||||
*
|
||||
* Any font specification in the source HTML is translated to the closest font available
|
||||
* in the font directory.
|
||||
*
|
||||
* The pdf standard "Base 14 fonts" are:
|
||||
* Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique,
|
||||
* Helvetica, Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique,
|
||||
* Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic,
|
||||
* Symbol, ZapfDingbats.
|
||||
*/
|
||||
"font_dir" => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
|
||||
|
||||
/**
|
||||
* The location of the DOMPDF font cache directory
|
||||
*
|
||||
* This directory contains the cached font metrics for the fonts used by DOMPDF.
|
||||
* This directory can be the same as DOMPDF_FONT_DIR
|
||||
*
|
||||
* Note: This directory must exist and be writable by the webserver process.
|
||||
*/
|
||||
"font_cache" => storage_path('fonts/'),
|
||||
|
||||
/**
|
||||
* The location of a temporary directory.
|
||||
*
|
||||
* The directory specified must be writeable by the webserver process.
|
||||
* The temporary directory is required to download remote images and when
|
||||
* using the PFDLib back end.
|
||||
*/
|
||||
"temp_dir" => sys_get_temp_dir(),
|
||||
|
||||
/**
|
||||
* ==== IMPORTANT ====
|
||||
*
|
||||
* dompdf's "chroot": Prevents dompdf from accessing system files or other
|
||||
* files on the webserver. All local files opened by dompdf must be in a
|
||||
* subdirectory of this directory. DO NOT set it to '/' since this could
|
||||
* allow an attacker to use dompdf to read any files on the server. This
|
||||
* should be an absolute path.
|
||||
* This is only checked on command line call by dompdf.php, but not by
|
||||
* direct class use like:
|
||||
* $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output();
|
||||
*/
|
||||
"chroot" => realpath(base_path()),
|
||||
|
||||
/**
|
||||
* Whether to enable font subsetting or not.
|
||||
*/
|
||||
"enable_font_subsetting" => false,
|
||||
|
||||
/**
|
||||
* The PDF rendering backend to use
|
||||
*
|
||||
* Valid settings are 'PDFLib', 'CPDF' (the bundled R&OS PDF class), 'GD' and
|
||||
* 'auto'. 'auto' will look for PDFLib and use it if found, or if not it will
|
||||
* fall back on CPDF. 'GD' renders PDFs to graphic files. {@link
|
||||
* Canvas_Factory} ultimately determines which rendering class to instantiate
|
||||
* based on this setting.
|
||||
*
|
||||
* Both PDFLib & CPDF rendering backends provide sufficient rendering
|
||||
* capabilities for dompdf, however additional features (e.g. object,
|
||||
* image and font support, etc.) differ between backends. Please see
|
||||
* {@link PDFLib_Adapter} for more information on the PDFLib backend
|
||||
* and {@link CPDF_Adapter} and lib/class.pdf.php for more information
|
||||
* on CPDF. Also see the documentation for each backend at the links
|
||||
* below.
|
||||
*
|
||||
* The GD rendering backend is a little different than PDFLib and
|
||||
* CPDF. Several features of CPDF and PDFLib are not supported or do
|
||||
* not make any sense when creating image files. For example,
|
||||
* multiple pages are not supported, nor are PDF 'objects'. Have a
|
||||
* look at {@link GD_Adapter} for more information. GD support is
|
||||
* experimental, so use it at your own risk.
|
||||
*
|
||||
* @link http://www.pdflib.com
|
||||
* @link http://www.ros.co.nz/pdf
|
||||
* @link http://www.php.net/image
|
||||
*/
|
||||
"pdf_backend" => "CPDF",
|
||||
|
||||
/**
|
||||
* PDFlib license key
|
||||
*
|
||||
* If you are using a licensed, commercial version of PDFlib, specify
|
||||
* your license key here. If you are using PDFlib-Lite or are evaluating
|
||||
* the commercial version of PDFlib, comment out this setting.
|
||||
*
|
||||
* @link http://www.pdflib.com
|
||||
*
|
||||
* If pdflib present in web server and auto or selected explicitely above,
|
||||
* a real license code must exist!
|
||||
*/
|
||||
//"DOMPDF_PDFLIB_LICENSE" => "your license key here",
|
||||
|
||||
/**
|
||||
* html target media view which should be rendered into pdf.
|
||||
* List of types and parsing rules for future extensions:
|
||||
* http://www.w3.org/TR/REC-html40/types.html
|
||||
* screen, tty, tv, projection, handheld, print, braille, aural, all
|
||||
* Note: aural is deprecated in CSS 2.1 because it is replaced by speech in CSS 3.
|
||||
* Note, even though the generated pdf file is intended for print output,
|
||||
* the desired content might be different (e.g. screen or projection view of html file).
|
||||
* Therefore allow specification of content here.
|
||||
*/
|
||||
"default_media_type" => "screen",
|
||||
|
||||
/**
|
||||
* The default paper size.
|
||||
*
|
||||
* North America standard is "letter"; other countries generally "a4"
|
||||
*
|
||||
* @see CPDF_Adapter::PAPER_SIZES for valid sizes ('letter', 'legal', 'A4', etc.)
|
||||
*/
|
||||
"default_paper_size" => "a4",
|
||||
|
||||
/**
|
||||
* The default font family
|
||||
*
|
||||
* Used if no suitable fonts can be found. This must exist in the font folder.
|
||||
* @var string
|
||||
*/
|
||||
"default_font" => "DejaVu Sans",
|
||||
|
||||
/**
|
||||
* Image DPI setting
|
||||
*
|
||||
* This setting determines the default DPI setting for images and fonts. The
|
||||
* DPI may be overridden for inline images by explictly setting the
|
||||
* image's width & height style attributes (i.e. if the image's native
|
||||
* width is 600 pixels and you specify the image's width as 72 points,
|
||||
* the image will have a DPI of 600 in the rendered PDF. The DPI of
|
||||
* background images can not be overridden and is controlled entirely
|
||||
* via this parameter.
|
||||
*
|
||||
* For the purposes of DOMPDF, pixels per inch (PPI) = dots per inch (DPI).
|
||||
* If a size in html is given as px (or without unit as image size),
|
||||
* this tells the corresponding size in pt.
|
||||
* This adjusts the relative sizes to be similar to the rendering of the
|
||||
* html page in a reference browser.
|
||||
*
|
||||
* In pdf, always 1 pt = 1/72 inch
|
||||
*
|
||||
* Rendering resolution of various browsers in px per inch:
|
||||
* Windows Firefox and Internet Explorer:
|
||||
* SystemControl->Display properties->FontResolution: Default:96, largefonts:120, custom:?
|
||||
* Linux Firefox:
|
||||
* about:config *resolution: Default:96
|
||||
* (xorg screen dimension in mm and Desktop font dpi settings are ignored)
|
||||
*
|
||||
* Take care about extra font/image zoom factor of browser.
|
||||
*
|
||||
* In images, <img> size in pixel attribute, img css style, are overriding
|
||||
* the real image dimension in px for rendering.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
"dpi" => 96,
|
||||
|
||||
/**
|
||||
* Enable inline PHP
|
||||
*
|
||||
* If this setting is set to true then DOMPDF will automatically evaluate
|
||||
* inline PHP contained within <script type="text/php"> ... </script> tags.
|
||||
*
|
||||
* Enabling this for documents you do not trust (e.g. arbitrary remote html
|
||||
* pages) is a security risk. Set this option to false if you wish to process
|
||||
* untrusted documents.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
"enable_php" => false,
|
||||
|
||||
/**
|
||||
* Enable inline Javascript
|
||||
*
|
||||
* If this setting is set to true then DOMPDF will automatically insert
|
||||
* JavaScript code contained within <script type="text/javascript"> ... </script> tags.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
"enable_javascript" => true,
|
||||
|
||||
/**
|
||||
* Enable remote file access
|
||||
*
|
||||
* If this setting is set to true, DOMPDF will access remote sites for
|
||||
* images and CSS files as required.
|
||||
* This is required for part of test case www/test/image_variants.html through www/examples.php
|
||||
*
|
||||
* Attention!
|
||||
* This can be a security risk, in particular in combination with DOMPDF_ENABLE_PHP and
|
||||
* allowing remote access to dompdf.php or on allowing remote html code to be passed to
|
||||
* $dompdf = new DOMPDF(, $dompdf->load_html(...,
|
||||
* This allows anonymous users to download legally doubtful internet content which on
|
||||
* tracing back appears to being downloaded by your server, or allows malicious php code
|
||||
* in remote html pages to be executed by your server with your account privileges.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
"enable_remote" => true,
|
||||
|
||||
/**
|
||||
* A ratio applied to the fonts height to be more like browsers' line height
|
||||
*/
|
||||
"font_height_ratio" => 1.1,
|
||||
|
||||
/**
|
||||
* Use the more-than-experimental HTML5 Lib parser
|
||||
*/
|
||||
"enable_html5_parser" => true,
|
||||
),
|
||||
|
||||
|
||||
);
|
||||
34
database/migrations/2017_04_11_064308_create_units_table.php
Normal file
34
database/migrations/2017_04_11_064308_create_units_table.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUnitsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('units', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('units');
|
||||
}
|
||||
}
|
||||
@ -21,6 +21,8 @@ class CreateItemsTable extends Migration
|
||||
$table->unsignedBigInteger('price');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->integer('unit_id')->unsigned()->nullable();
|
||||
$table->foreign('unit_id')->references('id')->on('units')->onDelete('cascade');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@ -30,6 +30,6 @@ class CreateExpenseCategoriesTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('expenses_categories');
|
||||
Schema::dropIfExists('expense_categories');
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,6 +23,8 @@ class CreateExpensesTable extends Migration
|
||||
$table->foreign('expense_category_id')->references('id')->on('expense_categories')->onDelete('cascade');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->integer('user_id')->unsigned()->nullable();
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@ -39,6 +39,6 @@ class CreateAddressesTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('address');
|
||||
Schema::dropIfExists('addresses');
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaymentMethodsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('payment_methods', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('payment_methods');
|
||||
}
|
||||
}
|
||||
@ -16,16 +16,18 @@ class CreatePaymentsTable extends Migration
|
||||
Schema::create('payments', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('payment_number');
|
||||
$table->string('payment_mode')->nullable();
|
||||
$table->date('payment_date');
|
||||
$table->text('notes')->nullable();
|
||||
$table->unsignedBigInteger('amount');
|
||||
$table->string('unique_hash')->nullable();
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->integer('invoice_id')->unsigned()->nullable();
|
||||
$table->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade');
|
||||
$table->integer('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->integer('payment_method_id')->unsigned()->nullable();
|
||||
$table->foreign('payment_method_id')->references('id')->on('payment_methods')->onDelete('cascade');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@ -20,9 +20,9 @@ class CreateMediaTable extends Migration
|
||||
$table->string('mime_type')->nullable();
|
||||
$table->string('disk');
|
||||
$table->unsignedInteger('size');
|
||||
$table->json('manipulations');
|
||||
$table->json('custom_properties');
|
||||
$table->json('responsive_images');
|
||||
$table->text('manipulations');
|
||||
$table->text('custom_properties');
|
||||
$table->text('responsive_images');
|
||||
$table->unsignedInteger('order_column')->nullable();
|
||||
$table->nullableTimestamps();
|
||||
});
|
||||
|
||||
@ -524,6 +524,22 @@ class CurrenciesTableSeeder extends Seeder
|
||||
'thousand_separator' => '.',
|
||||
'decimal_separator' => ','
|
||||
],
|
||||
[
|
||||
'name' => 'Serbian Dinar',
|
||||
'code' => 'RSD',
|
||||
'symbol' => 'RSD',
|
||||
'precision' => '2',
|
||||
'thousand_separator' => '.',
|
||||
'decimal_separator' => ','
|
||||
],
|
||||
[
|
||||
'name' => 'Kyrgyzstani som',
|
||||
'code' => 'KGS',
|
||||
'symbol' => 'С̲ ',
|
||||
'precision' => '2',
|
||||
'thousand_separator' => '.',
|
||||
'decimal_separator' => ','
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($currencies as $currency) {
|
||||
|
||||
20
database/seeds/PaymentMethodSeeder.php
Normal file
20
database/seeds/PaymentMethodSeeder.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Crater\PaymentMethod;
|
||||
|
||||
class PaymentMethodSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
PaymentMethod::create(['name' => 'Cash', 'company_id' => 1]);
|
||||
PaymentMethod::create(['name' => 'Check', 'company_id' => 1]);
|
||||
PaymentMethod::create(['name' => 'Credit Card', 'company_id' => 1]);
|
||||
PaymentMethod::create(['name' => 'Bank Transfer', 'company_id' => 1]);
|
||||
}
|
||||
}
|
||||
27
database/seeds/UnitSeeder.php
Normal file
27
database/seeds/UnitSeeder.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Crater\Unit;
|
||||
|
||||
class UnitSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
Unit::create(['name' => 'box', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'cm', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'dz', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'ft', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'g', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'in', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'kg', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'km', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'lb', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'mg', 'company_id' => 1]);
|
||||
Unit::create(['name' => 'pc', 'company_id' => 1]);
|
||||
}
|
||||
}
|
||||
40
docker-compose.yaml.example
Normal file
40
docker-compose.yaml.example
Normal file
@ -0,0 +1,40 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
|
||||
web:
|
||||
image: nginx
|
||||
depends_on:
|
||||
- php
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- app:/app
|
||||
restart: always
|
||||
|
||||
php:
|
||||
build: .
|
||||
depends_on:
|
||||
- db
|
||||
expose:
|
||||
- 9000
|
||||
volumes:
|
||||
- app:/app
|
||||
restart: always
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
restart: always
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_USER: crater
|
||||
MYSQL_PASSWORD: crater
|
||||
MYSQL_DATABASE: crater
|
||||
MYSQL_ROOT_PASSWORD: crater
|
||||
|
||||
volumes:
|
||||
app:
|
||||
db:
|
||||
|
||||
53
nginx.conf
Normal file
53
nginx.conf
Normal file
@ -0,0 +1,53 @@
|
||||
worker_processes 8;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 4096;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
root /app/public;
|
||||
index index.php;
|
||||
charset utf-8;
|
||||
|
||||
access_log off;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header X-Robots-Tag none;
|
||||
add_header Content-Security-Policy "frame-ancestors 'self'";
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
}
|
||||
5531
package-lock.json
generated
5531
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@ -8,19 +8,16 @@
|
||||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^8.2.3",
|
||||
"browser-sync": "^2.26.7",
|
||||
"browser-sync-webpack-plugin": "^2.0.1",
|
||||
"babel-eslint": "^8.2.6",
|
||||
"cross-env": "^5.1",
|
||||
"css-loader": "^0.28.8",
|
||||
"eslint": "^4.14.0",
|
||||
"eslint-config-standard": "^11.0.0-beta.0",
|
||||
"eslint-plugin-import": "^2.11.0",
|
||||
"eslint-plugin-node": "^5.2.1",
|
||||
"eslint-plugin-promise": "^3.6.0",
|
||||
"eslint-plugin-standard": "^3.0.1",
|
||||
"eslint-plugin-vue": "^4.0.1",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-config-prettier": "^6.10.1",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"eslint-plugin-vue": "^4.7.1",
|
||||
"laravel-mix": "^5.0.0",
|
||||
"prettier": "^2.0.2",
|
||||
"resolve-url-loader": "3.1.0",
|
||||
"sass": "^1.22.9",
|
||||
"sass-loader": "7.*",
|
||||
@ -35,19 +32,14 @@
|
||||
"axios": "^0.19",
|
||||
"bootstrap": "^4.1.0",
|
||||
"chart.js": "^2.7.3",
|
||||
"cross-env": "^5.1.4",
|
||||
"easy-pie-chart": "^2.1.7",
|
||||
"fs": "0.0.1-security",
|
||||
"guid": "0.0.12",
|
||||
"lodash": "^4.17.13",
|
||||
"moment": "^2.18.1",
|
||||
"npm": "^6.4.1",
|
||||
"popper.js": "^1.12.9",
|
||||
"sweet-modal-vue": "^2.0.0",
|
||||
"sweetalert": "^2.1.2",
|
||||
"toastr": "^2.1.4",
|
||||
"upgrade": "^1.1.0",
|
||||
"v-money": "^0.8.1",
|
||||
"v-tooltip": "^2.0.2",
|
||||
"vue": "^2.5.17",
|
||||
"vue-avatar-cropper": "^1.0.5",
|
||||
"vue-i18n": "^8.14.0",
|
||||
|
||||
2
public/assets/css/crater.css
vendored
2
public/assets/css/crater.css
vendored
File diff suppressed because one or more lines are too long
1
public/assets/css/crater.css.map
Normal file
1
public/assets/css/crater.css.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"/assets/js/app.js": "/assets/js/app.js?id=36ab3529ebffd4f0624b",
|
||||
"/assets/css/crater.css": "/assets/css/crater.css?id=108e3a8d009e7d38018c"
|
||||
"/assets/js/app.js": "/assets/js/app.js?id=08d4f6357dbe7738effa",
|
||||
"/assets/css/crater.css": "/assets/css/crater.css?id=a00ceebbb86dd82a024b"
|
||||
}
|
||||
|
||||
10
readme.md
10
readme.md
@ -29,7 +29,7 @@ Web Application is made using Laravel & VueJS while the Mobile Apps are built us
|
||||
|
||||
## Mobile Apps
|
||||
- [Android](https://play.google.com/store/apps/details?id=com.craterapp.app)
|
||||
- IOS - Coming Soon
|
||||
- [IOS](https://apps.apple.com/app/id1489169767)
|
||||
- [Source](https://github.com/bytefury/crater-mobile)
|
||||
|
||||
## Discord
|
||||
@ -60,8 +60,14 @@ Join the Crater discord server to discuss:
|
||||
## Credits
|
||||
Crater is a product of [Bytefury](https://bytefury.com)
|
||||
|
||||
**Special thanks to:**
|
||||
* [Birkhoff Lee](https://github.com/BirkhoffLee)
|
||||
* [Hassan A. Ba Abdullah](https://github.com/hsnapps)
|
||||
|
||||
## Translate
|
||||
Help us translate on [Transifex](https://www.transifex.com/bytefury/crater-invoice)
|
||||
Help us translate or suggest changes to existing languages if you find any mistakes by creating a new PR.
|
||||
|
||||
Here's the [english-version](https://github.com/bytefury/crater/blob/master/resources/assets/js/plugins/en.json) json file which you can use as a reference.
|
||||
|
||||
## License
|
||||
Crater is released under the Attribution Assurance License.
|
||||
|
||||
24
resources/assets/js/bootstrap.js
vendored
24
resources/assets/js/bootstrap.js
vendored
@ -12,6 +12,7 @@ import CustomerModal from './components/base/modal/CustomerModal.vue'
|
||||
import TaxTypeModal from './components/base/modal/TaxTypeModal.vue'
|
||||
import CategoryModal from './components/base/modal/CategoryModal.vue'
|
||||
import money from 'v-money'
|
||||
import VTooltip from 'v-tooltip'
|
||||
|
||||
/**
|
||||
* Global css plugins
|
||||
@ -87,17 +88,27 @@ window.axios.interceptors.request.use(function (config) {
|
||||
|
||||
global.axios.interceptors.response.use(undefined, function (err) {
|
||||
// Do something with request error
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!err.response) {
|
||||
window.toastr['error']('Network error: Please check your internet connection or wait until servers are back online')
|
||||
console.log('Network error: Please check your internet connection.')
|
||||
} else {
|
||||
console.log(err.response)
|
||||
if (err.response.data.error === 'invalid_credentials') {
|
||||
window.toastr['error']('Invalid Credentials')
|
||||
}
|
||||
if (err.response.data && (err.response.statusText === 'Unauthorized' || err.response.data === ' Unauthorized.')) {
|
||||
// Unauthorized and log out
|
||||
window.toastr['error']((err.response.data.message) ? err.response.data.message : 'Unauthorized')
|
||||
store.dispatch('auth/logout', true)
|
||||
} else if (err.response.data.errors) {
|
||||
// Show a notification per error
|
||||
const errors = JSON.parse(JSON.stringify(err.response.data.errors))
|
||||
for (const i in errors) {
|
||||
window.toastr['error'](errors[i])
|
||||
}
|
||||
} else {
|
||||
throw err
|
||||
// Unknown error
|
||||
window.toastr['error']((err.response.data.message) ? err.response.data.message : 'Unknown error occurred')
|
||||
}
|
||||
})
|
||||
}
|
||||
return Promise.reject(err)
|
||||
})
|
||||
|
||||
/**
|
||||
@ -107,6 +118,7 @@ window.toastr = require('toastr')
|
||||
|
||||
Vue.use(VueRouter)
|
||||
Vue.use(Vuex)
|
||||
Vue.use(VTooltip)
|
||||
|
||||
// register directive v-money and component <money>
|
||||
Vue.use(money, {precision: 2})
|
||||
|
||||
71
resources/assets/js/components/base/BasePrefixInput.vue
Normal file
71
resources/assets/js/components/base/BasePrefixInput.vue
Normal file
@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<div class="base-prefix-input" @click="focusInput">
|
||||
<font-awesome-icon v-if="icon" :icon="icon" class="icon" />
|
||||
<p class="prefix-label"><span class="mr-1">{{ prefix }}</span>-</p>
|
||||
<input
|
||||
ref="basePrefixInput"
|
||||
v-model="inputValue"
|
||||
:type="type"
|
||||
class="prefix-input-field"
|
||||
@input="handleInput"
|
||||
@change="handleChange"
|
||||
@keyup="handleKeyupEnter"
|
||||
@keydown="handleKeyDownEnter"
|
||||
@blur="handleFocusOut"
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
prefix: {
|
||||
type: String,
|
||||
default: null,
|
||||
required: true
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
value: {
|
||||
type: [String, Number, File],
|
||||
default: ''
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
inputValue: this.value
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'value' () {
|
||||
this.inputValue = this.value
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
focusInput () {
|
||||
this.$refs.basePrefixInput.focus()
|
||||
},
|
||||
handleInput (e) {
|
||||
this.$emit('input', this.inputValue)
|
||||
},
|
||||
handleChange (e) {
|
||||
this.$emit('change', this.inputValue)
|
||||
},
|
||||
handleKeyupEnter (e) {
|
||||
this.$emit('keyup', this.inputValue)
|
||||
},
|
||||
handleKeyDownEnter (e) {
|
||||
this.$emit('keydown', e, this.inputValue)
|
||||
},
|
||||
handleFocusOut (e) {
|
||||
this.$emit('blur', this.inputValue)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -8,6 +8,7 @@ import BaseTextArea from './BaseTextArea.vue'
|
||||
import BaseSelect from './base-select/BaseSelect.vue'
|
||||
import BaseLoader from './BaseLoader.vue'
|
||||
import BaseCustomerSelect from './BaseCustomerSelect.vue'
|
||||
import BasePrefixInput from './BasePrefixInput.vue'
|
||||
|
||||
import BasePopup from './popup/BasePopup.vue'
|
||||
import CustomerSelectPopup from './popup/CustomerSelectPopup.vue'
|
||||
@ -23,6 +24,7 @@ Vue.component('base-input', BaseInput)
|
||||
Vue.component('base-switch', BaseSwitch)
|
||||
Vue.component('base-text-area', BaseTextArea)
|
||||
Vue.component('base-loader', BaseLoader)
|
||||
Vue.component('base-prefix-input', BasePrefixInput)
|
||||
|
||||
Vue.component('table-component', TableComponent)
|
||||
Vue.component('table-column', TableColumn)
|
||||
|
||||
@ -21,6 +21,9 @@ import EstimateTemplate from './EstimateTemplate'
|
||||
import InvoiceTemplate from './InvoiceTemplate'
|
||||
import CustomerModal from './CustomerModal'
|
||||
import CategoryModal from './CategoryModal'
|
||||
import PaymentMode from './PaymentModeModal'
|
||||
import ItemUnit from './ItemUnitModal'
|
||||
import MailTestModal from './MailTestModal'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -29,7 +32,10 @@ export default {
|
||||
EstimateTemplate,
|
||||
InvoiceTemplate,
|
||||
CustomerModal,
|
||||
CategoryModal
|
||||
CategoryModal,
|
||||
PaymentMode,
|
||||
ItemUnit,
|
||||
MailTestModal
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
@ -55,6 +55,7 @@
|
||||
v-model="currency"
|
||||
:options="currencies"
|
||||
:searchable="true"
|
||||
:allow-empty="false"
|
||||
:show-labels="false"
|
||||
:placeholder="$t('customers.select_currency')"
|
||||
label="name"
|
||||
@ -340,6 +341,7 @@ export default {
|
||||
mixins: [validationMixin],
|
||||
data () {
|
||||
return {
|
||||
isEdit: false,
|
||||
isLoading: false,
|
||||
countryList: [],
|
||||
billingCountry: null,
|
||||
@ -398,9 +400,22 @@ export default {
|
||||
...mapGetters('currency', [
|
||||
'defaultCurrency',
|
||||
'currencies'
|
||||
]),
|
||||
...mapGetters('modal', [
|
||||
'modalDataID',
|
||||
'modalData',
|
||||
'modalActive'
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
'modalDataID' (val) {
|
||||
if (val) {
|
||||
this.isEdit = true
|
||||
this.setData()
|
||||
} else {
|
||||
this.isEdit = false
|
||||
}
|
||||
},
|
||||
billingCountry () {
|
||||
if (this.billingCountry) {
|
||||
this.billing.country_id = this.billingCountry.id
|
||||
@ -418,6 +433,9 @@ export default {
|
||||
this.$refs.name.focus = true
|
||||
this.currency = this.defaultCurrency
|
||||
this.fetchCountry()
|
||||
if (this.modalDataID) {
|
||||
this.setData()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions('invoice', {
|
||||
@ -492,6 +510,24 @@ export default {
|
||||
this.formData.addresses = [{...this.shipping, type: 'shipping'}]
|
||||
return true
|
||||
},
|
||||
async setData () {
|
||||
this.formData.id = this.modalData.id
|
||||
this.formData.name = this.modalData.name
|
||||
this.formData.email = this.modalData.email
|
||||
this.formData.contact_name = this.modalData.contact_name
|
||||
this.formData.phone = this.modalData.phone
|
||||
this.formData.website = this.modalData.website
|
||||
this.currency = this.modalData.currency
|
||||
|
||||
if (this.modalData.billing_address) {
|
||||
this.billing = this.modalData.billing_address
|
||||
this.billingCountry = this.modalData.billing_address.country
|
||||
}
|
||||
if (this.modalData.shipping_address) {
|
||||
this.shipping = this.modalData.shipping_address
|
||||
this.shippingCountry = this.modalData.shipping_address.country
|
||||
}
|
||||
},
|
||||
async submitCustomerData () {
|
||||
this.$v.formData.$touch()
|
||||
|
||||
@ -509,14 +545,23 @@ export default {
|
||||
this.formData.currency_id = this.defaultCurrency.id
|
||||
}
|
||||
try {
|
||||
let response = await this.addCustomer(this.formData)
|
||||
let response = null
|
||||
if (this.modalDataID) {
|
||||
response = await this.updateCustomer(this.formData)
|
||||
} else {
|
||||
response = await this.addCustomer(this.formData)
|
||||
}
|
||||
if (response.data) {
|
||||
window.toastr['success'](this.$tc('customers.created_message'))
|
||||
if (this.modalDataID) {
|
||||
window.toastr['success'](this.$tc('customers.updated_message'))
|
||||
} else {
|
||||
window.toastr['success'](this.$tc('customers.created_message'))
|
||||
}
|
||||
this.isLoading = false
|
||||
if (this.$route.name === 'invoices.create') {
|
||||
if (this.$route.name === 'invoices.create' || this.$route.name === 'invoices.edit') {
|
||||
this.setInvoiceCustomer(response.data.customer.id)
|
||||
}
|
||||
if (this.$route.name === 'estimates.create') {
|
||||
if (this.$route.name === 'estimates.create' || this.$route.name === 'estimates.edit') {
|
||||
this.setEstimateCustomer(response.data.customer.id)
|
||||
}
|
||||
this.resetData()
|
||||
|
||||
@ -45,14 +45,34 @@
|
||||
<div class="col-sm-7">
|
||||
<base-select
|
||||
v-model="formData.unit"
|
||||
:options="units"
|
||||
:options="itemUnits"
|
||||
:searchable="true"
|
||||
:show-labels="false"
|
||||
label="name"
|
||||
>
|
||||
<div slot="afterList">
|
||||
<button type="button" class="list-add-button" @click="addItemUnit">
|
||||
<font-awesome-icon class="icon" icon="cart-plus" />
|
||||
<label>{{ $t('settings.customization.items.add_item_unit') }}</label>
|
||||
</button>
|
||||
</div>
|
||||
</base-select>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="isTexPerItem" class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('items.taxes') }}</label>
|
||||
<div class="col-sm-7">
|
||||
<base-select
|
||||
v-model="formData.taxes"
|
||||
:options="getTaxTypes"
|
||||
:searchable="true"
|
||||
:show-labels="false"
|
||||
:allow-empty="true"
|
||||
:multiple="true"
|
||||
label="tax_name"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('items.description') }}</label>
|
||||
<div class="col-sm-7">
|
||||
@ -124,11 +144,13 @@ export default {
|
||||
{ name: 'mg', value: 'mg' },
|
||||
{ name: 'pc', value: 'pc' }
|
||||
],
|
||||
taxes: [],
|
||||
formData: {
|
||||
name: null,
|
||||
price: null,
|
||||
description: null,
|
||||
unit: null
|
||||
unit: null,
|
||||
taxes: []
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -161,12 +183,28 @@ export default {
|
||||
this.formData.price = newValue * 100
|
||||
}
|
||||
},
|
||||
// itemUnits () {
|
||||
// return this.units
|
||||
// },
|
||||
...mapGetters('modal', [
|
||||
'modalDataID'
|
||||
'modalDataID',
|
||||
'modalData'
|
||||
]),
|
||||
...mapGetters('item', [
|
||||
'getItemById'
|
||||
])
|
||||
'getItemById',
|
||||
'itemUnits'
|
||||
]),
|
||||
...mapGetters('taxType', [
|
||||
'taxTypes'
|
||||
]),
|
||||
isTexPerItem () {
|
||||
return this.modalData.taxPerItem === 'YES'
|
||||
},
|
||||
getTaxTypes () {
|
||||
return this.taxTypes.map(tax => {
|
||||
return {...tax, tax_name: tax.name + ' (' + tax.percent + '%)'}
|
||||
})
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
modalDataID () {
|
||||
@ -179,12 +217,17 @@ export default {
|
||||
this.isEdit = true
|
||||
this.fetchEditData()
|
||||
}
|
||||
|
||||
if (this.isEdit) {
|
||||
this.loadEditData()
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.name.focus = true
|
||||
},
|
||||
methods: {
|
||||
...mapActions('modal', [
|
||||
'openModal',
|
||||
'closeModal',
|
||||
'resetModalData'
|
||||
]),
|
||||
@ -203,7 +246,6 @@ export default {
|
||||
unit: null,
|
||||
id: null
|
||||
}
|
||||
|
||||
this.$v.$reset()
|
||||
},
|
||||
fetchEditData () {
|
||||
@ -230,9 +272,20 @@ export default {
|
||||
if (this.isEdit) {
|
||||
response = await this.updateItem(this.formData)
|
||||
} else {
|
||||
response = await this.addItem(this.formData)
|
||||
let data = {
|
||||
...this.formData,
|
||||
taxes: this.formData.taxes.map(tax => {
|
||||
return {
|
||||
tax_type_id: tax.id,
|
||||
amount: ((this.formData.price * tax.percent) / 100),
|
||||
percent: tax.percent,
|
||||
name: tax.name,
|
||||
collective_tax: 0
|
||||
}
|
||||
})
|
||||
}
|
||||
response = await this.addItem(data)
|
||||
}
|
||||
|
||||
if (response.data) {
|
||||
window.toastr['success'](this.$tc('items.created_message'))
|
||||
this.setItem(response.data.item)
|
||||
@ -245,6 +298,12 @@ export default {
|
||||
}
|
||||
window.toastr['error'](response.data.error)
|
||||
},
|
||||
async addItemUnit () {
|
||||
this.openModal({
|
||||
'title': 'Add Item Unit',
|
||||
'componentName': 'ItemUnit'
|
||||
})
|
||||
},
|
||||
closeItemModal () {
|
||||
this.resetFormData()
|
||||
this.closeModal()
|
||||
|
||||
148
resources/assets/js/components/base/modal/ItemUnitModal.vue
Normal file
148
resources/assets/js/components/base/modal/ItemUnitModal.vue
Normal file
@ -0,0 +1,148 @@
|
||||
<template>
|
||||
<div class="item-unit-modal">
|
||||
<form action="" @submit.prevent="submitItemUnit">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('settings.customization.items.unit_name') }} <span class="required"> *</span></label>
|
||||
<div class="col-sm-7">
|
||||
<base-input
|
||||
ref="name"
|
||||
:invalid="$v.formData.name.$error"
|
||||
v-model="formData.name"
|
||||
type="text"
|
||||
@input="$v.formData.name.$touch()"
|
||||
/>
|
||||
<div v-if="$v.formData.name.$error">
|
||||
<span v-if="!$v.formData.name.required" class="form-group__message text-danger">{{ $tc('validation.required') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<base-button
|
||||
:outline="true"
|
||||
class="mr-3"
|
||||
color="theme"
|
||||
type="button"
|
||||
@click="closePaymentModeModal"
|
||||
>
|
||||
{{ $t('general.cancel') }}
|
||||
</base-button>
|
||||
<base-button
|
||||
:loading="isLoading"
|
||||
color="theme"
|
||||
icon="save"
|
||||
type="submit"
|
||||
>
|
||||
{{ !isEdit ? $t('general.save') : $t('general.update') }}
|
||||
</base-button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import { validationMixin } from 'vuelidate'
|
||||
const { required, minLength } = require('vuelidate/lib/validators')
|
||||
export default {
|
||||
mixins: [validationMixin],
|
||||
data () {
|
||||
return {
|
||||
isEdit: false,
|
||||
isLoading: false,
|
||||
formData: {
|
||||
id: null,
|
||||
name: null
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('modal', [
|
||||
'modalDataID',
|
||||
'modalData',
|
||||
'modalActive'
|
||||
])
|
||||
},
|
||||
validations: {
|
||||
formData: {
|
||||
name: {
|
||||
required,
|
||||
minLength: minLength(2)
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
this.$refs.name.focus = true
|
||||
if (this.modalDataID) {
|
||||
this.isEdit = true
|
||||
this.setData()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions('modal', [
|
||||
'closeModal',
|
||||
'resetModalData'
|
||||
]),
|
||||
...mapActions('item', [
|
||||
'addItemUnit',
|
||||
'updateItemUnit',
|
||||
'fatchItemUnit'
|
||||
]),
|
||||
resetFormData () {
|
||||
this.formData = {
|
||||
id: null,
|
||||
name: null
|
||||
}
|
||||
this.$v.formData.$reset()
|
||||
},
|
||||
async submitItemUnit () {
|
||||
this.$v.formData.$touch()
|
||||
if (this.$v.$invalid) {
|
||||
return true
|
||||
}
|
||||
this.isLoading = true
|
||||
|
||||
let response
|
||||
|
||||
if (this.isEdit) {
|
||||
response = await this.updateItemUnit(this.formData)
|
||||
|
||||
if (response.data) {
|
||||
window.toastr['success'](this.$t('settings.customization.items.item_unit_updated'))
|
||||
this.closePaymentModeModal()
|
||||
return true
|
||||
}
|
||||
|
||||
window.toastr['error'](response.data.error)
|
||||
} else {
|
||||
try {
|
||||
response = await this.addItemUnit(this.formData)
|
||||
if (response.data) {
|
||||
this.isLoading = false
|
||||
window.toastr['success'](this.$t('settings.customization.items.item_unit_added'))
|
||||
this.closePaymentModeModal()
|
||||
return true
|
||||
} window.toastr['error'](response.data.error)
|
||||
} catch (err) {
|
||||
if (err.response.data.errors.name) {
|
||||
this.isLoading = true
|
||||
window.toastr['error'](this.$t('validation.item_unit_already_taken'))
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
async setData () {
|
||||
this.formData = {
|
||||
id: this.modalData.id,
|
||||
name: this.modalData.name
|
||||
}
|
||||
},
|
||||
closePaymentModeModal () {
|
||||
this.resetModalData()
|
||||
this.resetFormData()
|
||||
this.closeModal()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
166
resources/assets/js/components/base/modal/MailTestModal.vue
Normal file
166
resources/assets/js/components/base/modal/MailTestModal.vue
Normal file
@ -0,0 +1,166 @@
|
||||
<template>
|
||||
<div class="mail-test-modal">
|
||||
<form action="" @submit.prevent="onTestMailSend">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('general.to') }} <span class="required"> *</span></label>
|
||||
<div class="col-sm-7">
|
||||
<base-input
|
||||
ref="to"
|
||||
:invalid="$v.formData.to.$error"
|
||||
v-model="formData.to"
|
||||
type="text"
|
||||
@input="$v.formData.to.$touch()"
|
||||
/>
|
||||
<div v-if="$v.formData.to.$error">
|
||||
<span v-if="!$v.formData.to.required" class="form-group__message text-danger">{{ $tc('validation.required') }}</span>
|
||||
<span v-if="!$v.formData.to.email" class="form-group__message text-danger"> {{ $t('validation.email_incorrect') }} </span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('general.subject') }} <span class="required"> *</span></label>
|
||||
<div class="col-sm-7">
|
||||
<div class="base-input">
|
||||
<base-input
|
||||
:invalid="$v.formData.subject.$error"
|
||||
v-model="formData.subject"
|
||||
type="text"
|
||||
@input="$v.formData.subject.$touch()"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="$v.formData.subject.$error">
|
||||
<span v-if="!$v.formData.subject.required" class="text-danger">{{ $t('validation.required') }}</span>
|
||||
<span v-if="!$v.formData.subject.maxLength" class="text-danger">{{ $t('validation.subject_maxlength') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('general.message') }}<span class="required"> *</span></label>
|
||||
<div class="col-sm-7">
|
||||
<base-text-area
|
||||
v-model="formData.message"
|
||||
:invalid="$v.formData.message.$error"
|
||||
rows="4"
|
||||
cols="50"
|
||||
@input="$v.formData.message.$touch()"
|
||||
/>
|
||||
<div v-if="$v.formData.message.$error">
|
||||
<span v-if="!$v.formData.message.required" class="text-danger">{{ $t('validation.required') }}</span>
|
||||
<span v-if="!$v.formData.message.maxLength" class="text-danger">{{ $t('validation.message_maxlength') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<base-button
|
||||
:outline="true"
|
||||
class="mr-3"
|
||||
color="theme"
|
||||
type="button"
|
||||
@click="closeTaxModal"
|
||||
>
|
||||
{{ $t('general.cancel') }}
|
||||
</base-button>
|
||||
<base-button
|
||||
:loading="isLoading"
|
||||
color="theme"
|
||||
icon="save"
|
||||
type="submit"
|
||||
>
|
||||
{{ !isEdit ? $t('general.save') : $t('general.update') }}
|
||||
</base-button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import { validationMixin } from 'vuelidate'
|
||||
const { required, minLength, email, maxLength } = require('vuelidate/lib/validators')
|
||||
export default {
|
||||
mixins: [validationMixin],
|
||||
data () {
|
||||
return {
|
||||
isEdit: false,
|
||||
isLoading: false,
|
||||
formData: {
|
||||
to: null,
|
||||
subject: null,
|
||||
message: null
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('modal', [
|
||||
'modalDataID',
|
||||
'modalData',
|
||||
'modalActive'
|
||||
])
|
||||
},
|
||||
validations: {
|
||||
formData: {
|
||||
to: {
|
||||
required,
|
||||
email
|
||||
},
|
||||
subject: {
|
||||
required,
|
||||
maxLength: maxLength(100)
|
||||
},
|
||||
message: {
|
||||
required,
|
||||
maxLength: maxLength(255)
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
this.$refs.to.focus = true
|
||||
},
|
||||
methods: {
|
||||
...mapActions('modal', [
|
||||
'closeModal',
|
||||
'resetModalData'
|
||||
]),
|
||||
resetFormData () {
|
||||
this.formData = {
|
||||
to: null,
|
||||
subject: null,
|
||||
message: null
|
||||
}
|
||||
this.$v.formData.$reset()
|
||||
},
|
||||
async onTestMailSend () {
|
||||
this.$v.formData.$touch()
|
||||
|
||||
if (this.$v.$invalid) {
|
||||
return true
|
||||
}
|
||||
|
||||
this.isLoading = true
|
||||
let response = await axios.post('/api/settings/test/mail', this.formData)
|
||||
if (response.data) {
|
||||
|
||||
if (response.data.success) {
|
||||
window.toastr['success'](this.$tc('general.send_mail_successfully'))
|
||||
this.closeTaxModal()
|
||||
this.isLoading = false
|
||||
return true
|
||||
}
|
||||
|
||||
window.toastr['error'](this.$tc('validation.something_went_wrong'))
|
||||
this.closeTaxModal()
|
||||
this.isLoading = false
|
||||
return true
|
||||
}
|
||||
window.toastr['error'](response.data.error)
|
||||
},
|
||||
closeTaxModal () {
|
||||
this.resetModalData()
|
||||
this.resetFormData()
|
||||
this.closeModal()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
143
resources/assets/js/components/base/modal/PaymentModeModal.vue
Normal file
143
resources/assets/js/components/base/modal/PaymentModeModal.vue
Normal file
@ -0,0 +1,143 @@
|
||||
<template>
|
||||
<div class="payment-modes-modal">
|
||||
<form action="" @submit.prevent="submitPaymentMode">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4 col-form-label input-label">{{ $t('settings.customization.payments.mode_name') }} <span class="required"> *</span></label>
|
||||
<div class="col-sm-7">
|
||||
<base-input
|
||||
ref="name"
|
||||
:invalid="$v.formData.name.$error"
|
||||
v-model="formData.name"
|
||||
type="text"
|
||||
@input="$v.formData.name.$touch()"
|
||||
/>
|
||||
<div v-if="$v.formData.name.$error">
|
||||
<span v-if="!$v.formData.name.required" class="form-group__message text-danger">{{ $tc('validation.required') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<base-button
|
||||
:outline="true"
|
||||
class="mr-3"
|
||||
color="theme"
|
||||
type="button"
|
||||
@click="closePaymentModeModal"
|
||||
>
|
||||
{{ $t('general.cancel') }}
|
||||
</base-button>
|
||||
<base-button
|
||||
:loading="isLoading"
|
||||
color="theme"
|
||||
icon="save"
|
||||
type="submit"
|
||||
>
|
||||
{{ !isEdit ? $t('general.save') : $t('general.update') }}
|
||||
</base-button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import { validationMixin } from 'vuelidate'
|
||||
const { required, minLength } = require('vuelidate/lib/validators')
|
||||
|
||||
export default {
|
||||
mixins: [validationMixin],
|
||||
data () {
|
||||
return {
|
||||
isEdit: false,
|
||||
isLoading: false,
|
||||
formData: {
|
||||
id: null,
|
||||
name: null
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('modal', [
|
||||
'modalDataID',
|
||||
'modalData',
|
||||
'modalActive'
|
||||
])
|
||||
},
|
||||
validations: {
|
||||
formData: {
|
||||
name: {
|
||||
required,
|
||||
minLength: minLength(2)
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
this.$refs.name.focus = true
|
||||
if (this.modalDataID) {
|
||||
this.isEdit = true
|
||||
this.setData()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions('modal', [
|
||||
'closeModal',
|
||||
'resetModalData'
|
||||
]),
|
||||
...mapActions('payment', [
|
||||
'addPaymentMode',
|
||||
'updatePaymentMode'
|
||||
]),
|
||||
resetFormData () {
|
||||
this.formData = {
|
||||
id: null,
|
||||
name: null
|
||||
}
|
||||
this.$v.formData.$reset()
|
||||
},
|
||||
async submitPaymentMode () {
|
||||
this.$v.formData.$touch()
|
||||
if (this.$v.$invalid) {
|
||||
return true
|
||||
}
|
||||
this.isLoading = true
|
||||
let response
|
||||
if (this.isEdit) {
|
||||
response = await this.updatePaymentMode(this.formData)
|
||||
if (response.data) {
|
||||
window.toastr['success'](this.$t('settings.customization.payments.payment_mode_updated'))
|
||||
this.closePaymentModeModal()
|
||||
return true
|
||||
} window.toastr['error'](response.data.error)
|
||||
} else {
|
||||
try {
|
||||
response = await this.addPaymentMode(this.formData)
|
||||
if (response.data) {
|
||||
this.isLoading = false
|
||||
window.toastr['success'](this.$t('settings.customization.payments.payment_mode_added'))
|
||||
this.closePaymentModeModal()
|
||||
return true
|
||||
} window.toastr['error'](response.data.error)
|
||||
} catch (err) {
|
||||
if (err.response.data.errors.name) {
|
||||
this.isLoading = true
|
||||
window.toastr['error'](this.$t('validation.payment_mode_already_taken'))
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
async setData () {
|
||||
this.formData = {
|
||||
id: this.modalData.id,
|
||||
name: this.modalData.name
|
||||
}
|
||||
},
|
||||
closePaymentModeModal () {
|
||||
this.resetModalData()
|
||||
this.resetFormData()
|
||||
this.closeModal()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -124,7 +124,7 @@ export default {
|
||||
},
|
||||
percent: {
|
||||
required,
|
||||
between: between(0.10, 100)
|
||||
between: between(0, 100)
|
||||
},
|
||||
description: {
|
||||
maxLength: maxLength(255)
|
||||
|
||||
@ -1,69 +0,0 @@
|
||||
<template>
|
||||
<div class="graph-container">
|
||||
<canvas
|
||||
id="graph"
|
||||
ref="graph"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Chart from 'chart.js'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
labels: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
values: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
let context = this.$refs.graph.getContext('2d')
|
||||
let options = {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
legend: {
|
||||
display: false
|
||||
}
|
||||
}
|
||||
|
||||
let data = {
|
||||
labels: this.labels,
|
||||
datasets: [
|
||||
{
|
||||
label: 'My First dataset',
|
||||
backgroundColor: 'rgba(79, 196, 127,0.2)',
|
||||
borderColor: 'rgba(79, 196, 127,1)',
|
||||
borderWidth: 1,
|
||||
hoverBackgroundColor: 'rgba(79, 196, 127,0.4)',
|
||||
hoverBorderColor: 'rgba(79, 196, 127,1)',
|
||||
data: this.values
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
this.myBarChart = new Chart(context, {
|
||||
type: 'bar',
|
||||
data: data,
|
||||
options: options
|
||||
})
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.myBarChart.destroy()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.graph-container {
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
@ -1,71 +0,0 @@
|
||||
<template>
|
||||
<div class="graph-container">
|
||||
<canvas
|
||||
id="graph"
|
||||
ref="graph"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Chart from 'chart.js'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
labels: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
values: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
bgColors: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
hoverBgColors: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
let context = this.$refs.graph.getContext('2d')
|
||||
let options = {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false
|
||||
}
|
||||
|
||||
let data = {
|
||||
labels: this.labels,
|
||||
datasets: [
|
||||
{
|
||||
data: this.values,
|
||||
backgroundColor: this.bgColors,
|
||||
hoverBackgroundColor: this.hoverBgColors
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
this.myDoughnutChart = new Chart(context, {
|
||||
type: 'doughnut',
|
||||
data: data,
|
||||
options: options
|
||||
})
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.myDoughnutChart.destroy()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.graph-container {
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
@ -1,8 +1,6 @@
|
||||
<template>
|
||||
<div class="graph-container">
|
||||
<canvas
|
||||
id="graph"
|
||||
ref="graph" />
|
||||
<canvas id="graph" ref="graph" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -16,58 +14,56 @@ export default {
|
||||
labels: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
default: Array,
|
||||
},
|
||||
values: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
default: Array,
|
||||
},
|
||||
invoices: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
default: Array,
|
||||
},
|
||||
expenses: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
default: Array,
|
||||
},
|
||||
receipts: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
default: Array,
|
||||
},
|
||||
income: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
default: Array,
|
||||
},
|
||||
formatMoney: {
|
||||
type: Function,
|
||||
require: false,
|
||||
default: Function
|
||||
default: Function,
|
||||
},
|
||||
FormatGraphMoney: {
|
||||
type: Function,
|
||||
require: false,
|
||||
default: Function
|
||||
}
|
||||
default: Function,
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapGetters('currency', [
|
||||
'defaultCurrency'
|
||||
])
|
||||
...mapGetters('currency', ['defaultCurrency']),
|
||||
},
|
||||
|
||||
watch: {
|
||||
labels (val) {
|
||||
labels(val) {
|
||||
this.update()
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
mounted () {
|
||||
mounted() {
|
||||
let self = this
|
||||
let context = this.$refs.graph.getContext('2d')
|
||||
let options = {
|
||||
@ -77,13 +73,16 @@ export default {
|
||||
enabled: true,
|
||||
callbacks: {
|
||||
label: function (tooltipItem, data) {
|
||||
return self.FormatGraphMoney(tooltipItem.value, self.defaultCurrency)
|
||||
}
|
||||
}
|
||||
return self.FormatGraphMoney(
|
||||
tooltipItem.value * 100,
|
||||
self.defaultCurrency
|
||||
)
|
||||
},
|
||||
},
|
||||
},
|
||||
legend: {
|
||||
display: false
|
||||
}
|
||||
display: false,
|
||||
},
|
||||
}
|
||||
let data = {
|
||||
labels: this.labels,
|
||||
@ -107,7 +106,7 @@ export default {
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 4,
|
||||
pointHitRadius: 10,
|
||||
data: this.invoices
|
||||
data: this.invoices.map((invoice) => invoice / 100),
|
||||
},
|
||||
{
|
||||
label: 'Receipts',
|
||||
@ -128,7 +127,7 @@ export default {
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 4,
|
||||
pointHitRadius: 10,
|
||||
data: this.receipts
|
||||
data: this.receipts.map((receipt) => receipt / 100),
|
||||
},
|
||||
{
|
||||
label: 'Expenses',
|
||||
@ -149,7 +148,7 @@ export default {
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 4,
|
||||
pointHitRadius: 10,
|
||||
data: this.expenses
|
||||
data: this.expenses.map((expense) => expense / 100),
|
||||
},
|
||||
{
|
||||
label: 'Net Income',
|
||||
@ -170,34 +169,40 @@ export default {
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 4,
|
||||
pointHitRadius: 10,
|
||||
data: this.income
|
||||
}
|
||||
]
|
||||
data: this.income.map((_i) => _i / 100),
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
this.myLineChart = new Chart(context, {
|
||||
type: 'line',
|
||||
data: data,
|
||||
options: options
|
||||
options: options,
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
update () {
|
||||
update() {
|
||||
this.myLineChart.data.labels = this.labels
|
||||
this.myLineChart.data.datasets[0].data = this.invoices
|
||||
this.myLineChart.data.datasets[1].data = this.receipts
|
||||
this.myLineChart.data.datasets[2].data = this.expenses
|
||||
this.myLineChart.data.datasets[3].data = this.income
|
||||
this.myLineChart.data.datasets[0].data = this.invoices.map(
|
||||
(invoice) => invoice / 100
|
||||
)
|
||||
this.myLineChart.data.datasets[1].data = this.receipts.map(
|
||||
(receipt) => receipt / 100
|
||||
)
|
||||
this.myLineChart.data.datasets[2].data = this.expenses.map(
|
||||
(expense) => expense / 100
|
||||
)
|
||||
this.myLineChart.data.datasets[3].data = this.income.map((_i) => _i / 100)
|
||||
this.myLineChart.update({
|
||||
lazy: true
|
||||
lazy: true,
|
||||
})
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
beforeDestroy() {
|
||||
this.myLineChart.destroy()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -1,72 +0,0 @@
|
||||
<template>
|
||||
<div class="graph-container">
|
||||
<canvas
|
||||
id="graph"
|
||||
ref="graph" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Chart from 'chart.js'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
labels: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
values: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
bgColors: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
},
|
||||
hoverBgColors: {
|
||||
type: Array,
|
||||
require: true,
|
||||
default: Array
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
let context = this.$refs.graph.getContext('2d')
|
||||
|
||||
let options = {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false
|
||||
}
|
||||
|
||||
let data = {
|
||||
labels: this.labels,
|
||||
datasets: [
|
||||
{
|
||||
data: this.values,
|
||||
backgroundColor: this.bgColors,
|
||||
hoverBackgroundColor: this.hoverBgColors
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
this.pieChart = new Chart(context, {
|
||||
type: 'pie',
|
||||
data: data,
|
||||
options: options
|
||||
})
|
||||
},
|
||||
|
||||
beforeDestroy () {
|
||||
this.pieChart.destroy()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.graph-container {
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
@ -1,95 +0,0 @@
|
||||
<template>
|
||||
<div class="graph-container easy-pie-chart">
|
||||
<svg width="100%" height="100%" viewBox="0 0 34 34" class="donut">
|
||||
<circle :stroke-width="strokeWidth" class="donut-segment" cx="17" cy="17" r="15.91549430918954" fill="transparent" :stroke="strokeColor" stroke-dasharray="100 0" />
|
||||
<circle :stroke-width="strokeWidth" :stroke="color" :stroke-dasharray="successProgress" class="donut-segment" cx="17" cy="17" r="15.91549430918954" fill="transparent" />
|
||||
<!-- <g class="chart-text">
|
||||
<text :style="'fill:' + color" x="48%" y="50%" class="chart-number" >
|
||||
{{ progress }}
|
||||
</text>
|
||||
<text :style="'fill:' + color" x="73%" y="50%" class="chart-label" >
|
||||
%
|
||||
</text>
|
||||
</g> -->
|
||||
</svg>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
values: {
|
||||
type: Number,
|
||||
require: true,
|
||||
default: 100
|
||||
},
|
||||
strokeWidth: {
|
||||
type: Number,
|
||||
require: false,
|
||||
default: 1.2
|
||||
},
|
||||
strokeColor: {
|
||||
type: String,
|
||||
require: true,
|
||||
default: '#eeeeee'
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
require: true,
|
||||
default: '#007dcc'
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
progress: 0
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
values (newvalue, oldvalue) {
|
||||
if (newvalue !== oldvalue) {
|
||||
this.setProgress()
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
successProgress () {
|
||||
return this.progress + ' ' + (100 - this.progress)
|
||||
},
|
||||
remainProgress () {
|
||||
return 100 - this.progress + ' ' + this.progress
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
this.setProgress()
|
||||
},
|
||||
methods: {
|
||||
setProgress () {
|
||||
let self = this
|
||||
for (let i = 0; i < this.values; i++) {
|
||||
setTimeout(function () {
|
||||
++self.progress
|
||||
}, 15 * i)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.chart-text {
|
||||
font: 6px "Montserrat", Arial, sans-serif;
|
||||
fill: #000;
|
||||
-moz-transform: translateY(0.25em);
|
||||
-ms-transform: translateY(0.25em);
|
||||
-webkit-transform: translateY(0.25em);
|
||||
transform: translateY(0.5em);
|
||||
}
|
||||
.chart-number {
|
||||
font-size: 8px;
|
||||
line-height: 1;
|
||||
text-anchor: middle;
|
||||
}
|
||||
.chart-label {
|
||||
font-size: 5px;
|
||||
text-transform: uppercase;
|
||||
text-anchor: middle;
|
||||
}
|
||||
</style>
|
||||
885
resources/assets/js/plugins/ar.json
Normal file
885
resources/assets/js/plugins/ar.json
Normal file
@ -0,0 +1,885 @@
|
||||
{
|
||||
"navigation": {
|
||||
"dashboard": "الرئيسية",
|
||||
"customers": "العملاء",
|
||||
"items": "الأصناف",
|
||||
"invoices": "الفواتير",
|
||||
"expenses": "النفقات",
|
||||
"estimates": "التقديرات",
|
||||
"payments": "المدفوعات",
|
||||
"reports": "التقارير",
|
||||
"settings": "الإعدادات",
|
||||
"logout": "خروج"
|
||||
},
|
||||
"general": {
|
||||
"view_pdf": "عرض PDF",
|
||||
"download_pdf": "تنزيل PDF",
|
||||
"save": "حفظ",
|
||||
"cancel": "إلغاء الأمر",
|
||||
"update": "تحديث",
|
||||
"download": "تنزيل",
|
||||
"from_date": "من تاريخ",
|
||||
"to_date": "إلى تاريخ",
|
||||
"from": "من",
|
||||
"to": "إلى",
|
||||
"go_back": "إلى الخلف",
|
||||
"back_to_login": "العودة إلى تسجيل الدخول؟",
|
||||
"home": "الرئيسية",
|
||||
"filter": "تصفية",
|
||||
"delete": "حذف",
|
||||
"edit": "تعديل",
|
||||
"view": "عرض",
|
||||
"add_new_item": "إضافة صنف جديد",
|
||||
"clear_all": "مسح الكل",
|
||||
"showing": "عرض",
|
||||
"of": "من",
|
||||
"actions": "العمليات",
|
||||
"subtotal": "المجموع الفرعي",
|
||||
"discount": "خصم",
|
||||
"fixed": "ثابت",
|
||||
"percentage": "نسبة",
|
||||
"tax": "ضريبة",
|
||||
"total_amount": "المبلغ الإجمالي",
|
||||
"bill_to": "مطلوب من",
|
||||
"ship_to": "يشحن إلى",
|
||||
"due": "واجبة السداد",
|
||||
"draft": "مسودة",
|
||||
"sent": "مرسلة",
|
||||
"all": "الكل",
|
||||
"select_all": "تحديد الل",
|
||||
"choose_file": "اضغط هنا لاختيار ملف",
|
||||
"choose_template": "اختيار القالب",
|
||||
"choose": "اختر",
|
||||
"remove": "إزالة",
|
||||
"powered_by": "تصميم",
|
||||
"bytefury": "باترفوري",
|
||||
"select_a_status": "اختر الحالة",
|
||||
"select_a_tax": "اختر الضريبة",
|
||||
"search": "بحث",
|
||||
"are_you_sure": "هل أنت متأكد?",
|
||||
"list_is_empty": "القائمة فارغة.",
|
||||
"no_tax_found": "لا يوجد ضريبة!",
|
||||
"four_zero_four": "404",
|
||||
"you_got_lost": "عفواً! يبدو أنك قد تهت!",
|
||||
"go_home": "عودة إلى الرئيسية",
|
||||
|
||||
"setting_updated": "تم تحديث الإعدادات بنجاح",
|
||||
"select_state": "اختر الولاية/المنطقة",
|
||||
"select_country": "اختر الدولة",
|
||||
"select_city": "اختر المدينة",
|
||||
"street_1": "عنوان الشارع 1",
|
||||
"street_2": "عنوان الشارع 2",
|
||||
"action_failed": "فشلت العملية"
|
||||
},
|
||||
"dashboard": {
|
||||
"select_year": "اختر السنة",
|
||||
"cards": {
|
||||
"due_amount": "المبلغ المطلوب",
|
||||
"customers": "العملاء",
|
||||
"invoices": "الفواتير",
|
||||
"estimates": "التقديرات"
|
||||
},
|
||||
"chart_info": {
|
||||
"total_sales": "المبيعات",
|
||||
"total_receipts": "إجمالي الدخل",
|
||||
"total_expense": "النفقات",
|
||||
"net_income": "صافي الدخل",
|
||||
"year": "اختر السنة"
|
||||
},
|
||||
"weekly_invoices": {
|
||||
"title": "الفواتير الأسبوعية"
|
||||
},
|
||||
"monthly_chart": {
|
||||
"title": "المبيعات والنفقات"
|
||||
},
|
||||
"recent_invoices_card": {
|
||||
"title": "فواتير مستحقة",
|
||||
"due_on": "مستحقة في",
|
||||
"customer": "العميل",
|
||||
"amount_due": "المبلغ المطلوب",
|
||||
"actions": "العمليات",
|
||||
"view_all": "عرض الكل"
|
||||
},
|
||||
"recent_estimate_card": {
|
||||
"title": "أحدث التقديرات",
|
||||
"date": "التاريخ",
|
||||
"customer": "العميل",
|
||||
"amount_due": "المبلغ المطلوب",
|
||||
"actions": "العمليات",
|
||||
"view_all": "عرض الكل"
|
||||
}
|
||||
},
|
||||
"tax_types": {
|
||||
"name": "الاسم",
|
||||
"description": "الوصف",
|
||||
"percent": "Percent",
|
||||
"compound_tax": "Compound Tax"
|
||||
},
|
||||
"customers": {
|
||||
"title": "العملاء",
|
||||
"add_customer": "إضافة عميل",
|
||||
"contacts_list": "قائمة العملاء",
|
||||
"name": "الاسم",
|
||||
"display_name": "اسم العرض",
|
||||
"primary_contact_name": "اسم التواصل الرئيسي",
|
||||
"contact_name": "اسم تواصل آخر",
|
||||
"amount_due": "المبلغ المطلوب",
|
||||
"email": "البريد الإلكتروني",
|
||||
"address": "العنوان",
|
||||
"phone": "الهاتف",
|
||||
"website": "موقع الإنترنت",
|
||||
"country": "الدولة",
|
||||
"state": "الولاية/المنطقة",
|
||||
"city": "المدينة",
|
||||
"zip_code": "الرمز البريدي",
|
||||
"added_on": "أضيف في",
|
||||
"action": "إجراء",
|
||||
"password": "كلمة المرور",
|
||||
"street_number": "رقم الشارع",
|
||||
"primary_currency": "العملة الرئيسية",
|
||||
"add_new_customer": "إضافة عميل جديد",
|
||||
"save_customer": "حفظ العميل",
|
||||
"update_customer": "تحديث بيانات العميل",
|
||||
"customer": "عميل | عملاء",
|
||||
"new_customer": "عميل جديد",
|
||||
"edit_customer": "تعديل عميل",
|
||||
"basic_info": "معلوات أساسية",
|
||||
"billing_address": "عنوان الفوترة",
|
||||
"shipping_address": "عنوان الشحن",
|
||||
"copy_billing_address": "نسخ من عنوان الفوترة",
|
||||
"no_customers": "لا يوجد عملاء حتى الآن!",
|
||||
"no_customers_found": "لم يتم الحصول على عملاء!",
|
||||
"list_of_customers": "سوف يحتوي هذا القسم على قائمة العملاء.",
|
||||
"primary_display_name": "اسم العرض الرئيسي",
|
||||
"select_currency": "اختر العملة",
|
||||
"select_a_customer": "اختر العميل",
|
||||
"type_or_click": "اكتب أو اضغط للاختيار",
|
||||
|
||||
"confirm_delete": "لن تكون قادراً على استرجاع هذا العميل | لن تكون قادراً على استرجاع هؤلاء العملاء",
|
||||
"created_message": "تم إنشاء العملاء بنجاح",
|
||||
"updated_message": "تم تحديث العملاء بنجاح",
|
||||
"deleted_message": "تم حذف العملاء بنجاح | تم حذف العميل بنجاح"
|
||||
},
|
||||
"items": {
|
||||
"title": "الأصناف",
|
||||
"items_list": "قائمة الأصناف",
|
||||
"name": "الاسم",
|
||||
"unit": "الوحدة",
|
||||
"description": "الوصف",
|
||||
"added_on": "أضيف في",
|
||||
"price": "السعر",
|
||||
"date_of_creation": "تاريخ الإنشاء",
|
||||
"action": "إجراء",
|
||||
"add_item": "إضافة صنف",
|
||||
"save_item": "حفظ الصنف",
|
||||
"update_item": "تحديث الصنف",
|
||||
"item": "صنف | أصناف",
|
||||
"add_new_item": "إضافة صنف جديد",
|
||||
"new_item": "جديد صنف",
|
||||
"edit_item": "تحديث صنف",
|
||||
"no_items": "لا يوجد أصناف حتى الآن!",
|
||||
"list_of_items": "هذا القسم سوف يحتوي على قائمة الأصناف.",
|
||||
"select_a_unit": "اختر الوحدة",
|
||||
|
||||
"item_attached_message": "لا يمكن حذف الصنف قيد الاستخدام",
|
||||
"confirm_delete": "لن تتمكن من استرجاع هذا الصنف | لن تتمكن من استرجاع هذه الأصناف",
|
||||
"created_message": "تم إنشاء الصنف بنجاح",
|
||||
"updated_message": "تم تحديث الصنف بنجاح",
|
||||
"deleted_message": "تم حذف الصنف بنجاح | تم حذف الأصناف بنجاح"
|
||||
},
|
||||
"estimates": {
|
||||
"title": "التقديرات",
|
||||
"estimate": "تقدير | تقديرات",
|
||||
"estimates_list": "قائمة التقديرات",
|
||||
"days": "{days} أيام",
|
||||
"months": "{months} أشهر",
|
||||
"years": "{years} سنوات",
|
||||
"all": "الكل",
|
||||
"paid": "مدفوع",
|
||||
"unpaid": "غير مدفوع",
|
||||
"customer": "العميل",
|
||||
"ref_no": "رقم المرجع.",
|
||||
"number": "الرقم",
|
||||
"amount_due": "المبلغ المطلوب",
|
||||
"partially_paid": "مدفوع جزئيا",
|
||||
"total": "الإجمالي",
|
||||
"discount": "الخصم",
|
||||
"sub_total": "حاصل الجمع",
|
||||
"estimate_number": "رقم تقدير",
|
||||
"ref_number": "رقم المرجع",
|
||||
"contact": "تواصل",
|
||||
"add_item": "إضافة صنف",
|
||||
"date": "تاريخ",
|
||||
"due_date": "تاريخ الاستحقاق",
|
||||
"expiry_date": "تاريخ الصلاحية",
|
||||
"status": "الحالة",
|
||||
"add_tax": "إضافة ضرية",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"action": "إجراء",
|
||||
"notes": "ملاحظات",
|
||||
"tax": "ضريبة",
|
||||
"estimate_template": "قالب",
|
||||
"convert_to_invoice": "تحويل إلى فاتورة",
|
||||
"mark_as_sent": "تحديد كمرسل",
|
||||
"send_estimate": "إرسال التقدير",
|
||||
"record_payment": "تسجيل مدفوات",
|
||||
"add_estimate": "إضافة تقدير",
|
||||
"save_estimate": "حفظ التقدير",
|
||||
"confirm_conversion": "هل تريد تحويل هذا التقدير إلى فاتورة؟",
|
||||
"conversion_message": "تم إنشاء الفاتورة بنجاح",
|
||||
"confirm_send_estimate": "سيتم إرسال هذا التقدير بالبريد الإلكتروني إلى العميل",
|
||||
"confirm_mark_as_sent": "سيتم التحديد كمرسل على هذا التقدير",
|
||||
"confirm_mark_as_accepted": "سيتم التحديد كمقبول على هذا التقدير",
|
||||
"confirm_mark_as_rejected": "سيتم التحديد كمرفوض على هذا التقدير",
|
||||
"no_matching_estimates": "لا يوجد تقديرات مطابقة!",
|
||||
"mark_as_sent_successfully": "تم التحديد كمرسل بنجاح",
|
||||
"send_estimate_successfully": "تم إرسال التقدير بنجاح",
|
||||
"errors": {
|
||||
"required": "حقل مطلوب"
|
||||
},
|
||||
"accepted": "مقبول",
|
||||
"sent": "مرسل",
|
||||
"draft": "مسودة",
|
||||
"declined": "مرفوض",
|
||||
"new_estimate": "تقدير جديد",
|
||||
"add_new_estimate": "إضافة تقدير جديد",
|
||||
"update_Estimate": "تحديث تقدير",
|
||||
"edit_estimate": "تعديل التقدير",
|
||||
"items": "الأصناف",
|
||||
"Estimate": "تقدير | تقديرات",
|
||||
"add_new_tax": "إضافة ضريبة جديدة",
|
||||
"no_estimates": "لا يوجد تقديرات حالياً!",
|
||||
"list_of_estimates": "هذا القسم سوف يحتوي على التقديرات.",
|
||||
"mark_as_rejected": "تحديد كمرفوض",
|
||||
"mark_as_accepted": "تحديد كمقروء",
|
||||
|
||||
"marked_as_accepted_message": "تحديد التقدير كمقبول",
|
||||
"marked_as_rejected_message": "تحديد التقدير كمرفوض",
|
||||
"confirm_delete": "لن تستطيع استرجاع هذا التقدير | لن تستطيع إستعادة هذه التقديرات",
|
||||
"created_message": "تم إنشاء التقدير بنجاح",
|
||||
"updated_message": "تم تحديث التقدير بنجاح",
|
||||
"deleted_message": "تم حذف التقدير بنجاح | تم حذف التقديرات بنجاح",
|
||||
"user_email_does_not_exist": "البريد الالكتروني للمستخدم غير موجود",
|
||||
"something_went_wrong": "خطأ غير معروف!",
|
||||
"item": {
|
||||
"title": "اسم الصنف",
|
||||
"description": "الوصف",
|
||||
"quantity": "الكمية",
|
||||
"price": "السعر",
|
||||
"discount": "الخصم",
|
||||
"total": "الإجمالي",
|
||||
"total_discount": "مجموع الخصم",
|
||||
"sub_total": "حاصل الجمع",
|
||||
"tax": "الضرية",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"select_an_item": "اكتب أو اختر الصنف",
|
||||
"type_item_description": "اكتب وصف الصنف (اختياري)"
|
||||
}
|
||||
},
|
||||
"invoices": {
|
||||
"title": "الفواتير",
|
||||
"invoices_list": "قائمة الفواتير",
|
||||
"days": "{days} أيام",
|
||||
"months": "{months} أشهر",
|
||||
"years": "{years} سنوات",
|
||||
"all": "الكل",
|
||||
"paid": "مدفوع",
|
||||
"unpaid": "غير مدفوع",
|
||||
"customer": "العميل",
|
||||
"paid_status": "حالة الدفع",
|
||||
"ref_no": "رقم المرجع.",
|
||||
"number": "الرقم",
|
||||
"amount_due": "المبلغ المطلوب",
|
||||
"partially_paid": "مدفوع جزئياً",
|
||||
"total": "الإجمالي",
|
||||
"discount": "الخصم",
|
||||
"sub_total": "حاصل الجمع",
|
||||
"invoice": "فاتورة | فواتير",
|
||||
"invoice_number": "رقم الفاتورة",
|
||||
"ref_number": "رقم المرجع",
|
||||
"contact": "تواصل",
|
||||
"add_item": "إضافة صنف",
|
||||
"date": "التاريخ",
|
||||
"due_date": "تاريخ الاستحقاق",
|
||||
"status": "الحالة",
|
||||
"add_tax": "إضافة ضريبة",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"action": "إجراء",
|
||||
"notes": "ملاحظات",
|
||||
"view": "عرض",
|
||||
"send_invoice": "إرسال الفاتورة",
|
||||
"invoice_template": "قالب الفاتورة",
|
||||
"template": "قالب",
|
||||
"mark_as_sent": "تحديد كمرسل",
|
||||
"confirm_send_invoice": "سيتم إرسال هذه الفاتورة بالبريد الألكتروني إلى العميل",
|
||||
"invoice_mark_as_sent": "سيتم تحديد هذه الفاتورة كمرسلة",
|
||||
"confirm_send": "سيتم إرسال هذه الفاتورة بالبريد الألكتروني إلى العميل",
|
||||
"invoice_date": "تاريخ الفاتورة",
|
||||
"record_payment": "تسجيل مدفوعات",
|
||||
"add_new_invoice": "إضافة فاتورة جديدة",
|
||||
"update_expense": "تحديث المصروفات",
|
||||
"edit_invoice": "تعديل الفاتورة",
|
||||
"new_invoice": "فاتورة جديدة",
|
||||
"save_invoice": "حفظ الفاتورة",
|
||||
"update_invoice": "تحديث الفاتورة",
|
||||
"add_new_tax": "إضافة ضريبة جديدة",
|
||||
"no_invoices": "لا يوجد فواتير حتى الآن!",
|
||||
"list_of_invoices": "قائمة الفواتير .",
|
||||
"select_invoice": "اختر الفاتورة",
|
||||
"no_matching_invoices": "لا يوجد فواتير مطابقة!",
|
||||
"mark_as_sent_successfully": "تم تحديد الفاتورة كمرسلة بنجاح",
|
||||
"send_invoice_successfully": "تم إرسال الفاتورة بنجاح",
|
||||
"item": {
|
||||
"title": "اسم الصنف",
|
||||
"description": "الوصف",
|
||||
"quantity": "الكمية",
|
||||
"price": "السعر",
|
||||
"discount": "الخصم",
|
||||
"total": "الإجمالي",
|
||||
"total_discount": "إجمالي الخصم",
|
||||
"sub_total": "حاصل الجمع",
|
||||
"tax": "الضريبة",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"select_an_item": "اكتب أو انقر لاختيار صنف",
|
||||
"type_item_description": "وصف الصنف (اختياري)"
|
||||
},
|
||||
|
||||
"payment_attached_message": "هناك مدفوعات مرتبطة بالفعل بإحدى الفواتير المحددة. تأكد من حذف المدفوعات المرتبطة أولاً قبل حذف الفاتورة.",
|
||||
"confirm_delete": "لن تتمكن من استرجاع الفاتورة بعد هذه الإجراء | لن تتمكن من استرجاع الفواتير بعد هذا الإجراء",
|
||||
"created_message": "تم إنشاء الفاتورة بنجاح",
|
||||
"updated_message": "تم تحديث الفاتورة بنجاح",
|
||||
"deleted_message": "تم حذف الفاتورة بنجاح | تم حذف الفواتير بنجاح",
|
||||
"marked_as_sent_message": "تم إرسال الفاتورة بنجاح",
|
||||
"user_email_does_not_exist": "البريد الإلكتروني للمستخدم غير موجود!",
|
||||
"something_went_wrong": "خطأ غير معروف!",
|
||||
"invalid_due_amount_message": "المبلغ النهائي للفاتورة لا يمكن أن يكون أقل من المبلغ المطلوب لها. رجاءاً حدث الفاتورة أو قم بحذف المدفوعات المرتبطة بها للاستمرار."
|
||||
},
|
||||
"credit_notes": {
|
||||
"title": "ملاحظات إئتمانية",
|
||||
"credit_notes_list": "قائمة الملاحظات الإئتمانية",
|
||||
"credit_notes": "ملاحظات إئتمانية",
|
||||
"contact": "تواصل",
|
||||
"date": "التاريخ",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"action": "إجراء",
|
||||
"credit_number": "الرقم الإئتماني",
|
||||
"notes": "ملاحظات",
|
||||
"confirm_delete": "هل تريد حفذف هذه الملاحظة الإئتمانية؟",
|
||||
"item": {
|
||||
"title": "اسم الصنف",
|
||||
"description": "الوصف",
|
||||
"quantity": "الكمية",
|
||||
"price": "السعر",
|
||||
"discount": "الخصم",
|
||||
"total": "الإجمالي",
|
||||
"total_discount": "إجمالي الخصم",
|
||||
"sub_total": "حاصل الجمع",
|
||||
"tax": "الضريبة"
|
||||
}
|
||||
},
|
||||
"payments": {
|
||||
"title": "المدفوعات",
|
||||
"payments_list": "قائمة المدفوعات",
|
||||
"record_payment": "تسجيل دفعة",
|
||||
"customer": "العميل",
|
||||
"date": "التاريخ",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"action": "إجراء",
|
||||
"payment_number": "رقم الدفعة",
|
||||
"payment_mode": "نوع الدفعة",
|
||||
"invoice": "الفاتورة",
|
||||
"note": "ملاحظة",
|
||||
"add_payment": "إضافة دفعة",
|
||||
"new_payment": "دفعة جديدة",
|
||||
"edit_payment": "تعديل الدفعة",
|
||||
"view_payment": "عرض الدفعة",
|
||||
"add_new_payment": "إضافة دفعة جديدة",
|
||||
"save_payment": "حفظ الدفعة",
|
||||
"update_payment": "تحديث الدفعة",
|
||||
"payment": "دفعة | مدفوعات",
|
||||
"no_payments": "لا يوجد مدفوعات حتى الآن!",
|
||||
"no_matching_payments": "لا توجد مدفوعات مطابقة!",
|
||||
"list_of_payments": "سوف تحتوي هذه القائمة على مدفوعات الفواتير.",
|
||||
"select_payment_mode": "اختر طريقة الدفع",
|
||||
|
||||
"confirm_delete": "لن تكون قادر على استرجاع هذه الدفعة | لن تكون قادراً على استرجاع هذه المدفوعات",
|
||||
"created_message": "تم إنشاء الدفعة بنجاح",
|
||||
"updated_message": "تم تحديث الدفعة بنجاح",
|
||||
"deleted_message": "تم حذف الدفعة بنجاح | تم حذف المدفوعات بنجاح",
|
||||
"invalid_amount_message": "قيمة الدفعة غير صحيحة!"
|
||||
},
|
||||
"expenses": {
|
||||
"title": "النفقات",
|
||||
"expenses_list": "قائمة النفقات",
|
||||
"expense_title": "Title",
|
||||
"select_a_customer": "حدد عميلاً",
|
||||
"customer": "العميل",
|
||||
"contact": "تواصل",
|
||||
"category": "الفئة",
|
||||
"from_date": "من تاريخ",
|
||||
"to_date": "حتى تاريخ",
|
||||
"expense_date": "التاريخ",
|
||||
"description": "الوصف",
|
||||
"receipt": "سند القبض",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"action": "إجراء",
|
||||
"note": "ملاحظة",
|
||||
"category_id": "رمز الفئة",
|
||||
"date": "تاريخ النفقات",
|
||||
"add_expense": "أضف نفقات",
|
||||
"add_new_expense": "أضف نفقات جديدة",
|
||||
"save_expense": "حفظ النفقات",
|
||||
"update_expense": "تحديث النفقات",
|
||||
"download_receipt": "تنزيل السند",
|
||||
"edit_expense": "تعديل النفقات",
|
||||
"new_expense": "نفقات جديدة",
|
||||
"expense": "إنفاق | نفقات",
|
||||
"no_expenses": "لا يوجد نفقات حتى الآن!",
|
||||
"list_of_expenses": "هذه القائمة ستحتوي النفقات الخاصة بك",
|
||||
|
||||
"confirm_delete": "لن تتمكن من استرجاع هذا الإنفاق | لن تتمكن من استرجاع هذه النفقات",
|
||||
"created_message": "تم إنشاء النفقات بنجاح",
|
||||
"updated_message": "تم تحديث النفقات بنجاح",
|
||||
"deleted_message": "تم حذف النفقات بنجاح",
|
||||
"categories": {
|
||||
"categories_list": "قائمة الفئات",
|
||||
"title": "العنوان",
|
||||
"name": "الاسم",
|
||||
"description": "الوصف",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"actions": "العمليات",
|
||||
"add_category": "إضافة فئمة",
|
||||
"new_category": "فئة جديدة",
|
||||
"category": "فئة | فئات",
|
||||
"select_a_category": "اختر الفئة"
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"email": "البريد الإلكتروني",
|
||||
"password": "كلمة المرور",
|
||||
"forgot_password": "نسيت كلمة المرور؟",
|
||||
"or_signIn_with": "أو سجل الدخول بواسطة",
|
||||
"login": "دخول",
|
||||
"register": "تسجيل",
|
||||
"reset_password": "إعادة تعيين كلمة المرور",
|
||||
"password_reset_successfully": "تم إعادة تعيين كلمة المرور بنجاح",
|
||||
"enter_email": "أدخل البريد الالكتروني",
|
||||
"enter_password": "أكتب كلمة المرور",
|
||||
"retype_password": "أعد كتابة كلمة المرور",
|
||||
"login_placeholder": "mail@example.com"
|
||||
},
|
||||
"reports": {
|
||||
"title": "تقرير",
|
||||
"from_date": "من تاريخ",
|
||||
"to_date": "حتى تاريخ",
|
||||
"status": "الحالة",
|
||||
"paid": "مدفوع",
|
||||
"unpaid": "غير مدفوع",
|
||||
"download_pdf": "تنزيل PDF",
|
||||
"view_pdf": "عرض PDF",
|
||||
"update_report": "تحديث التقرير",
|
||||
"report": "تقرير | تقارير",
|
||||
"profit_loss": {
|
||||
"profit_loss": "الخسائر والأرباح",
|
||||
"to_date": "حتى تاريخ",
|
||||
"from_date": "من تاريخ",
|
||||
"date_range": "اختر مدى التاريخ"
|
||||
},
|
||||
"sales": {
|
||||
"sales": "المبيعات",
|
||||
"date_range": "اختر مدى التاريخ",
|
||||
"to_date": "حتى تاريخ",
|
||||
"from_date": "من تاريخ",
|
||||
"report_type": "نوع التقرير"
|
||||
},
|
||||
"taxes": {
|
||||
"taxes": "الضرائب",
|
||||
"to_date": "حتى تاريخ",
|
||||
"from_date": "من تاريخ",
|
||||
"date_range": "اختر مدى التاريخ"
|
||||
},
|
||||
"errors": {
|
||||
"required": "حقل مطلوب"
|
||||
},
|
||||
"invoices": {
|
||||
"invoice": "الفاتورة",
|
||||
"invoice_date": "تاريخ الفاتورة",
|
||||
"due_date": "تاريخ الاستحقاق",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"contact_name": "اسم التواصل",
|
||||
"status": "الحالة"
|
||||
},
|
||||
"estimates": {
|
||||
"estimate": "تقدير",
|
||||
"estimate_date": "تاريخ التقدير",
|
||||
"due_date": "مستحق بتاريخ",
|
||||
"estimate_number": "رقم مستحق",
|
||||
"ref_number": "رقم المرجع",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"contact_name": "اسم التواصل",
|
||||
"status": "الحالة"
|
||||
},
|
||||
"expenses": {
|
||||
"expenses": "النفقات",
|
||||
"category": "الفئة",
|
||||
"date": "التاريخ",
|
||||
"amount": "المبلغ المطلوب",
|
||||
"to_date": "حتى تاريخ",
|
||||
"from_date": "من تاريخ",
|
||||
"date_range": "اختر مدى التاريخ"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"menu_title": {
|
||||
"account_settings": "إعدادات الحساب",
|
||||
"company_information": "معلومات المنشأة",
|
||||
"customization": "تخصيص",
|
||||
"preferences": "تفضيلات",
|
||||
"notifications": "تنبيهات",
|
||||
"tax_types": "نوع الضريبة",
|
||||
"expense_category": "فئات النفقات",
|
||||
"update_app": "تحديث النظام"
|
||||
},
|
||||
"title": "إعدادات",
|
||||
"setting": "إعدادات | إعدادات",
|
||||
"general": "عام",
|
||||
"language": "اللغة",
|
||||
"primary_currency": "العملة الرئيسية",
|
||||
"timezone": "المنطقة الزمنية",
|
||||
"date_format": "صيغة التاريخ",
|
||||
"currencies": {
|
||||
"title": "العملات",
|
||||
"currency": "العملة | العملات",
|
||||
"currencies_list": "قائمة العملات",
|
||||
"select_currency": "اختر العملة",
|
||||
"name": "الاسم",
|
||||
"code": "المرجع",
|
||||
"symbol": "الرمز",
|
||||
"precision": "الدقة",
|
||||
"thousand_separator": "فاصل الآلاف",
|
||||
"decimal_separator": "الفاصلة العشرية",
|
||||
"position": "الموقع",
|
||||
"position_of_symbol": "موقع رمز العملة",
|
||||
"right": "يمين",
|
||||
"left": "يسار",
|
||||
"action": "إجراء",
|
||||
"add_currency": "أضف عملة"
|
||||
},
|
||||
"mail": {
|
||||
"host": "خادم البريد",
|
||||
"port": "منفذ البريد",
|
||||
"driver": "مشغل البريد",
|
||||
"secret": "سري",
|
||||
"mailgun_secret": "الرمز السري لـ Mailgun",
|
||||
"mailgun_domain": "المجال",
|
||||
"mailgun_endpoint": "النهاية الطرفية لـ Mailgun",
|
||||
"ses_secret": "SES الرمز السري",
|
||||
"ses_key": "SES مفتاح",
|
||||
"password": "كلمة مرور البريد الالكتروني",
|
||||
"username": "اسم المستخدم للبريد الإلكتروني",
|
||||
"mail_config": "إعدادات البريد الالكتروني",
|
||||
"from_name": "اسم المرسل",
|
||||
"from_mail": "عنوان البريد الالكتروني للمرسل",
|
||||
"encryption": "صيغة ا لتشفير",
|
||||
"mail_config_desc": "أدناه هو نموذج لتكوين برنامج تشغيل البريد الإلكتروني لإرسال رسائل البريد الإلكتروني من التطبيق. يمكنك أيضًا تهيئة موفري الجهات الخارجية مثل Sendgrid و SES إلخ."
|
||||
},
|
||||
"pdf": {
|
||||
"title": "PDF إعدادات",
|
||||
"footer_text": "نص التذييل",
|
||||
"pdf_layout": "اتجاه صفحة PDF"
|
||||
},
|
||||
"company_info": {
|
||||
"company_info": "معلومات الشركة",
|
||||
"company_name": "اسم الشركة",
|
||||
"company_logo": "شعار الشركة",
|
||||
"section_description": "معلومات عن شركتك سيتم عرضها على الفواتير والتقديرات والمستندات الأخرى.",
|
||||
"phone": "الهاتف",
|
||||
"country": "الدولة",
|
||||
"state": "الولاية/المنطقة",
|
||||
"city": "المدينة",
|
||||
"address": "العنوان",
|
||||
"zip": "الرمز البريدي",
|
||||
"save": "حفظ",
|
||||
"updated_message": "تم تحديث معلومات الشركة بنجاح"
|
||||
},
|
||||
"customization": {
|
||||
"customization": "التخصيص",
|
||||
"save": "حفظ",
|
||||
"addresses": {
|
||||
"title": "العنوان",
|
||||
"section_description": "يمكنك ضبط عنوان إرسال فواتير العملاء وتنسيق عنوان شحن العملاء (معروض في PDF فقط).",
|
||||
"customer_billing_address": "عنوان فواتير العميل",
|
||||
"customer_shipping_address": "عنوان الشحن للعميل",
|
||||
"company_address": "عنوان الشركة",
|
||||
"insert_fields": "أضف حقل",
|
||||
"contact": "تواصل",
|
||||
"address": "العنوان",
|
||||
"display_name": "الاسم الظاهر",
|
||||
"primary_contact_name": "مسؤول التواصل الرئيسي",
|
||||
"email": "البريد الإلكتروني",
|
||||
"website": "موقع الإنترنت",
|
||||
"name": "الاسم",
|
||||
"country": "الدولة",
|
||||
"state": "الولاية/المنطقة",
|
||||
"city": "المدينة",
|
||||
"company_name": "اسم الشركة",
|
||||
"address_street_1": "عنوان الشارع 1",
|
||||
"address_street_2": "عنوان الشارع 2",
|
||||
"phone": "الهاتف",
|
||||
"zip_code": "الرمز البريدي",
|
||||
"address_setting_updated": "تم تحديث العنوان بنجاح"
|
||||
},
|
||||
"updated_message": "تم تحديث معلومات الشركة بنجاح",
|
||||
|
||||
"invoices": {
|
||||
"title": "الفواتير",
|
||||
"notes": "ملاحظات",
|
||||
"invoice_prefix": "بادئة رقم الفاتورة",
|
||||
"invoice_settings": "إعدادات الفاتورة",
|
||||
"autogenerate_invoice_number": "ترقيم آلي للفاتورة",
|
||||
"invoice_setting_description": "تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الفاتورة تلقائيًا في كل مرة تقوم فيها بإنشاء فاتورة جديدة.",
|
||||
"enter_invoice_prefix": "أدخل بادئة رقم الفاتورة",
|
||||
"terms_and_conditions": "الأحكام والشروط",
|
||||
"invoice_setting_updated": "تم تحديث إعداد الفاتورة بنجاح"
|
||||
},
|
||||
|
||||
"estimates": {
|
||||
"title": "التقديرات",
|
||||
"estimate_prefix": "بادئة رقم التقدير",
|
||||
"estimate_settings": "إعدادت التقدير",
|
||||
"autogenerate_estimate_number": "ترقيم آلي للتقدير",
|
||||
"estimate_setting_description": "تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام التقديرات تلقائيًا في كل مرة تقوم فيها بإنشاء تقدير جديد.",
|
||||
"enter_estimate_prefix": "أدخل بادئة رقم التقدير",
|
||||
"estimate_setting_updated": "تم تحديث إعدادات التقدير بنجاح"
|
||||
},
|
||||
|
||||
"payments": {
|
||||
"title": "المدفوعات",
|
||||
"payment_prefix": "بادئة رقم الدفعة",
|
||||
"payment_settings": "إعدادات الدفعة",
|
||||
"autogenerate_payment_number": "ترقيم آلي للمدفوعات",
|
||||
"payment_setting_description": "تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الدفعة تلقائيًا في كل مرة تقوم فيها بإنشاء دفعة جديدة.",
|
||||
"enter_payment_prefix": "أدخل بادئة رقم الدفعة",
|
||||
"payment_setting_updated": "تم تحديث إعدادات الدفعة بنجاح"
|
||||
}
|
||||
},
|
||||
"account_settings": {
|
||||
"profile_picture": "صورة الملف الشخصي",
|
||||
"name": "الاسم",
|
||||
"email": "البريد الإلكتروني",
|
||||
"password": "كلمة المرور",
|
||||
"confirm_password": "أعد كتابة كلمة المرور",
|
||||
"account_settings": "إعدادات الجساب",
|
||||
"save": "حفظ",
|
||||
"section_description": "يمكنك تحديث اسمك والبريد الإلكتروني وكلمة المرور باستخدام النموذج أدناه.",
|
||||
"updated_message": "تم تحديث إعدادات الحساب بنجاح"
|
||||
},
|
||||
"user_profile": {
|
||||
"name": "الاسم",
|
||||
"email": "البريد الإلكتروني",
|
||||
"password": "كلمة المرور",
|
||||
"confirm_password": "أعد كتابة كلمة المرور"
|
||||
},
|
||||
"notification": {
|
||||
"title": "الإشعارات",
|
||||
"email": "إرسال الإشعارات إلى",
|
||||
"description": "ما هي إشعارات البريد الإلكتروني التي ترغب في تلقيها عندما يتغير شيء ما؟",
|
||||
"invoice_viewed": "تم عرض الفاتورة",
|
||||
"invoice_viewed_desc": "عندما يستعرض عميلك الفاتورة المرسلة عبر الشاشة الرئيسية.",
|
||||
"estimate_viewed": "تم عرض التقدير",
|
||||
"estimate_viewed_desc": "عندما يستعرض عميلك التقدير المرسلة عبر الشاشة الرئيسية.",
|
||||
"save": "حفظ",
|
||||
"email_save_message": "تم حفظ البريد الإلكتروني بنجاح",
|
||||
"please_enter_email": "فضلاً أدخل البريد الإلكتروني"
|
||||
},
|
||||
"tax_types": {
|
||||
"title": "أنواع الضرائب",
|
||||
"add_tax": "أضف ضريبة",
|
||||
"description": "يمكنك إضافة أو إزالة الضرائب كما يحلو لك. النظام يدعم الضرائب على العناصر الفردية وكذلك على الفاتورة.",
|
||||
"add_new_tax": "إضافة ضريبة جديدة",
|
||||
"tax_settings": "إعدادات الضريبة",
|
||||
"tax_per_item": "ضريبة على الصنف",
|
||||
"tax_name": "اسم الضريبة",
|
||||
"compound_tax": "ضريبة مجمعة",
|
||||
"percent": "نسبة مؤوية",
|
||||
"action": "إجراء",
|
||||
"tax_setting_description": "قم بتمكين هذا إذا كنت تريد إضافة ضرائب لعناصر الفاتورة الفردية. بشكل افتراضي ، تضاف الضرائب مباشرة إلى الفاتورة.",
|
||||
"created_message": "تم إنشاء نوع الضريبة بنجاح",
|
||||
"updated_message": "تم تحديث نوع الضريبة بنجاح",
|
||||
"deleted_message": "تم حذف نوع الضريبة بنجاح",
|
||||
"confirm_delete": "لن تتمكن من استرجاع نوع الضرية هذا",
|
||||
"already_in_use": "ضريبة قيد الاستخدام"
|
||||
},
|
||||
"expense_category": {
|
||||
"title": "فئات النفقات",
|
||||
"action": "إجراء",
|
||||
"description": "الفئات مطلوبة لإضافة إدخالات النفقات. يمكنك إضافة أو إزالة هذه الفئات وفقًا لتفضيلاتك.",
|
||||
"add_new_category": "إضافة فئة جديدة",
|
||||
"category_name": "اسم الفئة",
|
||||
"category_description": "الوصف",
|
||||
"created_message": "تم إنشاء نوع النفقات بنجاح",
|
||||
"deleted_message": "تم حذف نوع النفقات بنجاح",
|
||||
"updated_message": "تم تحديث نوع النفقات بنجاح",
|
||||
"confirm_delete": "لن تتمكن من استرجاع نوع النفقات هذا",
|
||||
"already_in_use": "نوع قيد الاستخدام"
|
||||
},
|
||||
"preferences": {
|
||||
"currency": "العملة",
|
||||
"language": "اللغة",
|
||||
"time_zone": "المنطة الزمنية",
|
||||
"fiscal_year": "السنة المالية",
|
||||
"date_format": "صيغة التاريخ",
|
||||
"discount_setting": "إعدادات الخصم",
|
||||
"discount_per_item": "خصم على الصنف ",
|
||||
"discount_setting_description": "قم بتمكين هذا إذا كنت تريد إضافة خصم إلى عناصر الفاتورة الفردية. بشكل افتراضي ، يتم إضافة الخصم مباشرة إلى الفاتورة.",
|
||||
"save": "حفظ",
|
||||
"preference": "تفضيل | تفضيلات",
|
||||
"general_settings": "التفضيلات الافتراضية للنظام.",
|
||||
"updated_message": "تم تحديث التفضيلات بنجاح",
|
||||
"select_language": "اختر اللغة",
|
||||
"select_time_zone": "اختر المنطة الزمنية",
|
||||
"select_date_formate": "اختر صيغة التاريخ",
|
||||
"select_financial_year": "اختر السنة المالية"
|
||||
},
|
||||
"update_app": {
|
||||
"title": "تحديث النظام",
|
||||
"description": "يمكنك تحديث النظام بسهولة عن طريق البحث عن تحديث جديد بالنقر فوق الزر أدناه",
|
||||
"check_update": "تحقق من التحديثات",
|
||||
"avail_update": "تحديث جديد متوفر",
|
||||
"next_version": "النسخة الجديدة",
|
||||
"update": "حدث الآن",
|
||||
"update_progress": "قيد التحديث...",
|
||||
"progress_text": "سوف يستغرق التحديث بضع دقائق. يرجى عدم تحديث الشاشة أو إغلاق النافذة قبل انتهاء التحديث",
|
||||
"update_success": "تم تحديث النظام! يرجى الانتظار حتى يتم إعادة تحميل نافذة المتصفح تلقائيًا.",
|
||||
"latest_message": "لا يوجد تحديثات متوفرة! لديك حالياً أحدث نسخة.",
|
||||
"current_version": "النسخة الحالية"
|
||||
}
|
||||
},
|
||||
"wizard": {
|
||||
"account_info": "معلومات الحساب",
|
||||
"account_info_desc": "سيتم استخدام التفاصيل أدناه لإنشاء حساب المسؤول الرئيسي. كما يمكنك تغيير التفاصيل في أي وقت بعد تسجيل الدخول.",
|
||||
"name": "الاسم",
|
||||
"email": "البريد الإلكتروني",
|
||||
"password": "كلمة المرور",
|
||||
"confirm_password": "أعد كتابة كلمة المرور",
|
||||
"save_cont": "حفظ واستمرار",
|
||||
"company_info": "معلومات الشركة",
|
||||
"company_info_desc": "سيتم عرض هذه المعلومات على الفواتير. لاحظ أنه يمكنك تعديل هذا لاحقًا في صفحة الإعدادات.",
|
||||
"company_name": "اسم الشركة",
|
||||
"company_logo": "شعار الشركة",
|
||||
"logo_preview": "استعراض الشعار",
|
||||
"preferences": "التفضيلات",
|
||||
"preferences_desc": "التفضيلات الافتراضية للنظام",
|
||||
"country": "الدولة",
|
||||
"state": "الولاية/المنطقة",
|
||||
"city": "المدينة",
|
||||
"address": "العنوان",
|
||||
"street": "العنوان 1 | العنوان 2",
|
||||
"phone": "الهاتف",
|
||||
"zip_code": "الرمز البريدي",
|
||||
"go_back": "للخلف",
|
||||
"currency": "العملة",
|
||||
"language": "اللغة",
|
||||
"time_zone": "المنطة الزمنية",
|
||||
"fiscal_year": "السنة المالية",
|
||||
"date_format": "صيغة التاريخ",
|
||||
"from_address": "من العنوان",
|
||||
"username": "اسم المستخدم",
|
||||
"next": "التالي",
|
||||
"continue": "استمرار",
|
||||
"skip": "تخطي",
|
||||
"database": {
|
||||
"database": "عنوان قاعدة البيانات",
|
||||
"connection": "اتصال قاعدة البيانات",
|
||||
"host": "خادم قاعدة البيانات",
|
||||
"port": "منفذ قاعدة البيانات",
|
||||
"password": "كلمة مرور قاعدة البيانات",
|
||||
"app_url": "عنوان الإنترنت للنظام",
|
||||
"username": "اسم المستخدم لقاعدة البيانات",
|
||||
"db_name": "سم قاعدة البيانات",
|
||||
"desc": "قم بإنشاء قاعدة بيانات على الخادم الخاص بك وتعيين بيانات الاعتماد باستخدام النموذج أدناه."
|
||||
},
|
||||
"permissions": {
|
||||
"permissions": "الأذونات",
|
||||
"permission_confirm_title": "هل أنت متأكد من الاستمرار؟",
|
||||
"permission_confirm_desc": "فشل فحص أذونات المجلد",
|
||||
"permission_desc": "فيما يلي قائمة أذونات المجلد المطلوبة حتى يعمل التطبيق. في حالة فشل فحص الإذن ، تأكد من تحديث أذونات المجلد."
|
||||
},
|
||||
"mail": {
|
||||
"host": "خادم البريد",
|
||||
"port": "منفذ البريد",
|
||||
"driver": "مشغل البريد",
|
||||
"secret": "سري",
|
||||
"mailgun_secret": "الرمز السري لـ Mailgun",
|
||||
"mailgun_domain": "المجال",
|
||||
"mailgun_endpoint": "النهاية الطرفية لـ Mailgun",
|
||||
"ses_secret": "SES الرمز السري",
|
||||
"ses_key": "SES مفتاح",
|
||||
"password": "كلمة مرور البريد الالكتروني",
|
||||
"username": "اسم المستخدم للبريد الإلكتروني",
|
||||
"mail_config": "إعدادات البريد الالكتروني",
|
||||
"from_name": "اسم المرسل",
|
||||
"from_mail": "عنوان البريد الالكتروني للمرسل",
|
||||
"encryption": "صيغة ا لتشفير",
|
||||
"mail_config_desc": "أدناه هو نموذج لتكوين برنامج تشغيل البريد الإلكتروني لإرسال رسائل البريد الإلكتروني من التطبيق. يمكنك أيضًا تهيئة موفري الجهات الخارجية مثل Sendgrid و SES إلخ."
|
||||
},
|
||||
"req": {
|
||||
"system_req": "متطلبات النظام",
|
||||
"php_req_version": "Php (النسخة المطلوبة {version} بحد أدنى)",
|
||||
"check_req": "فحص متطلبات النظام",
|
||||
"system_req_desc": "يحتوي النظام على بعض متطلبات الخادم. تأكد من أن خادمك لديه نسخة php المطلوبة وجميع الامتدادات المذكورة أدناه."
|
||||
},
|
||||
"errors": {
|
||||
"migrate_failed": "فشل إنشاء الجداول",
|
||||
"database_variables_save_error": "غير قادر على الاتصال بقاعدة البيانات باستخدام القيم المقدمة.",
|
||||
"mail_variables_save_error": "فشل تكوين البريد الإلكتروني.",
|
||||
"connection_failed": "فشل اتصال قاعدة البيانات",
|
||||
"database_should_be_empty": "يجب أن تكون قاعدة البيانات فارغة"
|
||||
},
|
||||
"success": {
|
||||
"mail_variables_save_successfully": "تم تكوين البريد الإلكتروني بنجاح",
|
||||
"database_variables_save_successfully": "تم تكوين قاعدة البيانات بنجاح."
|
||||
}
|
||||
},
|
||||
"layout_login": {
|
||||
"copyright_crater": "حقوق الطبع والنشر @ كريتر - 2020",
|
||||
"super_simple_invoicing": "فوترة سهلة ومبسطة للغاية",
|
||||
"for_freelancer": "للمبرمجين المستقلين",
|
||||
"small_businesses": "والأعال الصغيرة ",
|
||||
"crater_help": "كريتر يساعدك على تتبع النفقات وتسجيل المدفوعات وإنشاء",
|
||||
"invoices_and_estimates": "الفواتير والتقديرات مع إمكانية اختيار قوالب متعددة."
|
||||
},
|
||||
"validation": {
|
||||
"invalid_url": "عنوان انترنت غير صحيح (مثال: http://www.crater.com)",
|
||||
"required": "حقل مطلوب",
|
||||
"email_incorrect": "بريد الكتروني غير صحيح.",
|
||||
"email_already_taken": "هذا البريد الالكتروني مستخدم مسبقاً",
|
||||
"email_does_not_exist": "لا يوجد كستخدم بهذا البريد الالكتروني",
|
||||
"item_unit_already_taken": "وحدة البند قد اتخذت بالفعل",
|
||||
"payment_mode_already_taken": "لقد تم بالفعل أخذ طريقة الدفع",
|
||||
"send_reset_link": "أرسال رابط استعادة كلمة المرور",
|
||||
"not_yet": "ليس بعد؟ أعد الإرسال الآن..",
|
||||
"password_min_length": "كلمة المرور يجب أن تتكون من {count} أحرف على الأقل",
|
||||
"name_min_length": "الاسم يجب أن يتكون من {count} أحرف على الأقل",
|
||||
"enter_valid_tax_rate": "أدخل معدل الضريبة بشكل صحيح",
|
||||
"numbers_only": "أرقام فقط.",
|
||||
"characters_only": "حروف فقط.",
|
||||
"password_incorrect": "يجب أن تكون كلمات المرور متطابقة",
|
||||
"password_length": "يجب أن تكون كلمة المرور بطول {count} حرف.",
|
||||
"qty_must_greater_than_zero": "الكمية يجب أن تكون أكبر من صفر.",
|
||||
"price_greater_than_zero": "السعر يجب أن يكون أكبر من صفر.",
|
||||
"payment_greater_than_zero": "الدفعة يجب أن تكون أكبر من صفر.",
|
||||
"payment_greater_than_due_amount": "مبلغ الدفعة أكثر من المبلغ المستحق لهذه الفاتورة.",
|
||||
"quantity_maxlength": "يجب ألا تزيد الكمية عن 20 رقماً.",
|
||||
"price_maxlength": "يجب ألا يزيد السعر عن 20 رقماً.",
|
||||
"price_minvalue": "يجب أن يكون السعر أكبر من صفر.",
|
||||
"amount_maxlength": "يجب ألا يزيد المبلغ عن 20 رقماً.",
|
||||
"amount_minvalue": "يجب أن يكون المبلغ أكبر من صفر.",
|
||||
"description_maxlength": "يجب ألا يزيد الوصف عن 255 حرفاً.",
|
||||
"maximum_options_error": "الحد الأعلى هو {max} خيارات. قم بإزالة أحد الخيارات لتحديد خيار آخر.",
|
||||
"notes_maxlength": "يجب ألا يزيد حجم الملاحظات عن 255 حرفاً.",
|
||||
"address_maxlength": "يجب ألا يزيد العنوان عن 255 حرفاً.",
|
||||
"ref_number_maxlength": "يجب ألا يزيد الرقم المرجعي عن 255 حرفاً.",
|
||||
"prefix_maxlength": "يجب ألا تزيد البادئة عن 5 أحرف."
|
||||
}
|
||||
}
|
||||
880
resources/assets/js/plugins/de.json
Normal file
880
resources/assets/js/plugins/de.json
Normal file
@ -0,0 +1,880 @@
|
||||
{
|
||||
"credit_notes": {
|
||||
"action": "Aktion",
|
||||
"amount": "Summe",
|
||||
"confirm_delete": "Wollen Sie diese Gutschrift löschen?",
|
||||
"contact": "Kontakt",
|
||||
"credit_notes": "Gutschriften",
|
||||
"credit_notes_list": "Gutschriften-Liste",
|
||||
"credit_number": "Kreditkarten-Nummer",
|
||||
"date": "Datum",
|
||||
"item": {
|
||||
"description": "Beschreibung",
|
||||
"discount": "Rabatt",
|
||||
"price": "Preis",
|
||||
"quantity": "Menge",
|
||||
"sub_total": "Zwischensumme",
|
||||
"tax": "Steuer",
|
||||
"title": "Titel",
|
||||
"total": "Gesamt",
|
||||
"total_discount": "Rabatt Gesamt"
|
||||
},
|
||||
"notes": "Hinweise",
|
||||
"title": "Gutschriften"
|
||||
},
|
||||
"customers": {
|
||||
"action": "Aktion",
|
||||
"add_customer": "Kunde hinzufügen",
|
||||
"add_new_customer": "Neuen Kunden hinzufügen",
|
||||
"added_on": "Hinzugefügt am",
|
||||
"address": "Adresse",
|
||||
"amount_due": "Offener Betrag",
|
||||
"basic_info": "Basisinformation",
|
||||
"billing_address": "Rechnungsadresse",
|
||||
"city": "Stadt",
|
||||
"confirm_delete": "Sie können diesen Kunden nicht wiederherstellen | Sie können diese Kunden nicht wiederherstellen",
|
||||
"contact_name": "Kontakt Name",
|
||||
"contacts_list": "Kunden-Liste",
|
||||
"copy_billing_address": "Rechnungsadresse kopieren",
|
||||
"country": "Land",
|
||||
"created_message": "Kunde erfolgreich erstellt",
|
||||
"customer": "Kunde | Kunden",
|
||||
"deleted_message": "Kunden erfolgreich gelöscht | Kunden erfolgreich gelöscht",
|
||||
"display_name": "Anzeige Name",
|
||||
"edit_customer": "Kunde bearbeiten",
|
||||
"email": "E-Mail",
|
||||
"list_of_customers": "Dieser Abschnitt enthält die Liste der Kunden.",
|
||||
"name": "Name",
|
||||
"new_customer": "Neuer Kunde",
|
||||
"no_customers": "Noch keine Kunden!",
|
||||
"no_customers_found": "Keine Kunden gefunden!",
|
||||
"password": "Passwort",
|
||||
"phone": "Telefon",
|
||||
"primary_contact_name": "Ansprechpartner",
|
||||
"primary_currency": "Primäre Währung",
|
||||
"primary_display_name": "Primärer Anzeige Name",
|
||||
"save_customer": "Kunde speichern",
|
||||
"select_a_customer": "Wählen Sie einen Kunden",
|
||||
"select_city": "Stadt wählen",
|
||||
"select_country": "Land wählen",
|
||||
"select_currency": "Währung wählen",
|
||||
"select_state": "Bundesland wählen",
|
||||
"shipping_address": "Versand-Adresse",
|
||||
"state": "Bundesland",
|
||||
"street_1": "Strasse",
|
||||
"street_2": "Adresszusatz",
|
||||
"street_number": "Hausnummer",
|
||||
"title": "Kunden",
|
||||
"type_or_click": "Eingeben oder anklicken zum auswählen",
|
||||
"update_customer": "Kunden ändern",
|
||||
"updated_message": "Kunde erfolgreich aktualisiert",
|
||||
"website": "Webseite",
|
||||
"zip_code": "PLZ"
|
||||
},
|
||||
"dashboard": {
|
||||
"cards": {
|
||||
"customers": "Kunden",
|
||||
"due_amount": "Offene Beträge",
|
||||
"estimates": "Kostenvoranschläge",
|
||||
"invoices": "Rechnungen"
|
||||
},
|
||||
"chart_info": {
|
||||
"net_income": "Einnahmen Netto",
|
||||
"total_expense": "Gesamtausgaben",
|
||||
"total_receipts": "Eingänge gesamt",
|
||||
"total_sales": "Verkäufe gesamt",
|
||||
"year": "Jahr"
|
||||
},
|
||||
"monthly_chart": {
|
||||
"title": "Umsatz & Kosten"
|
||||
},
|
||||
"recent_estimate_card": {
|
||||
"actions": "Aktionen",
|
||||
"amount_due": "Betrag",
|
||||
"customer": "Kunden",
|
||||
"date": "Datum",
|
||||
"title": "Aktuelle Kostenvoranschläge",
|
||||
"view_all": "Alle Anzeigen"
|
||||
},
|
||||
"recent_invoices_card": {
|
||||
"actions": "Aktionen",
|
||||
"amount_due": "Offener Betrag",
|
||||
"customer": "Kunden",
|
||||
"due_on": "Fällig am",
|
||||
"title": "Fällige Rechnungen",
|
||||
"view_all": "Alle Anzeigen"
|
||||
},
|
||||
"select_year": "Jahr wählen",
|
||||
"weekly_invoices": {
|
||||
"title": "Wöchentliche Rechnungen"
|
||||
}
|
||||
},
|
||||
"estimates": {
|
||||
"Estimate": "Kostenvoranschlag | Kostenvoranschläge",
|
||||
"accepted": "Angenommen",
|
||||
"action": "Aktion",
|
||||
"add_estimate": "Kostenvoranschlag hinzufügen",
|
||||
"add_item": "Fügen Sie ein Artikel hinzu",
|
||||
"add_new_estimate": "Neuen Kostenvoranschlag hinzufügen",
|
||||
"add_new_tax": "neuen Steuersatz hinzufügen",
|
||||
"add_tax": "Steuer hinzufügen",
|
||||
"all": "Alle",
|
||||
"amount": "Summe",
|
||||
"amount_due": "OFFENER BETRAG",
|
||||
"confirm_conversion": "Sie möchten, konvertieren Sie diese Schätzung in die Rechnung?",
|
||||
"confirm_delete": "Der Kostenvoranschlag kann nicht wiederhergestellt werden | Die Kostenvoranschläge können nicht wiederhergestellt werden",
|
||||
"confirm_mark_as_accepted": "Dieser Kostenvoranschlag wird als angenommen markiert",
|
||||
"confirm_mark_as_rejected": "Dieser Kostenvoranschlag wird als abgelehnt markiert",
|
||||
"confirm_mark_as_sent": "Dieser Kostenvoranschlag wird als gesendet markiert",
|
||||
"confirm_send_estimate": "Der Kostenvoranschlag wird per E-Mail an den Kunden gesendet",
|
||||
"contact": "Kontakt",
|
||||
"conversion_message": "Rechnung erfolgreich erstellt",
|
||||
"convert_to_invoice": "Konvertieren in Rechnung",
|
||||
"created_message": "Kostenvoranschlag erfolgreich erstellt",
|
||||
"customer": "KUNDEN",
|
||||
"date": "Datum",
|
||||
"days": "{days} Tage",
|
||||
"declined": "Abgelehnt",
|
||||
"deleted_message": "Kostenvoranschlag erfolgreich gelöscht | Kostenvoranschläge erfolgreich gelöscht",
|
||||
"discount": "Rabatt",
|
||||
"draft": "Entwurf",
|
||||
"due_date": "Fälligkeit",
|
||||
"edit_estimate": "Kostenvoranschlag ändern",
|
||||
"errors": {
|
||||
"required": "Feld ist erforderlich"
|
||||
},
|
||||
"estimate": "Kostenvoranschlag | Kostenvoranschläge",
|
||||
"estimate_number": "Kostenvoran. Nummer",
|
||||
"estimate_template": "Vorlage",
|
||||
"estimates_list": "Liste Kostenvoranschläge",
|
||||
"expiry_date": "Zahlungsziel",
|
||||
"item": {
|
||||
"amount": "Summe",
|
||||
"description": "Beschreibung",
|
||||
"discount": "Rabatt",
|
||||
"price": "Preis",
|
||||
"quantity": "Menge",
|
||||
"select_an_item": "Wählen Sie einen Artikel",
|
||||
"sub_total": "Zwischensumme",
|
||||
"tax": "Steuer",
|
||||
"title": "Titel",
|
||||
"total": "Gesamt",
|
||||
"total_discount": "Rabatt Gesamt",
|
||||
"type_item_description": "Artikel Beschreibung (optional)"
|
||||
},
|
||||
"items": "Artikel",
|
||||
"list_of_estimates": "Dieser Abschnitt enthält die Liste der Kostenvoranschläge.",
|
||||
"mark_as_accepted": "Markiert als angenommen",
|
||||
"mark_as_rejected": "Markiert als abgelehnt",
|
||||
"mark_as_sent": "Als gesendet markieren",
|
||||
"mark_as_sent_successfully": "Kostenvoranschlag als gesendet markiert.",
|
||||
"marked_as_accepted_message": "Kostenvoranschlag als angenommen markiert",
|
||||
"marked_as_rejected_message": "Kostenvoranschlag als abgelehnt markiert",
|
||||
"months": "{months} Monat",
|
||||
"new_estimate": "Neuer Kostenvoranschlag",
|
||||
"no_estimates": "Keine Kostenvoranschläge vorhanden!",
|
||||
"no_matching_estimates": "Es gibt keine übereinstimmenden Kostenvoranschläge!",
|
||||
"notes": "Hinweise",
|
||||
"number": "ANZAHL",
|
||||
"paid": "Bezahlt",
|
||||
"partially_paid": "Teilweise bezahlt",
|
||||
"record_payment": "Zahlung erfassen",
|
||||
"ref_no": "REF. - NR.",
|
||||
"ref_number": "Ref-Nummer",
|
||||
"save_estimate": "Kostenvoranschlag speichern",
|
||||
"send_estimate": "Kostenvoranschlag senden",
|
||||
"send_estimate_successfully": "Kostenvoranschlag erfolgreich gesendet",
|
||||
"sent": "Gesendet",
|
||||
"something_went_wrong": "Da ging etwas schief",
|
||||
"status": "Status",
|
||||
"sub_total": "Zwischensumme",
|
||||
"tax": "Steuer",
|
||||
"title": "Kostenvoranschläge",
|
||||
"total": "Gesamt",
|
||||
"unpaid": "Unbezahlte",
|
||||
"update_Estimate": "Kostenvoranschlag aktualisieren",
|
||||
"updated_message": "Kostenvoranschlag erfolgreich aktualisiert",
|
||||
"user_email_does_not_exist": "Benutzer-E-Mail nicht vorhanden",
|
||||
"years": "{years} Jahre"
|
||||
},
|
||||
"expenses": {
|
||||
"action": "Aktion",
|
||||
"add_expense": "Aufwendung hinzufügen",
|
||||
"add_new_expense": "Neue Aufwendung hinzufügen",
|
||||
"select_a_customer": "Wählen Sie einen Kunden aus",
|
||||
"amount": "Summe",
|
||||
"categories": {
|
||||
"actions": "Aktionen",
|
||||
"add_category": "Kategorie hinzufügen",
|
||||
"amount": "Summe",
|
||||
"categories_list": "Liste der Kategorien",
|
||||
"category": "Kategorie | Kategorien",
|
||||
"description": "Beschreibung",
|
||||
"name": "Name",
|
||||
"new_category": "Neue Kategorie",
|
||||
"select_a_category": "Wählen Sie eine Kategorie",
|
||||
"title": "Titel"
|
||||
},
|
||||
"category": "Kategorie",
|
||||
"customer": "Kunden",
|
||||
"category_id": "Kategorie-Id",
|
||||
"confirm_delete": "Sie können diese Ausgabe nicht wiederherstellen. | Sie können diese Ausgaben nicht wiederherstellen.",
|
||||
"contact": "Kontakt",
|
||||
"created_message": "Aufwand erfolgreich erstellt",
|
||||
"date": "Aufwandsdatum",
|
||||
"deleted_message": "Aufwand erfolgreich gelöscht | Aufwand erfolgreich gelöscht",
|
||||
"description": "Beschreibung",
|
||||
"download_receipt": "Quittung herunterladen",
|
||||
"edit_expense": "Aufwendung ändern",
|
||||
"expense": "Aufwendung | Aufwendungen",
|
||||
"expense_date": "Datum",
|
||||
"expense_title": "Titel",
|
||||
"expenses_list": "Liste der Ausgaben",
|
||||
"from_date": "Von Datum",
|
||||
"list_of_expenses": "Dieser Abschnitt enthält die Liste der Ausgaben.",
|
||||
"new_expense": "Neue Aufwendung",
|
||||
"no_expenses": "Noch keine Ausgaben!",
|
||||
"note": "Hinweis",
|
||||
"receipt": "Eingang",
|
||||
"save_expense": "Aufwendung speichern",
|
||||
"title": "Aufwendungen/Ausgaben",
|
||||
"to_date": "bis Datum",
|
||||
"update_expense": "Aufwendung aktualisieren",
|
||||
"updated_message": "Aufwand erfolgreich aktualisiert"
|
||||
},
|
||||
"general": {
|
||||
"action_failed": "Aktion fehlgeschlagen",
|
||||
"actions": "Aktionen",
|
||||
"add_new_item": "Artikel hinzufügen",
|
||||
"all": "Alle",
|
||||
"are_you_sure": "Sind Sie sicher?",
|
||||
"back_to_login": "Zurück zum Login?",
|
||||
"bill_to": "Rechnungsempfänger",
|
||||
"bytefury": "Bytefury",
|
||||
"cancel": "Abrechen",
|
||||
"choose": "Wählen",
|
||||
"choose_file": "Klicken Sie hier, um eine Datei auszuwählen",
|
||||
"choose_template": "Wählen Sie eine Vorlage",
|
||||
"clear_all": "Alle entfernen",
|
||||
"delete": "Löschen",
|
||||
"discount": "RABATT",
|
||||
"download": "Download",
|
||||
"download_pdf": "Download PDF",
|
||||
"draft": "Entwurf",
|
||||
"due": "Fällig",
|
||||
"edit": "Ändern",
|
||||
"filter": "Filter",
|
||||
"fixed": "Behoben",
|
||||
"four_zero_four": "Vier hundert vier",
|
||||
"from": "Von",
|
||||
"from_date": "Von Datum",
|
||||
"go_back": "zurück",
|
||||
"go_home": "Geh zurück",
|
||||
"home": "Startseite",
|
||||
"list_is_empty": "Liste ist leer.",
|
||||
"no_tax_found": "Kein Steuersatz gefunden!",
|
||||
"of": "von",
|
||||
"percentage": "Prozentsatz",
|
||||
"powered_by": "Powered by",
|
||||
"remove": "Entfernen",
|
||||
"save": "Speichern",
|
||||
"search": "Suchen",
|
||||
"select_a_status": "Status wählen",
|
||||
"select_a_tax": "Steuersatz wählen",
|
||||
"select_all": "Alle auswählen",
|
||||
"select_city": "Stadt wählen",
|
||||
"select_country": "Land wählen",
|
||||
"select_state": "Bundesland wählen",
|
||||
"sent": "Gesendet",
|
||||
"setting_updated": "Einstellungen erfolgreich aktualisiert",
|
||||
"ship_to": "Versand ein",
|
||||
"showing": "Anzeigen",
|
||||
"street_1": "Straße",
|
||||
"street_2": "Zusatz Strasse",
|
||||
"subtotal": "ZWISCHENSUMME",
|
||||
"tax": "Steuer",
|
||||
"to": "bis",
|
||||
"to_date": "bis Datum",
|
||||
"total_amount": "GESAMTSUMME",
|
||||
"update": "Update",
|
||||
"view": "Anzeigen",
|
||||
"view_pdf": "PDF anzeigen",
|
||||
"you_got_lost": "Hoppla! Du hast dich verirrt!"
|
||||
},
|
||||
"invoices": {
|
||||
"action": "Aktion",
|
||||
"add_item": "Fügen Sie ein Artikel hinzu",
|
||||
"add_new_invoice": "Neue Rechnung hinzufügen",
|
||||
"add_new_tax": "Neuen Steuersatz hinzufügen",
|
||||
"add_tax": "Steuersatz hinzufügen",
|
||||
"all": "Alle",
|
||||
"amount": "Summe",
|
||||
"amount_due": "OFFENER BETRAG",
|
||||
"confirm_delete": "Sie können diese Rechnung nicht wiederherstellen. | Sie können diese Rechnungen nicht wiederherstellen.",
|
||||
"confirm_send": "Diese Rechnung wird per E-Mail an den Kunden gesendet",
|
||||
"confirm_send_invoice": "Diese Rechnung wird per E-Mail an den Kunden gesendet",
|
||||
"contact": "Kontakt",
|
||||
"created_message": "Rechnung erfolgreich erstellt",
|
||||
"customer": "KUNDEN",
|
||||
"date": "Datum",
|
||||
"days": "{days} Tage",
|
||||
"deleted_message": "Rechnung erfolgreich gelöscht | Rechnungen erfolgreich gelöscht",
|
||||
"discount": "Rabatt",
|
||||
"due_date": "Fälligkeit",
|
||||
"edit_invoice": "Rechnung bearbeiten",
|
||||
"invalid_due_amount_message": "Der Gesamtrechnungsbetrag darf nicht kleiner sein als der für diese Rechnung bezahlte Gesamtbetrag. Bitte aktualisieren Sie die Rechnung oder löschen Sie die zugehörigen Zahlungen um fortzufahren.",
|
||||
"invoice": "Rechnung | Rechnungen",
|
||||
"invoice_date": "Rechnungsdatum",
|
||||
"invoice_mark_as_sent": "Diese Rechnung wird als gesendet markiert",
|
||||
"invoice_number": "Rechnungsnummer",
|
||||
"invoice_template": "Rechnungs-Vorlage",
|
||||
"invoices_list": "Liste der Rechnungen",
|
||||
"item": {
|
||||
"amount": "Summe",
|
||||
"description": "Beschreibung",
|
||||
"discount": "Rabatt",
|
||||
"price": "Preis",
|
||||
"quantity": "Menge",
|
||||
"select_an_item": "Geben Sie oder wählen Sie ein Artikel",
|
||||
"sub_total": "Zwischensumme",
|
||||
"tax": "Steuer",
|
||||
"title": "Titel",
|
||||
"total": "Gesamt",
|
||||
"total_discount": "Rabatt Gesamt",
|
||||
"type_item_description": "Artikel Beschreibung (optional)"
|
||||
},
|
||||
"list_of_invoices": "Dieser Abschnitt enthält die Liste der Rechnungen.",
|
||||
"mark_as_sent": "Als gesendet markieren",
|
||||
"mark_as_sent_successfully": "Rechnung gekennzeichnet als erfolgreich gesendet",
|
||||
"marked_as_sent_message": "Rechnung als erfolgreich gesendet markiert",
|
||||
"months": "{months} Monat",
|
||||
"new_invoice": "Neue Rechnung",
|
||||
"no_invoices": "Keine Rechnungen vorhanden!",
|
||||
"no_matching_invoices": "Es gibt keine entsprechenden Rechnungen!",
|
||||
"notes": "Hinweise",
|
||||
"number": "ANZAHL",
|
||||
"paid": "Bezahlt",
|
||||
"paid_status": "BEZAHLT-STATUS",
|
||||
"partially_paid": "Teilzahlung",
|
||||
"payment_attached_message": "Einer der ausgewählten Rechnungen ist bereits eine Zahlung zugeordnet. Stellen Sie sicher, dass Sie zuerst die angehängten Zahlungen löschen, um mit dem Entfernen fortzufahren",
|
||||
"record_payment": "Zahlung erfassen",
|
||||
"ref_no": "REF. - NR.",
|
||||
"ref_number": "Ref-Nummer",
|
||||
"save_invoice": "Rechnung speichern",
|
||||
"select_invoice": "Wählen Sie eine Rechnung",
|
||||
"send_invoice": "Rechnung senden",
|
||||
"send_invoice_successfully": "Rechnung erfolgreich versendet",
|
||||
"something_went_wrong": "Da ist etwas schief gelaufen",
|
||||
"status": "Status",
|
||||
"sub_total": "Zwischensumme",
|
||||
"template": "Vorlage",
|
||||
"title": "Rechnungen",
|
||||
"total": "Gesamt",
|
||||
"unpaid": "Unbezahlte",
|
||||
"update_expense": "Kosten aktualisieren",
|
||||
"update_invoice": "Rechnung ändern",
|
||||
"updated_message": "Rechnung erfolgreich aktualisiert",
|
||||
"user_email_does_not_exist": "Benutzer-E-Mail existiert nicht",
|
||||
"view": "Anzeigen",
|
||||
"years": "{years} Jahre"
|
||||
},
|
||||
"items": {
|
||||
"action": "Aktion",
|
||||
"add_item": "Artikel hinzufügen",
|
||||
"add_new_item": "Neuen Artikel hinzufügen",
|
||||
"added_on": "Hinzugefügt am",
|
||||
"confirm_delete": "Sie können diesen Artikel nicht wiederherstellen | Sie können diese Artikel nicht wiederherstellen",
|
||||
"created_message": "Artikel erfolgreich erstellt",
|
||||
"date_of_creation": "Erstellt am",
|
||||
"deleted_message": "Artikel erfolgreich gelöscht | Artikel erfolgreich gelöscht",
|
||||
"description": "Beschreibung",
|
||||
"edit_item": "Artikel bearbeiten",
|
||||
"item": "Artikel | Artikel",
|
||||
"item_attached_message": "Ein Artikel der bereits verwendet wird kann nicht gelöscht werden",
|
||||
"items_list": "Artikel-Liste",
|
||||
"list_of_items": "Dieser Abschnitt enthält die Liste der Artikel.",
|
||||
"name": "Name",
|
||||
"new_item": "Neuer Artikel",
|
||||
"no_items": "Keine Artikel vorhanden!",
|
||||
"price": "Preis",
|
||||
"save_item": "Artikel speichern",
|
||||
"select_a_unit": "wählen Sie die Einheit",
|
||||
"title": "Artikel",
|
||||
"unit": "Einheit",
|
||||
"update_item": "Artikel ändern",
|
||||
"updated_message": "Artikel erfolgreich aktualisiert"
|
||||
},
|
||||
"layout_login": {
|
||||
"copyright_crater": "Copyright @ Crater - 2019",
|
||||
"crater_help": "Crater helps you track expenses, record payments & generate beautiful",
|
||||
"for_freelancer": "for Freelancers &",
|
||||
"invoices_and_estimates": "invoices & estimates with ability to choose multiple templates.",
|
||||
"small_businesses": "Small Businesses ",
|
||||
"super_simple_invoicing": "Super Simple Invoicing"
|
||||
},
|
||||
"login": {
|
||||
"email": "E-Mail",
|
||||
"enter_email": "Geben Sie Ihre E-Mail ein",
|
||||
"enter_password": "Geben Sie das Passwort ein",
|
||||
"forgot_password": "Passwort vergessen?",
|
||||
"login": "Anmelden",
|
||||
"login_placeholder": "mail@example.com",
|
||||
"or_signIn_with": "oder Anmelden mit",
|
||||
"password": "Passwort",
|
||||
"password_reset_successfully": "Passwort erfolgreich zurückgesetzt",
|
||||
"register": "Registrieren",
|
||||
"reset_password": "Passwort zurücksetzen",
|
||||
"retype_password": "Passwort bestätigen"
|
||||
},
|
||||
"navigation": {
|
||||
"customers": "Kunden",
|
||||
"dashboard": "Übersicht",
|
||||
"estimates": "Kostenvoranschläge",
|
||||
"expenses": "Kosten",
|
||||
"invoices": "Rechnungen",
|
||||
"items": "Artikel",
|
||||
"logout": "Abmelden",
|
||||
"payments": "Zahlungen",
|
||||
"reports": "Berichte",
|
||||
"settings": "Einstellungen"
|
||||
},
|
||||
"payments": {
|
||||
"action": "Aktion",
|
||||
"add_new_payment": "Neue Zahlung hinzufügen",
|
||||
"add_payment": "Zahlung hinzufügen",
|
||||
"amount": "Summe",
|
||||
"confirm_delete": "Sie können diese Zahlung nicht wiederherstellen. | Sie können diese Zahlungen nicht wiederherstellen.",
|
||||
"created_message": "Zahlung erfolgreich erstellt",
|
||||
"customer": "Kunden",
|
||||
"date": "Datum",
|
||||
"deleted_message": "Zahlung erfolgreich gelöscht | Zahlungen erfolgreich gelöscht",
|
||||
"edit_payment": "Zahlung bearbeiten",
|
||||
"invalid_amount_message": "Zahlungsbetrag ist ungültig",
|
||||
"invoice": "Rechnung",
|
||||
"list_of_payments": "Dieser Abschnitt enthält die Liste der Zahlungen.",
|
||||
"new_payment": "Neue Zahlung",
|
||||
"no_payments": "Keine Zahlungen vorhanden!",
|
||||
"no_matching_payments": "Es gibt keine passenden Zahlungen!",
|
||||
"note": "Hinweis",
|
||||
"payment": "Zahlung | Zahlungen",
|
||||
"payment_mode": "Zahlungsart",
|
||||
"payment_number": "Zahlungsnummer",
|
||||
"payments_list": "Liste der Zahlungen",
|
||||
"record_payment": "Zahlung eintragen",
|
||||
"save_payment": "Zahlung speichern",
|
||||
"select_payment_mode": "Wählen Sie den Zahlungsmodus",
|
||||
"title": "Zahlungen",
|
||||
"update_payment": "Zahlung ändern",
|
||||
"updated_message": "Zahlung erfolgreich aktualisiert",
|
||||
"view_payment": "Zahlung anzeigen"
|
||||
},
|
||||
"reports": {
|
||||
"download_pdf": "Download PDF",
|
||||
"errors": {
|
||||
"required": "Feld ist erforderlich"
|
||||
},
|
||||
"estimates": {
|
||||
"amount": "Summe",
|
||||
"contact_name": "Ansprechpartner",
|
||||
"due_date": "Fälligkeit",
|
||||
"estimate": "Kostenvoranschlag",
|
||||
"estimate_date": "Datum Kostenvoranschlag",
|
||||
"estimate_number": "Kostenvoranschlag-Nr.",
|
||||
"ref_number": "Ref-Nummer",
|
||||
"status": "Status"
|
||||
},
|
||||
"expenses": {
|
||||
"amount": "Summe",
|
||||
"category": "Kategorie",
|
||||
"date": "Datum",
|
||||
"date_range": "Datumsbereich auswählen",
|
||||
"expenses": "Aufwendungen",
|
||||
"from_date": "Ab Datum",
|
||||
"to_date": "bis Datum"
|
||||
},
|
||||
"from_date": "Ab Datum",
|
||||
"invoices": {
|
||||
"amount": "Summe",
|
||||
"contact_name": "Ansprechpartner",
|
||||
"due_date": "Fälligkeit",
|
||||
"invoice": "Rechnung",
|
||||
"invoice_date": "Rechnungsdatum",
|
||||
"status": "Status"
|
||||
},
|
||||
"paid": "Bezahlt",
|
||||
"profit_loss": {
|
||||
"date_range": "Datumsbereich auswählen",
|
||||
"from_date": "Ab Datum",
|
||||
"profit_loss": "Gewinn & Verlust",
|
||||
"to_date": "bis Datum"
|
||||
},
|
||||
"report": "Bericht | Berichte",
|
||||
"sales": {
|
||||
"date_range": "Datumsbereich auswählen",
|
||||
"from_date": "Ab Datum",
|
||||
"report_type": "Berichtstyp",
|
||||
"sales": "Vertrieb",
|
||||
"to_date": "bis Datum"
|
||||
},
|
||||
"status": "Status",
|
||||
"taxes": {
|
||||
"date_range": "Datumsbereich auswählen",
|
||||
"from_date": "Ab Datum",
|
||||
"taxes": "Steuern",
|
||||
"to_date": "bis Datum"
|
||||
},
|
||||
"title": "Bericht",
|
||||
"to_date": "bis Datum",
|
||||
"unpaid": "Unbezahlt",
|
||||
"update_report": "Bericht aktualisieren",
|
||||
"view_pdf": "PDF anzeigen"
|
||||
},
|
||||
"settings": {
|
||||
"account_settings": {
|
||||
"account_settings": "Konto-Einstellungen",
|
||||
"confirm_password": "Kennwort Bestätigen",
|
||||
"email": "E-Mail",
|
||||
"name": "Name",
|
||||
"password": "Passwort",
|
||||
"profile_picture": "Profil Bild",
|
||||
"save": "Speichern",
|
||||
"section_description": "Sie können Ihren Namen, Ihre E-Mail-Adresse und Ihr Passwort mit dem folgenden Formular aktualisieren.",
|
||||
"updated_message": "Kontoeinstellungen erfolgreich aktualisiert"
|
||||
},
|
||||
"company_info": {
|
||||
"address": "Adresse",
|
||||
"city": "Stadt",
|
||||
"company_info": "Firmeninfo",
|
||||
"company_logo": "Firmenlogo",
|
||||
"company_name": "Name des Unternehmens",
|
||||
"country": "Land",
|
||||
"phone": "Telefon",
|
||||
"save": "Speichern",
|
||||
"section_description": "Informationen zu Ihrem Unternehmen, die auf Rechnungen, Kostenvoranschlägen und anderen von Crater erstellten Dokumenten angezeigt werden.",
|
||||
"state": "Bundesland",
|
||||
"updated_message": "Unternehmensinformationen wurden erfolgreich aktualisiert",
|
||||
"zip": "PLZ"
|
||||
},
|
||||
"currencies": {
|
||||
"action": "Aktion",
|
||||
"add_currency": "Währung einfügen",
|
||||
"code": "Code",
|
||||
"currencies_list": "Währungen Liste",
|
||||
"currency": "Währung | Währungen",
|
||||
"decimal_separator": "Decimal-Separator",
|
||||
"left": "Links",
|
||||
"name": "Name",
|
||||
"position": "Position",
|
||||
"position_of_symbol": "Position des Währungssymbol",
|
||||
"precision": "Präzision",
|
||||
"right": "Rechts",
|
||||
"select_currency": "Währung wählen",
|
||||
"symbol": "Symbol",
|
||||
"thousand_separator": "Tausendertrennzeichen",
|
||||
"title": "Währungen"
|
||||
},
|
||||
"customization": {
|
||||
"addresses": {
|
||||
"address": "Adresse",
|
||||
"address_setting_updated": "Adresse-Einstellung erfolgreich aktualisiert",
|
||||
"address_street_1": "Strasse",
|
||||
"address_street_2": "Zusatz Strasse",
|
||||
"city": "Stadt",
|
||||
"company_address": "Firma Adresse",
|
||||
"company_name": "Name des Unternehmens",
|
||||
"contact": "Kontakt",
|
||||
"country": "Land",
|
||||
"customer_billing_address": "Rechnungsadresse des Kunden",
|
||||
"customer_shipping_address": "Versand-Adresse des Kunden",
|
||||
"display_name": "Anzeigename",
|
||||
"email": "E-Mail",
|
||||
"insert_fields": "Felder einfügen",
|
||||
"name": "Name",
|
||||
"phone": "Telefon",
|
||||
"primary_contact_name": "Ansprechpartner",
|
||||
"section_description": "Sie können die Rechnungsadresse und das Versandadressenformat des Kunden festlegen (nur in PDF angezeigt). ",
|
||||
"state": "Bundesland",
|
||||
"title": "Adressen",
|
||||
"website": "Website",
|
||||
"zip_code": "PLZ"
|
||||
},
|
||||
"customization": "Anpassung",
|
||||
"estimates": {
|
||||
"autogenerate_estimate_number": "Kostenvoranschlagsnummer automatisch generieren",
|
||||
"enter_estimate_prefix": "Geben Sie das Kostenvoranschlag Präfix ein",
|
||||
"estimate_prefix": "Kostenvoranschlag Präfix",
|
||||
"estimate_setting_description": "Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie einen neue Kostenvoranschlag erstellen, automatisch eine Schätzung generieren möchten.",
|
||||
"estimate_setting_updated": "Einstellungen Kostenvoranschläge erfolgreich aktualisiert",
|
||||
"estimate_settings": "Einstellungen Kostenvoranschlag",
|
||||
"title": "Kostenvoranschläge"
|
||||
},
|
||||
"invoices": {
|
||||
"autogenerate_invoice_number": "Rechnungsnummer automatisch generieren",
|
||||
"enter_invoice_prefix": "Rechnungspräfix eingeben",
|
||||
"invoice_prefix": "Rechnung Präfix",
|
||||
"invoice_setting_description": "Deaktivieren Sie diese Option, wenn Sie Rechnungsnummern nicht jedes Mal automatisch generieren möchten, wenn Sie eine neue Rechnung erstellen.",
|
||||
"invoice_setting_updated": "Rechnungseinstellung erfolgreich aktualisiert",
|
||||
"invoice_settings": "Rechnungseinstellungen",
|
||||
"notes": "Hinweise",
|
||||
"terms_and_conditions": "Allgemeine Geschäftsbedingungen",
|
||||
"title": "Rechnungen"
|
||||
},
|
||||
"payments": {
|
||||
"autogenerate_payment_number": "Zahlungsnummer automatisch generieren",
|
||||
"enter_payment_prefix": "Zahlungspräfix eingeben",
|
||||
"payment_prefix": "Zahlung Präfix",
|
||||
"payment_setting_description": "Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie eine neue Zahlung erstellen, automatisch Zahlungsnummern generieren möchten.",
|
||||
"payment_setting_updated": "Zahlungseinstellung erfolgreich aktualisiert",
|
||||
"payment_settings": "Zahlung Einstellungen",
|
||||
"title": "Zahlungen"
|
||||
},
|
||||
"save": "Speichern",
|
||||
"updated_message": "Unternehmensinformationen wurden erfolgreich aktualisiert"
|
||||
},
|
||||
"date_format": "Datum-Format",
|
||||
"expense_category": {
|
||||
"action": "Aktion",
|
||||
"add_new_category": "Neue Kategorie hinzufügen",
|
||||
"already_in_use": "Kategorie wird bereits verwendet",
|
||||
"category_description": "Beschreibung",
|
||||
"category_name": "Kategorie Name",
|
||||
"confirm_delete": "Sie können diese Ausgabenkategorie nicht wiederherstellen",
|
||||
"created_message": "Ausgabenkategorie erfolgreich erstellt",
|
||||
"deleted_message": "Ausgabenkategorie erfolgreich gelöscht",
|
||||
"description": "Für das Hinzufügen von Ausgabeneinträgen sind Kategorien erforderlich. Sie können diese Kategorien nach Ihren Wünschen hinzufügen oder entfernen.",
|
||||
"title": "Kategorien Kosten",
|
||||
"updated_message": "Ausgabenkategorie erfolgreich aktualisiert"
|
||||
},
|
||||
"general": "Allgemeine",
|
||||
"language": "Sprache",
|
||||
"mail": {
|
||||
"driver": "E-Mail Treiber",
|
||||
"encryption": "E-Mail-Verschlüsselung",
|
||||
"from_mail": "Von E-Mail-Adresse",
|
||||
"from_name": "Von E-Mail-Namen",
|
||||
"host": "E-Mail Mailserver",
|
||||
"mail_config": "E-Mail-Konfiguration",
|
||||
"mail_config_desc": "Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails über die App. Sie können auch Drittanbieter wie Sendgrid, SES usw. konfigurieren.",
|
||||
"mailgun_domain": "Domain",
|
||||
"mailgun_endpoint": "Mailgun-Endpunkt",
|
||||
"mailgun_secret": "Mailgun Verschlüsselung",
|
||||
"password": "E-Mail-Kennwort",
|
||||
"port": "E-Mail Port",
|
||||
"secret": "Verschlüsselung",
|
||||
"ses_key": "SES-Taste",
|
||||
"ses_secret": "SES Verschlüsselung",
|
||||
"username": "E-Mail-Benutzername"
|
||||
},
|
||||
"menu_title": {
|
||||
"account_settings": "Konto-Einstellungen",
|
||||
"company_information": "Informationen zum Unternehmen",
|
||||
"customization": "Anpassung",
|
||||
"expense_category": "Ausgabenkategorien",
|
||||
"notifications": "Benachrichtigungen",
|
||||
"preferences": "Einstellungen",
|
||||
"tax_types": "Steuersätze",
|
||||
"update_app": "Update App"
|
||||
},
|
||||
"notification": {
|
||||
"description": "Welche E-Mail-Benachrichtigungen möchten Sie erhalten wenn sich etwas ändert?",
|
||||
"email": "Benachrichtigungen senden an",
|
||||
"email_save_message": "Email erfolgreich gespeichert",
|
||||
"estimate_viewed": "Kostenvoranschlag angesehen",
|
||||
"estimate_viewed_desc": "Wenn Ihr Kunde den gesendeten Kostenvoranschlag anzeigt bekommt.",
|
||||
"invoice_viewed": "Rechnung angezeigt",
|
||||
"invoice_viewed_desc": "Wenn Ihr Kunde die gesendete Rechnung anzeigt bekommt.",
|
||||
"please_enter_email": "Bitte E-Mail eingeben",
|
||||
"save": "Speichern",
|
||||
"title": "Benachrichtigung"
|
||||
},
|
||||
"pdf": {
|
||||
"footer_text": "Fußzeile Text",
|
||||
"pdf_layout": "PDF-Layout",
|
||||
"title": "PDF-Einstellung"
|
||||
},
|
||||
"preferences": {
|
||||
"currency": "Währung",
|
||||
"date_format": "Datum-Format",
|
||||
"discount_per_item": "Rabatt pro Artikel ",
|
||||
"discount_setting": "Einstellung Rabatt",
|
||||
"discount_setting_description": "Aktivieren Sie diese Option, wenn Sie einzelnen Rechnungspositionen einen Rabatt hinzufügen möchten. Standardmäßig wird der Rabatt direkt zur Rechnung hinzugefügt.",
|
||||
"fiscal_year": "Geschäftsjahr",
|
||||
"general_settings": "Standardeinstellungen für das System.",
|
||||
"language": "Sprache",
|
||||
"preference": "Präferenz | Präferenzen",
|
||||
"save": "Speichern",
|
||||
"select_date_formate": "select Date Formate",
|
||||
"select_financial_year": "Geschäftsjahr auswählen",
|
||||
"select_language": "Sprache auswählen",
|
||||
"select_time_zone": "Zeitzone auswählen",
|
||||
"time_zone": "Zeitzone",
|
||||
"updated_message": "Einstellungen erfolgreich aktualisiert"
|
||||
},
|
||||
"primary_currency": "Primäre Währung",
|
||||
"setting": "Einstellung | Einstellungen",
|
||||
"tax_types": {
|
||||
"action": "Aktion",
|
||||
"add_new_tax": "Neuen Steuersatz hinzufügen",
|
||||
"add_tax": "Steuersätze hinzufügen",
|
||||
"already_in_use": "Steuersatz wird bereits verwendet",
|
||||
"compound_tax": "Compound Tax",
|
||||
"confirm_delete": "Sie können diesen Steuersatz nicht wiederherstellen",
|
||||
"created_message": "Steuersatz erfolgreich erstellt",
|
||||
"deleted_message": "Steuersatz erfolgreich gelöscht",
|
||||
"description": "Sie können Steuern nach Belieben hinzufügen oder entfernen. Crater unterstützt Steuern auf einzelne Artikel sowie auf die Rechnung.",
|
||||
"percent": "Prozent",
|
||||
"tax_name": "Name des Steuersatzes",
|
||||
"tax_per_item": "Steuersatz pro Artikel",
|
||||
"tax_setting_description": "Aktivieren Sie diese Option, wenn Sie den Steuersatz zu einzelnen Rechnungspositionen hinzufügen möchten. Standardmäßig wird der Steuersatz direkt zur Rechnung hinzugefügt.",
|
||||
"tax_settings": "Einstellungen Steuersatz",
|
||||
"title": "Steuersätze",
|
||||
"updated_message": "Steuersatz erfolgreich aktualisiert"
|
||||
},
|
||||
"timezone": "Zeitzone",
|
||||
"title": "Einstellungen",
|
||||
"update_app": {
|
||||
"avail_update": "Neues Update verfügbar",
|
||||
"check_update": "Nach Updates suchen",
|
||||
"current_version": "Aktuelle Version",
|
||||
"description": "Sie können Crater ganz einfach aktualisieren, indem Sie auf die Schaltfläche unten klicken, um nach einem neuen Update zu suchen.",
|
||||
"latest_message": "Kein Update verfügbar! Du bist auf der neuesten Version.",
|
||||
"next_version": "Nächste Version",
|
||||
"progress_text": "Es dauert nur ein paar Minuten. Bitte aktualisieren Sie den Bildschirm nicht und schließen Sie das Fenster nicht, bevor das Update abgeschlossen ist.",
|
||||
"title": "Update App",
|
||||
"update": "Jetzt aktualisieren",
|
||||
"update_progress": "Update läuft ...",
|
||||
"update_success": "App wurde aktualisiert! Bitte warten Sie, während Ihr Browserfenster automatisch neu geladen wird."
|
||||
},
|
||||
"user_profile": {
|
||||
"confirm_password": "Kennwort bestätigen",
|
||||
"email": "E-Mail",
|
||||
"name": "Name",
|
||||
"password": "Passwort"
|
||||
}
|
||||
},
|
||||
"tax_types": {
|
||||
"compound_tax": "zusammengesetzte Steuer",
|
||||
"description": "Beschreibung",
|
||||
"name": "Name",
|
||||
"percent": "Prozent"
|
||||
},
|
||||
"validation": {
|
||||
"address_maxlength": "Die Adresse sollte nicht länger als 255 Zeichen sein.",
|
||||
"amount_maxlength": "Der Betrag sollte nicht größer als 20 Ziffern sein.",
|
||||
"amount_minvalue": "Betrag sollte größer als 0 sein.",
|
||||
"characters_only": "Nur Zeichen.",
|
||||
"description_maxlength": "Die Beschreibung sollte nicht länger als 255 Zeichen sein.",
|
||||
"email_already_taken": "Die E-Mail ist bereits vergeben.",
|
||||
"email_does_not_exist": "Benutzer mit der angegebenen E-Mail existiert nicht",
|
||||
"email_incorrect": "Falsche E-Mail.",
|
||||
"item_unit_already_taken": "Die Artikeleinheit wurde bereits vergeben",
|
||||
"payment_mode_already_taken": "Der Zahlungsmodus wurde bereits verwendet",
|
||||
"enter_valid_tax_rate": "Geben Sie einen gültige Steuersatz ein",
|
||||
"invalid_url": "Ungültige URL (Bsp.: http://www.crater.com)",
|
||||
"maximum_options_error": "Maximal {max} Optionen ausgewählt. Entfernen Sie zuerst eine ausgewählte Option, um eine andere auszuwählen.",
|
||||
"name_min_length": "Name muss mindestens {count} Zeichen enthalten.",
|
||||
"not_yet": "Noch erhalten? Erneut senden",
|
||||
"notes_maxlength": "Notizen sollten nicht länger als 255 Zeichen sein.",
|
||||
"numbers_only": "Nur Zahlen.",
|
||||
"password_incorrect": "Passwörter müssen identisch sein",
|
||||
"password_length": "Passwort muss {count} Zeichen lang sein.",
|
||||
"password_min_length": "Password muß {count} Zeichen enthalten",
|
||||
"payment_greater_than_due_amount": "Die eingegebene Zahlung ist mehr als der fällige Betrag dieser Rechnung.",
|
||||
"payment_greater_than_zero": "Die Zahlung muss größer als 0 sein.",
|
||||
"prefix_maxlength": "Das Präfix sollte nicht länger als 5 Zeichen sein.",
|
||||
"price_greater_than_zero": "Preis muss größer als 0 sein.",
|
||||
"price_maxlength": "Der Preis sollte nicht größer als 20 Ziffern sein.",
|
||||
"price_minvalue": "Der Preis sollte größer als 0 sein.",
|
||||
"qty_must_greater_than_zero": "Die Menge muss größer als 0 sein.",
|
||||
"quantity_maxlength": "Die Menge sollte nicht größer als 20 Ziffern sein.",
|
||||
"ref_number_maxlength": "Ref Number sollte nicht länger als 255 Zeichen sein.",
|
||||
"required": "Feld ist erforderlich",
|
||||
"send_reset_link": "Link zum Zurücksetzen senden"
|
||||
},
|
||||
"wizard": {
|
||||
"account_info": "Account-Informationen",
|
||||
"account_info_desc": "Die folgenden Details werden zum Erstellen des Hauptadministratorkontos verwendet. Sie können die Details auch jederzeit nach dem Anmelden ändern.",
|
||||
"address": "Adresse",
|
||||
"city": "Stadt",
|
||||
"company_info": "Unternehmensinformationen",
|
||||
"company_info_desc": "Diese Informationen werden auf Rechnungen angezeigt. Beachten Sie, dass Sie diese später auf der Einstellungsseite bearbeiten können.",
|
||||
"company_logo": "Firmenlogo",
|
||||
"company_name": "Firmenname",
|
||||
"confirm_password": "Passwort bestätigen",
|
||||
"continue": "Weiter",
|
||||
"country": "Land",
|
||||
"currency": "Currency",
|
||||
"database": {
|
||||
"app_url": "App-URL",
|
||||
"connection": "Datenbank Verbindung",
|
||||
"database": "URL der Seite & Datenbank",
|
||||
"db_name": "Datenbank Name",
|
||||
"desc": "Erstellen Sie eine Datenbank auf Ihrem Server und legen Sie die Anmeldeinformationen mithilfe des folgenden Formulars fest.",
|
||||
"host": "Datenbank Host",
|
||||
"password": "Datenbank Passwort",
|
||||
"port": "Datenbank Port",
|
||||
"username": "Datenbank Benutzername"
|
||||
},
|
||||
"date_format": "Datumsformat",
|
||||
"email": "Email",
|
||||
"errors": {
|
||||
"connection_failed": "Datenbankverbindung fehlgeschlagen",
|
||||
"database_should_be_empty": "Datenbank sollte leer sein",
|
||||
"database_variables_save_error": "Konfiguration kann nicht in EN.env-Datei geschrieben werden. Bitte überprüfen Sie die Dateiberechtigungen.",
|
||||
"mail_variables_save_error": "E-Mail-Konfiguration fehlgeschlagen.",
|
||||
"migrate_failed": "Migration ist Fehlgeschlagen"
|
||||
},
|
||||
"fiscal_year": "Geschäftsjahr",
|
||||
"from_address": "From Address",
|
||||
"go_back": "Zurück",
|
||||
"language": "Sprache",
|
||||
"logo_preview": "Vorschau Logo",
|
||||
"mail": {
|
||||
"driver": "E-Mail-Treiber",
|
||||
"encryption": "E-Mail-Verschlüsselung",
|
||||
"from_mail": "Von E-Mail-Absenderadresse",
|
||||
"from_name": "Von E-Mail-Absendername",
|
||||
"host": "E-Mail-Host",
|
||||
"mail_config": "E-Mail-Konfiguration",
|
||||
"mail_config_desc": "Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails über die App. Sie können auch Drittanbieter wie Sendgrid, SES usw. konfigurieren.",
|
||||
"mailgun_domain": "Domain",
|
||||
"mailgun_endpoint": "Mailgun-Endpunkt",
|
||||
"mailgun_secret": "Mailgun Verschlüsselung",
|
||||
"password": "E-Mail-Passwort",
|
||||
"port": "E-Mail-Port",
|
||||
"secret": "Verschlüsselung",
|
||||
"ses_key": "SES-Taste",
|
||||
"ses_secret": "SES Verschlüsselung",
|
||||
"username": "E-Mail-Benutzername"
|
||||
},
|
||||
"name": "Name",
|
||||
"next": "Next",
|
||||
"password": "Passwort",
|
||||
"permissions": {
|
||||
"permission_confirm_desc": "Prüfung der Berechtigung der Ordner fehlgeschlagen.",
|
||||
"permission_confirm_title": "Sind Sie sicher, dass Sie fortfahren möchten?",
|
||||
"permission_desc": "Unten finden Sie eine Liste der Ordnerberechtigungen, die erforderlich sind, damit die App funktioniert. Wenn die Berechtigungsprüfung fehlschlägt, müssen Sie Ihre Ordnerberechtigungen aktualisieren.",
|
||||
"permissions": "Berechtigungen"
|
||||
},
|
||||
"phone": "Telefon",
|
||||
"preferences": "Einstellungen",
|
||||
"preferences_desc": "Standardeinstellungen für das System.",
|
||||
"req": {
|
||||
"check_req": "Anforderungen prüfen",
|
||||
"php_req_version": "Php (version {version} erforderlich)",
|
||||
"system_req": "System Anforderungen",
|
||||
"system_req_desc": "Crater hat einige Serveranforderungen. Stellen Sie sicher, dass Ihr Server die erforderliche PHP-Version und alle unten genannten Erweiterungen hat."
|
||||
},
|
||||
"save_cont": "Speichern und weiter",
|
||||
"skip": "Überspringen",
|
||||
"state": "Bundesland",
|
||||
"street": "Straße1 | Straße2",
|
||||
"success": {
|
||||
"database_variables_save_successfully": "Datenbank erfolgreich konfiguriert.",
|
||||
"mail_variables_save_successfully": "E-Mail erfolgreich konfiguriert"
|
||||
},
|
||||
"time_zone": "Zeitzone",
|
||||
"username": "Benutzername",
|
||||
"zip_code": "Postleitzahl"
|
||||
}
|
||||
}
|
||||
@ -17,11 +17,17 @@
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"update": "Update",
|
||||
"deselect": "Deselect",
|
||||
"download": "Download",
|
||||
"from_date": "From Date",
|
||||
"to_date": "To Date",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"sort_by": "Sort By",
|
||||
"ascending": "Ascending",
|
||||
"descending": "Descending",
|
||||
"subject": "Subject",
|
||||
"message": "Message",
|
||||
"go_back": "Go Back",
|
||||
"back_to_login": "Back to Login?",
|
||||
"home": "Home",
|
||||
@ -62,6 +68,8 @@
|
||||
"four_zero_four": "404",
|
||||
"you_got_lost": "Whoops! You got Lost!",
|
||||
"go_home": "Go Home",
|
||||
"test_mail_conf": "Test Mail Configuration",
|
||||
"send_mail_successfully": "Mail sent successfully",
|
||||
|
||||
"setting_updated": "Setting updated successfully",
|
||||
"select_state": "Select state",
|
||||
@ -180,7 +188,7 @@
|
||||
"no_items": "No items yet!",
|
||||
"list_of_items": "This section will contain the list of items.",
|
||||
"select_a_unit": "select unit",
|
||||
|
||||
"taxes": "Taxes",
|
||||
"item_attached_message": "Cannot delete an item which is already in use",
|
||||
"confirm_delete": "You will not be able to recover this Item | You will not be able to recover these Items",
|
||||
"created_message": "Item created successfully",
|
||||
@ -225,7 +233,7 @@
|
||||
"record_payment": "Record Payment",
|
||||
"add_estimate": "Add Estimate",
|
||||
"save_estimate": "Save Estimate",
|
||||
"confirm_conversion": "You want to convert this Estimate into Invoice?",
|
||||
"confirm_conversion": "This estimate will be used to create a new Invoice.",
|
||||
"conversion_message": "Invoice created successful",
|
||||
"confirm_send_estimate": "This estimate will be sent via email to the customer",
|
||||
"confirm_mark_as_sent": "This estimate will be marked as sent",
|
||||
@ -329,6 +337,9 @@
|
||||
"no_matching_invoices": "There are no matching invoices!",
|
||||
"mark_as_sent_successfully": "Invoice marked as sent successfully",
|
||||
"send_invoice_successfully": "Invoice sent successfully",
|
||||
"cloned_successfully": "Invoice cloned successfully",
|
||||
"clone_invoice": "Clone Invoice",
|
||||
"confirm_clone": "This invoice will be cloned into a new Invoice",
|
||||
"item": {
|
||||
"title": "Item Title",
|
||||
"description": "Description",
|
||||
@ -343,7 +354,6 @@
|
||||
"select_an_item": "Type or click to select an item",
|
||||
"type_item_description": "Type Item Description (optional)"
|
||||
},
|
||||
|
||||
"payment_attached_message": "One of the selected invoices already have a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal",
|
||||
"confirm_delete": "You will not be able to recover this Invoice | You will not be able to recover these Invoices",
|
||||
"created_message": "Invoice created successfully",
|
||||
@ -394,12 +404,18 @@
|
||||
"edit_payment": "Edit Payment",
|
||||
"view_payment": "View Payment",
|
||||
"add_new_payment": "Add New Payment",
|
||||
"send_payment_receipt": "Send Payment Receipt",
|
||||
"save_payment": "Save Payment",
|
||||
"update_payment": "Update Payment",
|
||||
"payment": "Payment | Payments",
|
||||
"no_payments": "No payments yet!",
|
||||
"no_matching_payments": "There are no matching payments!",
|
||||
"list_of_payments": "This section will contain the list of payments.",
|
||||
"select_payment_mode": "Select payment mode",
|
||||
"confirm_send_payment": "This payment will be sent via email to the customer",
|
||||
"send_payment_successfully": "Payment sent successfully",
|
||||
"user_email_does_not_exist": "User email does not exist",
|
||||
"something_went_wrong": "something went wrong",
|
||||
|
||||
"confirm_delete": "You will not be able to recover this Payment | You will not be able to recover these Payments",
|
||||
"created_message": "Payment created successfully",
|
||||
@ -410,7 +426,9 @@
|
||||
"expenses": {
|
||||
"title": "Expenses",
|
||||
"expenses_list": "Expenses List",
|
||||
"select_a_customer": "Select a customer",
|
||||
"expense_title": "Title",
|
||||
"customer": "Customer",
|
||||
"contact": "Contact",
|
||||
"category": "Category",
|
||||
"from_date": "From Date",
|
||||
@ -530,6 +548,7 @@
|
||||
"menu_title": {
|
||||
"account_settings": "Account Settings",
|
||||
"company_information": "Company Information",
|
||||
"customization": "Customization",
|
||||
"preferences": "Preferences",
|
||||
"notifications": "Notifications",
|
||||
"tax_types": "Tax Types",
|
||||
@ -598,6 +617,87 @@
|
||||
"save": "Save",
|
||||
"updated_message": "Company information updated successfully"
|
||||
},
|
||||
"customization": {
|
||||
"customization": "customization",
|
||||
"save": "Save",
|
||||
"addresses": {
|
||||
"title": "Addresses",
|
||||
"section_description": "You can set Customer Billing Address and Customer Shipping Address Format (Displayed in PDF only). ",
|
||||
"customer_billing_address": "Customer Billing Address",
|
||||
"customer_shipping_address": "Customer Shipping Address",
|
||||
"company_address": "Company Address",
|
||||
"insert_fields": "Insert Fields",
|
||||
"contact": "Contact",
|
||||
"address": "Address",
|
||||
"display_name": "Display Name",
|
||||
"primary_contact_name": "Primary Contact Name",
|
||||
"email": "Email",
|
||||
"website": "Website",
|
||||
"name": "Name",
|
||||
"country": "Country",
|
||||
"state": "State",
|
||||
"city": "City",
|
||||
"company_name": "Company Name",
|
||||
"address_street_1": "Address Street 1",
|
||||
"address_street_2": "Address Street 2",
|
||||
"phone": "Phone",
|
||||
"zip_code": "Zip Code",
|
||||
"address_setting_updated": "Address Setting updated successfully"
|
||||
},
|
||||
"updated_message": "Company information updated successfully",
|
||||
|
||||
"invoices": {
|
||||
"title": "Invoices",
|
||||
"notes": "Notes",
|
||||
"invoice_prefix": "Invoice Prefix",
|
||||
"invoice_settings": "Invoice Settings",
|
||||
"autogenerate_invoice_number": "Auto-generate Invoice Number",
|
||||
"invoice_setting_description": "Disable this, If you don't wish to auto-generate invoice numbers each time you create a new invoice.",
|
||||
"enter_invoice_prefix": "Enter invoice prefix",
|
||||
"terms_and_conditions": "Terms and Conditions",
|
||||
"invoice_setting_updated": "Invoice Setting updated successfully"
|
||||
},
|
||||
|
||||
"estimates": {
|
||||
"title": "Estimates",
|
||||
"estimate_prefix": "Estimate Prefix",
|
||||
"estimate_settings": "Estimate Settings",
|
||||
"autogenerate_estimate_number": "Auto-generate Estimate Number",
|
||||
"estimate_setting_description": "Disable this, If you don't wish to auto-generate estimate numbers each time you create a new estimate.",
|
||||
"enter_estimate_prefix": "Enter estmiate prefix",
|
||||
"estimate_setting_updated": "Estimate Setting updated successfully"
|
||||
},
|
||||
|
||||
"payments": {
|
||||
"title": "Payments",
|
||||
"payment_prefix": "Payment Prefix",
|
||||
"payment_settings": "Payment Settings",
|
||||
"autogenerate_payment_number": "Auto-generate Payment Number",
|
||||
"payment_setting_description": "Disable this, If you don't wish to auto-generate payment numbers each time you create a new payment.",
|
||||
"enter_payment_prefix": "Enter Payment Prefix",
|
||||
"payment_setting_updated": "Payment Setting updated successfully",
|
||||
"payment_mode": "Payment Mode",
|
||||
"add_payment_mode": "Add Payment Mode",
|
||||
"mode_name": "Mode Name",
|
||||
"payment_mode_added": "Payment Mode Added",
|
||||
"payment_mode_updated": "Payment Mode Updated",
|
||||
"payment_mode_confirm_delete":"You will not be able to recover this Payment Mode",
|
||||
"already_in_use": "Payment Mode is already in use",
|
||||
"deleted_message": "Payment Mode deleted successfully"
|
||||
},
|
||||
|
||||
"items": {
|
||||
"title": "Items",
|
||||
"units": "units",
|
||||
"add_item_unit": "Add Item Unit",
|
||||
"unit_name": "Unit Name",
|
||||
"item_unit_added": "Item Unit Added",
|
||||
"item_unit_updated": "Item Unit Updated",
|
||||
"item_unit_confirm_delete":"You will not be able to recover this Item unit",
|
||||
"already_in_use": "Item Unit is already in use",
|
||||
"deleted_message": "Item Unit deleted successfully"
|
||||
}
|
||||
},
|
||||
"account_settings": {
|
||||
"profile_picture": "Profile Picture",
|
||||
"name": "Name",
|
||||
@ -666,7 +766,7 @@
|
||||
"date_format": "Date Format",
|
||||
"discount_setting": "Discount Setting",
|
||||
"discount_per_item": "Discount Per Item ",
|
||||
"discount_setting_description": "Enable this if you want to add Discount to individual invoice items. By default, Discount are added directly to the invoice.",
|
||||
"discount_setting_description": "Enable this if you want to add Discount to individual invoice items. By default, Discount is added directly to the invoice.",
|
||||
"save": "Save",
|
||||
"preference": "Preference | Preferences",
|
||||
"general_settings": "Default preferences for the system.",
|
||||
@ -766,7 +866,7 @@
|
||||
},
|
||||
"errors": {
|
||||
"migrate_failed": "Migrate Failed",
|
||||
"database_variables_save_error": "Unable to connect to the DB with Provided Values.",
|
||||
"database_variables_save_error": "Cannot write configuration to .env file. Please check its file permissions",
|
||||
"mail_variables_save_error": "Email configuration failed.",
|
||||
"connection_failed": "Database connection failed",
|
||||
"database_should_be_empty": "Database should be empty"
|
||||
@ -777,7 +877,7 @@
|
||||
}
|
||||
},
|
||||
"layout_login": {
|
||||
"copyright_crater": "Copyright @ Crater - 2019",
|
||||
"copyright_crater": "Copyright @ Crater - 2020",
|
||||
"super_simple_invoicing": "Super Simple Invoicing",
|
||||
"for_freelancer": "for Freelancers &",
|
||||
"small_businesses": "Small Businesses ",
|
||||
@ -790,6 +890,8 @@
|
||||
"email_incorrect": "Incorrect Email.",
|
||||
"email_already_taken": "The email has already been taken.",
|
||||
"email_does_not_exist": "User with given email doesn't exist",
|
||||
"item_unit_already_taken": "This item unit name has already been taken",
|
||||
"payment_mode_already_taken": "This payment mode name has already been taken",
|
||||
"send_reset_link": "Send Reset Link",
|
||||
"not_yet": "Not yet? Send it again",
|
||||
"password_min_length": "Password must contain {count} characters",
|
||||
@ -809,9 +911,13 @@
|
||||
"amount_maxlength": "Amount should not be greater than 20 digits.",
|
||||
"amount_minvalue": "Amount should be greater than 0.",
|
||||
"description_maxlength": "Description should not be greater than 255 characters.",
|
||||
"subject_maxlength": "Subject should not be greater than 100 characters.",
|
||||
"message_maxlength": "Message should not be greater than 255 characters.",
|
||||
"maximum_options_error": "Maximum of {max} options selected. First remove a selected option to select another.",
|
||||
"notes_maxlength": "Notes should not be greater than 255 characters.",
|
||||
"address_maxlength": "Address should not be greater than 255 characters.",
|
||||
"ref_number_maxlength": "Ref Number should not be greater than 255 characters."
|
||||
"ref_number_maxlength": "Ref Number should not be greater than 255 characters.",
|
||||
"prefix_maxlength": "Prefix should not be greater than 5 characters.",
|
||||
"something_went_wrong": "something went wrong"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"items": "Artículos",
|
||||
"invoices": "Facturas",
|
||||
"expenses": "Gastos",
|
||||
"estimates": "Estimadas",
|
||||
"estimates": "Presupuestos",
|
||||
"payments": "Pagos",
|
||||
"reports": "Informes",
|
||||
"settings": "Configuraciones",
|
||||
@ -14,44 +14,44 @@
|
||||
"general": {
|
||||
"view_pdf": "Ver PDF",
|
||||
"download_pdf": "Descargar PDF",
|
||||
"save": "Salvar",
|
||||
"save": "Guardar",
|
||||
"cancel": "Cancelar",
|
||||
"update": "Actualizar",
|
||||
"download": "Descargar",
|
||||
"from_date": "Partir de la fecha",
|
||||
"from_date": "Desde la fecha",
|
||||
"to_date": "Hasta la fecha",
|
||||
"from": "De",
|
||||
"to": "A",
|
||||
"go_back": "Regresa",
|
||||
"back_to_login": "¿Atrás para iniciar sesión?",
|
||||
"home": "Casa",
|
||||
"go_back": "Volver",
|
||||
"back_to_login": "¿Volver al inicio de sesión?",
|
||||
"home": "Inicio",
|
||||
"filter": "Filtrar",
|
||||
"delete": "Eliminar",
|
||||
"edit": "Editar",
|
||||
"view": "Ver",
|
||||
"add_new_item": "Agregar ítem nuevo",
|
||||
"clear_all": "Limpiar todo",
|
||||
"showing": "Demostración",
|
||||
"showing": "Mostrando",
|
||||
"of": "de",
|
||||
"actions": "Comportamiento",
|
||||
"subtotal": "TOTAL PARCIAL",
|
||||
"actions": "Acciones",
|
||||
"subtotal": "SUBTOTAL",
|
||||
"discount": "DESCUENTO",
|
||||
"fixed": "Fija",
|
||||
"fixed": "Fijo",
|
||||
"percentage": "Porcentaje",
|
||||
"tax": "IMPUESTO",
|
||||
"total_amount": "CANTIDAD TOTAL",
|
||||
"bill_to": "Cobrar a",
|
||||
"ship_to": "Envie a",
|
||||
"due": "Debida",
|
||||
"draft": "Sequía",
|
||||
"sent": "Expedida",
|
||||
"ship_to": "Enviar a",
|
||||
"due": "Debido",
|
||||
"draft": "Borrador",
|
||||
"sent": "Enviado",
|
||||
"all": "Todas",
|
||||
"select_all": "Seleccionar todo",
|
||||
"choose_file": "Haga clic aquí para elegir un archivo.",
|
||||
"choose_file": "Haga clic aquí para elegir un archivo",
|
||||
"choose_template": "Elige una plantilla",
|
||||
"choose": "Escoger",
|
||||
"remove": "Eliminar",
|
||||
"powered_by": "Energizado por",
|
||||
"powered_by": "Impulsado por",
|
||||
"bytefury": "Bytefury",
|
||||
"select_a_status": "Selecciona un estado",
|
||||
"select_a_tax": "Selecciona un impuesto",
|
||||
@ -61,29 +61,29 @@
|
||||
"no_tax_found": "¡No se encontraron impuestos!",
|
||||
"four_zero_four": "404",
|
||||
"you_got_lost": "Whoops! ¡Te perdiste!",
|
||||
"go_home": "Vete a casa",
|
||||
"go_home": "Volver al Inicio",
|
||||
|
||||
"setting_updated": "Configuración actualizada con éxito",
|
||||
"select_state": "Seleccione estado",
|
||||
"select_state": "Seleccionar estado",
|
||||
"select_country": "Seleccionar país",
|
||||
"select_city": "Ciudad selecta",
|
||||
"select_city": "Seleccionar ciudad",
|
||||
"street_1": "Calle 1",
|
||||
"street_2": "Calle # 2",
|
||||
"action_failed": "Accion: Fallida"
|
||||
"street_2": "Calle 2",
|
||||
"action_failed": "Accion Fallida"
|
||||
},
|
||||
"dashboard": {
|
||||
"select_year": "Seleccione año",
|
||||
"select_year": "Seleccionar año",
|
||||
"cards": {
|
||||
"due_amount": "Monto adeudado",
|
||||
"due_amount": "Cantidad Debida",
|
||||
"customers": "Clientes",
|
||||
"invoices": "Facturas",
|
||||
"estimates": "Estimadas"
|
||||
"estimates": "Presupuestos"
|
||||
},
|
||||
"chart_info": {
|
||||
"total_sales": "Ventas",
|
||||
"total_receipts": "Ingresos",
|
||||
"total_expense": "Gastos",
|
||||
"net_income": "Lngresos netos",
|
||||
"net_income": "Ingresos netos",
|
||||
"year": "Seleccione año"
|
||||
},
|
||||
"weekly_invoices": {
|
||||
@ -96,16 +96,16 @@
|
||||
"title": "Facturas adeudadas",
|
||||
"due_on": "Debido a",
|
||||
"customer": "Cliente",
|
||||
"amount_due": "Monto adeudado",
|
||||
"actions": "Comportamiento",
|
||||
"amount_due": "Cantidad Debida",
|
||||
"actions": "Acciones",
|
||||
"view_all": "Ver todo"
|
||||
},
|
||||
"recent_estimate_card": {
|
||||
"title": "Estimaciones recientes",
|
||||
"title": "Presupuestos recientes",
|
||||
"date": "Fecha",
|
||||
"customer": "Cliente",
|
||||
"amount_due": "Monto adeudado",
|
||||
"actions": "Comportamiento",
|
||||
"amount_due": "Cantidad Debida",
|
||||
"actions": "Acciones",
|
||||
"view_all": "Ver todo"
|
||||
}
|
||||
},
|
||||
@ -123,16 +123,16 @@
|
||||
"display_name": "Nombre para mostrar",
|
||||
"primary_contact_name": "Nombre de contacto primario",
|
||||
"contact_name": "Nombre de contacto",
|
||||
"amount_due": "Monto adeudado",
|
||||
"amount_due": "Cantidad Debida",
|
||||
"email": "Email",
|
||||
"address": "Habla a",
|
||||
"address": "Dirección",
|
||||
"phone": "Teléfono",
|
||||
"website": "Sitio web",
|
||||
"country": "País",
|
||||
"state": "Estado",
|
||||
"city": "Ciudad",
|
||||
"zip_code": "Código postal",
|
||||
"added_on": "Añadido",
|
||||
"added_on": "Añadido el",
|
||||
"action": "Acción",
|
||||
"password": "Contraseña",
|
||||
"street_number": "Número de calle",
|
||||
@ -144,19 +144,14 @@
|
||||
"new_customer": "Nuevo cliente",
|
||||
"edit_customer": "Editar cliente",
|
||||
"basic_info": "Información básica",
|
||||
"billing_address": "Dirección de Envio",
|
||||
"billing_address": "Dirección de Facturación",
|
||||
"shipping_address": "Dirección de Envío",
|
||||
"copy_billing_address": "Copia de facturación",
|
||||
"no_customers": "¡Aún no hay clientes!",
|
||||
"no_customers_found": "No se encontraron clientes!",
|
||||
"no_customers_found": "¡No se encontraron clientes!",
|
||||
"list_of_customers": "Esta sección contendrá la lista de clientes.",
|
||||
"primary_display_name": "Nombre de visualización principal",
|
||||
"select_state": "Seleccione estado",
|
||||
"select_country": "Seleccionar país",
|
||||
"select_city": "Ciudad selecta",
|
||||
"select_currency": "Seleccione el tipo de moneda",
|
||||
"street_1": "Calle 1",
|
||||
"street_2": "Calle 2",
|
||||
"select_a_customer": "Selecciona un cliente",
|
||||
"type_or_click": "Escriba o haga clic para seleccionar",
|
||||
|
||||
@ -184,7 +179,7 @@
|
||||
"edit_item": "Editar elemento",
|
||||
"no_items": "¡Aún no hay artículos!",
|
||||
"list_of_items": "Esta sección contendrá la lista de artículos.",
|
||||
"select_a_unit": "seleccione unidad",
|
||||
"select_a_unit": "seleccionar unidad",
|
||||
|
||||
"item_attached_message": "No se puede eliminar un elemento que ya está en uso.",
|
||||
"confirm_delete": "No podrá recuperar este artículo | No podrás recuperar estos elementos",
|
||||
@ -193,10 +188,10 @@
|
||||
"deleted_message": "Elemento eliminado con éxito | Elementos eliminados correctamente"
|
||||
},
|
||||
"estimates": {
|
||||
"title": "Estimadas",
|
||||
"estimate": "Estimación | Estimados",
|
||||
"estimates_list": "Lista de estimaciones",
|
||||
"days": "{días} días",
|
||||
"title": "Presupuestos",
|
||||
"estimate": "Presupuesto | Presupuestos",
|
||||
"estimates_list": "Lista de presupuestos",
|
||||
"days": "{días} Días",
|
||||
"months": "{meses} Mes",
|
||||
"years": "{años} Año",
|
||||
"all": "Todas",
|
||||
@ -210,7 +205,7 @@
|
||||
"total": "Total",
|
||||
"discount": "Descuento",
|
||||
"sub_total": "Subtotal",
|
||||
"estimate_number": "Numero Estimado",
|
||||
"estimate_number": "Número de Presupuesto",
|
||||
"ref_number": "Número de referencia",
|
||||
"contact": "Contacto",
|
||||
"add_item": "Agregar un artículo",
|
||||
@ -224,49 +219,52 @@
|
||||
"notes": "Notas",
|
||||
"tax": "Impuesto",
|
||||
"send_estimate": "Enviar presupuesto",
|
||||
"estimate_template": "Plantilla de estimación",
|
||||
"estimate_template": "Plantilla de presupuesto",
|
||||
"convert_to_invoice": "Convertir a factura",
|
||||
"mark_as_sent": "Marcar como enviado",
|
||||
"record_payment": "Registro de pago",
|
||||
"add_estimate": "Agregar presupuesto",
|
||||
"save_estimate": "Guardar estimación",
|
||||
"confirm_conversion": "¿Quiere convertir esta estimación en factura?",
|
||||
"save_estimate": "Guardar presupuesto",
|
||||
"confirm_conversion": "¿Quiere convertir este presupuesto en una factura?",
|
||||
"conversion_message": "Conversión exitosa",
|
||||
"confirm_send_estimate": "Esta estimación se enviará por correo electrónico al cliente",
|
||||
"confirm_mark_as_sent": "Esta estimación se marcará como enviada",
|
||||
"confirm_mark_as_accepted": "Esta estimación se marcará como Aceptada",
|
||||
"confirm_mark_as_rejected": "Esta estimación se marcará como Rechazada",
|
||||
"mark_as_sent_successfully": "Estimación marcada como enviada correctamente",
|
||||
"send_estimate_successfully": "Estimación enviada con éxito",
|
||||
"confirm_send_estimate": "Este presupuesto se enviará por correo electrónico al cliente",
|
||||
"confirm_mark_as_sent": "Este presupuesto se marcará como enviado",
|
||||
"confirm_mark_as_accepted": "Este presupuesto se marcará como Aceptado",
|
||||
"confirm_mark_as_rejected": "Este presupuesto se marcará como Rechazado",
|
||||
"no_matching_estimates": "¡No hay presupuestos coincidentes!",
|
||||
"mark_as_sent_successfully": "Presupuesto marcado como enviado correctamente",
|
||||
"send_estimate_successfully": "Presupuesto enviado con éxito",
|
||||
"errors": {
|
||||
"required": "Se requiere campo"
|
||||
},
|
||||
"accepted": "Aceptada",
|
||||
"sent": "Expedida",
|
||||
"draft": "Sequía",
|
||||
"declined": "Rechazada",
|
||||
"new_estimate": "Nueva estimación",
|
||||
"accepted": "Aceptado",
|
||||
"sent": "Enviado",
|
||||
"draft": "Borrador",
|
||||
"declined": "Rechazado",
|
||||
"new_estimate": "Nuevo presupuesto",
|
||||
"add_new_estimate": "Añadir nuevo presupuesto",
|
||||
"update_Estimate": "Actualizar presupuesto",
|
||||
"edit_estimate": "Editar estimación",
|
||||
"edit_estimate": "Editar presupuesto",
|
||||
"items": "artículos",
|
||||
"Estimate": "Estimación | Estimados",
|
||||
"Estimate": "Presupuestos | Presupuestos",
|
||||
"add_new_tax": "Agregar nuevo impuesto",
|
||||
"no_estimates": "¡Aún no hay estimaciones!",
|
||||
"list_of_estimates": "Esta sección contendrá la lista de estimaciones.",
|
||||
"no_estimates": "¡Aún no hay presupuestos!",
|
||||
"list_of_estimates": "Esta sección contendrá la lista de presupuestos.",
|
||||
"mark_as_rejected": "Marcar como rechazado",
|
||||
"mark_as_accepted": "Marcar como aceptado",
|
||||
|
||||
"marked_as_accepted_message": "Estimación marcada como aceptada",
|
||||
"marked_as_rejected_message": "Estimación marcada como rechazada",
|
||||
"confirm_delete": "No podrá recuperar esta estimación | No podrá recuperar estas estimaciones",
|
||||
"created_message": "Estimación creada con éxito",
|
||||
"updated_message": "Estimación actualizada con éxito",
|
||||
"deleted_message": "Estimación eliminada con éxito | Estimaciones eliminadas exitosamente",
|
||||
"marked_as_accepted_message": "Presupuesto marcado como aceptado",
|
||||
"marked_as_rejected_message": "Presupuesto marcado como rechazado",
|
||||
"confirm_delete": "No podrá recuperar este presupuesto | No podrá recuperar estos presupuestos",
|
||||
"created_message": "Presupuesto creada con éxito",
|
||||
"updated_message": "Presupuesto actualizada con éxito",
|
||||
"deleted_message": "Presupuesto eliminada con éxito | Presupuestos eliminadas exitosamente",
|
||||
"user_email_does_not_exist": "El email del usuario no existe",
|
||||
"something_went_wrong": "Algo fue mal",
|
||||
"item": {
|
||||
"title": "Título del artículo",
|
||||
"description": "Descripción",
|
||||
"quantity": "Quantity",
|
||||
"quantity": "Cantidad",
|
||||
"price": "Precio",
|
||||
"discount": "Descuento",
|
||||
"total": "Total",
|
||||
@ -275,13 +273,13 @@
|
||||
"tax": "Impuesto",
|
||||
"amount": "Cantidad",
|
||||
"select_an_item": "Escriba o haga clic para seleccionar un elemento",
|
||||
"type_item_description": "Tipo Elemento Descripción (opcional)"
|
||||
"type_item_description": "Descripción del tipo de elemento(opcional)"
|
||||
}
|
||||
},
|
||||
"invoices": {
|
||||
"title": "Facturas",
|
||||
"invoices_list": "Lista de facturas",
|
||||
"days": "{días} días",
|
||||
"days": "{días} Días",
|
||||
"months": "{meses} Mes",
|
||||
"years": "{años} Año",
|
||||
"all": "Todas",
|
||||
@ -309,16 +307,17 @@
|
||||
"action": "Acción",
|
||||
"notes": "Notas",
|
||||
"view": "Ver",
|
||||
"send_invoice": "Enviará la factura",
|
||||
"send_invoice": "Enviar la factura",
|
||||
"invoice_template": "Plantilla de factura",
|
||||
"template": "Modelo",
|
||||
"mark_as_sent": "Marcar como enviado",
|
||||
"mark_as_sent": "Marcar como enviada",
|
||||
"invoice_mark_as_sent": "Esta factura se marcará como enviada",
|
||||
"confirm_send_invoice": "Esta factura será enviada por email al cliente",
|
||||
"confirm_send": "Estas facturas se enviarán por correo electrónico al cliente.",
|
||||
"invoice_date": "Fecha de la factura",
|
||||
"record_payment": "Registro de pago",
|
||||
"add_new_invoice": "Añadir nueva factura",
|
||||
"update_expense": "Gastos de actualización",
|
||||
"update_expense": "Actualizar gasto",
|
||||
"edit_invoice": "Editar factura",
|
||||
"new_invoice": "Nueva factura",
|
||||
"save_invoice": "Guardar factura",
|
||||
@ -327,6 +326,7 @@
|
||||
"no_invoices": "¡Aún no hay facturas!",
|
||||
"list_of_invoices": "Esta sección contendrá la lista de facturas.",
|
||||
"select_invoice": "Seleccionar factura",
|
||||
"no_matching_invoices": "¡No hay facturas coincidentes con la selección!",
|
||||
"mark_as_sent_successfully": "Factura marcada como enviada con éxito",
|
||||
"send_invoice_successfully": "Factura enviada exitosamente",
|
||||
"item": {
|
||||
@ -341,7 +341,7 @@
|
||||
"tax": "Impuesto",
|
||||
"amount": "Cantidad",
|
||||
"select_an_item": "Escriba o haga clic para seleccionar un elemento",
|
||||
"type_item_description": "Tipo Elemento Descripción (opcional)"
|
||||
"type_item_description": "Descripción del tipo de elemento (opcional)"
|
||||
},
|
||||
"payment_attached_message": "Una de las facturas seleccionadas ya tiene un pago adjunto. Asegúrese de eliminar primero los pagos adjuntos para continuar con la eliminación",
|
||||
"confirm_delete": "No podrá recuperar esta factura | No podrá recuperar estas facturas",
|
||||
@ -349,7 +349,9 @@
|
||||
"updated_message": "Factura actualizada exitosamente",
|
||||
"deleted_message": "Factura eliminada con éxito | Facturas borradas exitosamente",
|
||||
"marked_as_sent_message": "Factura marcada como enviada con éxito",
|
||||
"invalid_due_amount_message": "El pago ingresado es mayor que el monto total adeudado por esta factura. Por favor verifique y vuelva a intentar"
|
||||
"user_email_does_not_exist": "El email del usuario no existe",
|
||||
"something_went_wrong": "Algo fue mal",
|
||||
"invalid_due_amount_message": "El pago ingresado es mayor que la cantidad total debida por esta factura. Por favor verificalo y vuelve a intentarlo"
|
||||
},
|
||||
"credit_notes": {
|
||||
"title": "Notas de credito",
|
||||
@ -395,6 +397,7 @@
|
||||
"update_payment": "Actualizar pago",
|
||||
"payment": "Pago | Pagos",
|
||||
"no_payments": "¡Aún no hay pagos!",
|
||||
"no_matching_payments": "¡No hay pagos equivalentes!",
|
||||
"list_of_payments": "Esta sección contendrá la lista de pagos.",
|
||||
"select_payment_mode": "Seleccionar modo de pago",
|
||||
|
||||
@ -409,8 +412,10 @@
|
||||
"expenses_list": "Lista de gastos",
|
||||
"expense_title": "Título",
|
||||
"contact": "Contacto",
|
||||
"customer": "Cliente",
|
||||
"select_a_customer": "Selecciona un cliente",
|
||||
"category": "Categoría",
|
||||
"from_date": "Partir de la fecha",
|
||||
"from_date": "Desde la fecha",
|
||||
"to_date": "Hasta la fecha",
|
||||
"expense_date": "Fecha",
|
||||
"description": "Descripción",
|
||||
@ -422,13 +427,13 @@
|
||||
"date": "Fecha de gastos",
|
||||
"add_expense": "Añadir gastos",
|
||||
"add_new_expense": "Añadir nuevo gasto",
|
||||
"save_expense": "Ahorre gastos",
|
||||
"update_expense": "Gastos de actualización",
|
||||
"save_expense": "Guardar gasto",
|
||||
"update_expense": "Actualizar gasto",
|
||||
"download_receipt": "Descargar recibo",
|
||||
"edit_expense": "Editar gasto",
|
||||
"new_expense": "Nuevo gasto",
|
||||
"expense": "Gastos | Gastos",
|
||||
"no_expenses": "No hay gastos todavía!",
|
||||
"no_expenses": "¡No hay gastos todavía!",
|
||||
"list_of_expenses": "Esta sección contendrá la lista de gastos.",
|
||||
|
||||
"confirm_delete": "No podrá recuperar este gasto | No podrá recuperar estos gastos",
|
||||
@ -451,19 +456,20 @@
|
||||
"login": {
|
||||
"email": "Email",
|
||||
"password": "Contraseña",
|
||||
"forgot_password": "¿Se te olvidó tu contraseña?",
|
||||
"or_signIn_with": "o Inicie sesión con",
|
||||
"forgot_password": "¿Olvidaste tu contraseña?",
|
||||
"or_signIn_with": "o Inicia sesión con",
|
||||
"login": "Iniciar sesión",
|
||||
"register": "Registro",
|
||||
"reset_password": "Restablecer la contraseña",
|
||||
"enter_email": "Ingrese correo electrónico",
|
||||
"enter_password": "Introducir la contraseña",
|
||||
"retype_password": "Retype Password",
|
||||
"password_reset_successfully": "Contraseña reestablecida con éxito",
|
||||
"enter_email": "Escriba el correo electrónico",
|
||||
"enter_password": "Escriba la contraseña",
|
||||
"retype_password": "Reescriba la contraseña",
|
||||
"login_placeholder": "mail@example.com"
|
||||
},
|
||||
"reports": {
|
||||
"title": "Reporte",
|
||||
"from_date": "Partir de la fecha",
|
||||
"title": "Informe",
|
||||
"from_date": "A partir de la fecha",
|
||||
"to_date": "Hasta la fecha",
|
||||
"status": "Estado",
|
||||
"paid": "Pagada",
|
||||
@ -475,20 +481,20 @@
|
||||
"profit_loss": {
|
||||
"profit_loss": "Pérdida de beneficios",
|
||||
"to_date": "Hasta la fecha",
|
||||
"from_date": "Partir de la fecha",
|
||||
"from_date": "A partir de la fecha",
|
||||
"date_range": "Seleccionar rango de fechas"
|
||||
},
|
||||
"sales": {
|
||||
"sales": "Ventas",
|
||||
"date_range": "Seleccionar rango de fechas",
|
||||
"to_date": "Hasta la fecha",
|
||||
"from_date": "Partir de la fecha",
|
||||
"from_date": "A partir de la fecha",
|
||||
"report_type": "Tipo de informe"
|
||||
},
|
||||
"taxes": {
|
||||
"taxes": "Impuestos",
|
||||
"to_date": "Hasta la fecha",
|
||||
"from_date": "Partir de la fecha",
|
||||
"from_date": "A partir de la fecha",
|
||||
"date_range": "Seleccionar rango de fechas"
|
||||
},
|
||||
"errors": {
|
||||
@ -503,10 +509,10 @@
|
||||
"status": "Estado"
|
||||
},
|
||||
"estimates": {
|
||||
"estimate": "Estimar",
|
||||
"estimate_date": "Fecha estimada",
|
||||
"estimate": "Presupuestar",
|
||||
"estimate_date": "Fecha presupuesto",
|
||||
"due_date": "Fecha de vencimiento",
|
||||
"estimate_number": "Numero Estimado",
|
||||
"estimate_number": "Número de Presupuesto",
|
||||
"ref_number": "Número de referencia",
|
||||
"amount": "Cantidad",
|
||||
"contact_name": "Nombre de contacto",
|
||||
@ -518,7 +524,7 @@
|
||||
"date": "Fecha",
|
||||
"amount": "Cantidad",
|
||||
"to_date": "Hasta la fecha",
|
||||
"from_date": "Partir de la fecha",
|
||||
"from_date": "A partir de la fecha",
|
||||
"date_range": "Seleccionar rango de fechas"
|
||||
}
|
||||
},
|
||||
@ -526,6 +532,7 @@
|
||||
"menu_title": {
|
||||
"account_settings": "Configuraciones de la cuenta",
|
||||
"company_information": "Información de la empresa",
|
||||
"customization": "Personalización",
|
||||
"preferences": "Preferencias",
|
||||
"notifications": "Notificaciones",
|
||||
"tax_types": "Tipos de impuestos",
|
||||
@ -548,7 +555,7 @@
|
||||
"code": "Código",
|
||||
"symbol": "Símbolo",
|
||||
"precision": "Precisión",
|
||||
"thousand_separator": "Mil separadores",
|
||||
"thousand_separator": "Separador de miles",
|
||||
"decimal_separator": "Separador decimal",
|
||||
"position": "Posición",
|
||||
"position_of_symbol": "Posición del símbolo",
|
||||
@ -566,9 +573,9 @@
|
||||
"username": "Nombre de usuario de correo",
|
||||
"mailgun_secret": "Mailgun Secreto",
|
||||
"mailgun_domain": "Domino",
|
||||
"mailgun_endpoint": "Mailgun Punto Final",
|
||||
"ses_secret": "SES Secreto",
|
||||
"ses_key": "SES llave",
|
||||
"mailgun_endpoint": "Mailgun endpoint",
|
||||
"ses_secret": "Secreto SES",
|
||||
"ses_key": "Clave SES",
|
||||
"from_name": "Del nombre del correo",
|
||||
"from_mail": "Desde la dirección de correo",
|
||||
"mail_config": "Configuración de correo",
|
||||
@ -582,18 +589,79 @@
|
||||
},
|
||||
"company_info": {
|
||||
"company_info": "Información de la compañía",
|
||||
"company_name": "nombre de empresa",
|
||||
"company_name": "Nombre de Empresa",
|
||||
"company_logo": "Logo de la compañía",
|
||||
"section_description": "Información sobre su empresa que se mostrará en las facturas, estimaciones y otros documentos creados por Crater.",
|
||||
"section_description": "Información sobre su empresa que se mostrará en las facturas, presupuestos y otros documentos creados por Crater.",
|
||||
"phone": "Teléfono",
|
||||
"country": "País",
|
||||
"state": "Estado",
|
||||
"city": "Ciudad",
|
||||
"address": "Habla a",
|
||||
"address": "Dirección",
|
||||
"zip": "Código Postal",
|
||||
"save": "Salvar",
|
||||
"save": "Guardar",
|
||||
"updated_message": "Información de la empresa actualizada con éxito"
|
||||
},
|
||||
"customization": {
|
||||
"customization": "Personalización",
|
||||
"save": "Guardar",
|
||||
"addresses": {
|
||||
"title": "Direcciones",
|
||||
"section_description": "Puede configurar la Dirección de facturación del cliente y el Formato de dirección de envío del cliente (solo se muestra en PDF).",
|
||||
"customer_billing_address": "Dirección de facturación del cliente",
|
||||
"customer_shipping_address": "Dirección de envío del cliente",
|
||||
"company_address": "Dirección de la compañia",
|
||||
"insert_fields": "Insertar campos",
|
||||
"contact": "Contacto",
|
||||
"address": "Dirección",
|
||||
"display_name": "Nombre para mostrar",
|
||||
"primary_contact_name": "Nombre de contacto principal",
|
||||
"email": "Email",
|
||||
"website": "Sitio web",
|
||||
"name": "Nombre",
|
||||
"country": "País",
|
||||
"state": "Estado",
|
||||
"city": "Ciudad",
|
||||
"company_name": "Nombre de la compañia",
|
||||
"address_street_1": "Dirección de la calle 1",
|
||||
"address_street_2": "Dirección de la calle 2",
|
||||
"phone": "Telefono",
|
||||
"zip_code": "Codigo postal",
|
||||
"address_setting_updated": "Configuración de dirección actualizada correctamente"
|
||||
},
|
||||
"updated_message": "Información de la empresa actualizada con éxito",
|
||||
|
||||
"invoices": {
|
||||
"title": "Facturas",
|
||||
"notes": "Notas",
|
||||
"invoice_prefix": "Prefijo de las facturas",
|
||||
"invoice_settings": "Ajustes de facturas",
|
||||
"autogenerate_invoice_number": "Autogenerar número de factura",
|
||||
"invoice_setting_description": "Desactive esto, si no desea generar automáticamente números de factura cada vez que cree una nueva factura.",
|
||||
"enter_invoice_prefix": "Introduzca el prefijo de factura",
|
||||
"terms_and_conditions": "Términos y Condiciones",
|
||||
"invoice_setting_updated": "Configuración de factura actualizada correctamente"
|
||||
},
|
||||
|
||||
"estimates": {
|
||||
"title": "Estimaciones",
|
||||
"estimate_prefix": "Prefijo de los presupuestos",
|
||||
"estimate_settings": "Ajustes de presupuestos",
|
||||
"autogenerate_estimate_number": "Autogenerar número de presupuesto",
|
||||
"estimate_setting_description": "Desactive esto, si no desea generar automáticamente números de presupuesto cada vez que cree un nuevo presupuesto.",
|
||||
"enter_estimate_prefix": "Introduzca el prefijo de presupuesto",
|
||||
"estimate_setting_updated": "Configuración de presupuestos actualizada correctamente"
|
||||
},
|
||||
|
||||
"payments": {
|
||||
"title": "Payments",
|
||||
"payment_prefix": "Prefijo de los pagos",
|
||||
"payment_settings": "Ajustes de pagos",
|
||||
"autogenerate_payment_number": "Autogenerar número de pago",
|
||||
"payment_setting_description": "Desactive esto, si no desea generar automáticamente números de pago cada vez que cree un nuevo pago.",
|
||||
"enter_payment_prefix": "Introduzca el prefijo de pago",
|
||||
"payment_setting_updated": "Configuración de pagos actualizada correctamente"
|
||||
}
|
||||
},
|
||||
"account_settings": {
|
||||
"profile_picture": "Foto de perfil",
|
||||
"name": "Nombre",
|
||||
@ -601,7 +669,7 @@
|
||||
"password": "Contraseña",
|
||||
"confirm_password": "Confirmar contraseña",
|
||||
"account_settings": "Configuraciones de la cuenta",
|
||||
"save": "Salvar",
|
||||
"save": "Guardar",
|
||||
"section_description": "Puede actualizar su nombre, correo electrónico y contraseña utilizando el siguiente formulario.",
|
||||
"updated_message": "Configuración de la cuenta actualizada correctamente"
|
||||
},
|
||||
@ -616,10 +684,10 @@
|
||||
"email": "Enviar notificaciones a",
|
||||
"description": "¿Qué notificaciones por correo electrónico le gustaría recibir cuando algo cambia?",
|
||||
"invoice_viewed": "Factura vista",
|
||||
"invoice_viewed_desc": "Cuando su cliente ve la factura enviada a través del panel de control del cráter.",
|
||||
"estimate_viewed": "Estimación vista",
|
||||
"estimate_viewed_desc": "Cuando su cliente ve la estimación enviada a través del panel de control del cráter.",
|
||||
"save": "Salvar",
|
||||
"invoice_viewed_desc": "Cuando su cliente vio la factura enviada a través del panel de control de Crater.",
|
||||
"estimate_viewed": "Presupuesto visto",
|
||||
"estimate_viewed_desc": "Cuando su cliente vio el presupuesto enviado a través del panel de control de Crater.",
|
||||
"save": "Guardar",
|
||||
"email_save_message": "Correo electrónico guardado con éxito",
|
||||
"please_enter_email": "Por favor, introduzca su correo electrónico"
|
||||
},
|
||||
@ -630,11 +698,11 @@
|
||||
"add_new_tax": "Agregar nuevo impuesto",
|
||||
"tax_settings": "Configuraciones de impuestos",
|
||||
"tax_per_item": "Impuesto por artículo",
|
||||
"tax_name": "Nombre fiscal",
|
||||
"tax_name": "Nombre del impuesto",
|
||||
"compound_tax": "Impuesto compuesto",
|
||||
"percent": "Por ciento",
|
||||
"percent": "Porcentaje",
|
||||
"action": "Acción",
|
||||
"tax_setting_description": "Habilítelo si desea agregar impuestos a artículos de factura individuales. Por defecto, los impuestos se agregan directamente a la factura.",
|
||||
"tax_setting_description": "Habilítelo si desea agregar impuestos a artículos de factura de forma individual. Por defecto, los impuestos se agregan directamente a la factura.",
|
||||
"created_message": "Tipo de impuesto creado con éxito",
|
||||
"updated_message": "Tipo de impuesto actualizado correctamente",
|
||||
"deleted_message": "Tipo de impuesto eliminado correctamente",
|
||||
@ -663,7 +731,7 @@
|
||||
"discount_setting": "Ajuste de descuento",
|
||||
"discount_per_item": "Descuento por artículo",
|
||||
"discount_setting_description": "Habilítelo si desea agregar Descuento a artículos de factura individuales. Por defecto, los descuentos se agregan directamente a la factura.",
|
||||
"save": "Salvar",
|
||||
"save": "Guardar",
|
||||
"preference": "Preferencia | Preferencias",
|
||||
"general_settings": "Preferencias predeterminadas para el sistema.",
|
||||
"updated_message": "Preferencias actualizadas exitosamente",
|
||||
@ -693,7 +761,7 @@
|
||||
"email": "Email",
|
||||
"password": "Contraseña",
|
||||
"confirm_password": "Confirmar contraseña",
|
||||
"save_cont": "Guardar Continuar",
|
||||
"save_cont": "Guardar y continuar",
|
||||
"company_info": "Información de la empresa",
|
||||
"company_info_desc": "Esta información se mostrará en las facturas. Tenga en cuenta que puede editar esto más adelante en la página de configuración.",
|
||||
"company_name": "nombre de empresa",
|
||||
@ -704,8 +772,8 @@
|
||||
"country": "País",
|
||||
"state": "Estado",
|
||||
"city": "Ciudad",
|
||||
"address": "Habla a",
|
||||
"street": "Calle1 | Calle # 2",
|
||||
"address": "Dirección",
|
||||
"street": "Calle1 | Calle2",
|
||||
"phone": "Teléfono",
|
||||
"zip_code": "Código postal",
|
||||
"go_back": "Regresa",
|
||||
@ -714,16 +782,17 @@
|
||||
"time_zone": "Zona horaria",
|
||||
"fiscal_year": "Año financiero",
|
||||
"date_format": "Formato de fecha",
|
||||
"from_address": "De la Dirección",
|
||||
"from_address": "Desde la Dirección",
|
||||
"username": "Nombre de usuario",
|
||||
"next": "Próximo",
|
||||
"continue": "Hacer continuación",
|
||||
"next": "Siguiente",
|
||||
"continue": "Continuar",
|
||||
"skip": "Saltar",
|
||||
"database": {
|
||||
"database": "URL del sitio y base de datose",
|
||||
"connection": "Conexión de base de datos",
|
||||
"host": "Database Host",
|
||||
"port": "Host de base de datos",
|
||||
"password": "Contraseña de base de datos",
|
||||
"host": "Host de la base de datos",
|
||||
"port": "Puerto de la base de datos",
|
||||
"password": "Contraseña de la base de datos",
|
||||
"app_url": "URL de la aplicación",
|
||||
"username": "Nombre de usuario de la base de datos",
|
||||
"db_name": "Nombre de la base de datos",
|
||||
@ -731,7 +800,7 @@
|
||||
},
|
||||
"permissions": {
|
||||
"permissions": "Permisos",
|
||||
"permission_confirm_title": "Estás seguro de que quieres continuar?",
|
||||
"permission_confirm_title": "¿Estás seguro de que quieres continuar?",
|
||||
"permission_confirm_desc": "Error de verificación de permisos de carpeta",
|
||||
"permission_desc": "A continuación se muestra la lista de permisos de carpeta necesarios para que la aplicación funcione. Si la verificación de permisos falla, asegúrese de actualizar los permisos de su carpeta."
|
||||
},
|
||||
@ -740,16 +809,16 @@
|
||||
"port": "Puerto de correo",
|
||||
"driver": "Conductor de correo",
|
||||
"secret": "Secreto",
|
||||
"mailgun_secret": "Mailgun Secreto",
|
||||
"mailgun_domain": "Dominio",
|
||||
"mailgun_endpoint": "Mailgun endpoint",
|
||||
"password": "Contraseña de correo",
|
||||
"username": "Nombre de usuario de correo",
|
||||
"mailgun_secret": "Mailgun Secreto",
|
||||
"mailgun_domain": "Domino",
|
||||
"mailgun_endpoint": "Mailgun Punto Final",
|
||||
"ses_secret": "SES Secreto",
|
||||
"ses_key": "SES llave",
|
||||
"ses_secret": "Secreto SES",
|
||||
"ses_key": "Clave SES",
|
||||
"mail_config": "Configuración de correo",
|
||||
"from_name": "Del nombre del correo",
|
||||
"from_mail": "Desde la dirección de correo",
|
||||
"mail_config": "Configuración de correo",
|
||||
"encryption": "Cifrado de correo",
|
||||
"mail_config_desc": "Los detalles a continuación se utilizarán para actualizar el entorno de correo. También puede cambiar los detalles en cualquier momento después de iniciar sesión."
|
||||
},
|
||||
@ -763,7 +832,8 @@
|
||||
"migrate_failed": "La migración falló",
|
||||
"database_variables_save_error": "No se puede conectar a la base de datos con los valores proporcionados.",
|
||||
"mail_variables_save_error": "La configuración del correo electrónico ha fallado.",
|
||||
"connection_failed": "Conexión de base de datos fallida"
|
||||
"connection_failed": "Conexión de base de datos fallida",
|
||||
"database_should_be_empty": "La base de datos debe estar vacía"
|
||||
},
|
||||
"success": {
|
||||
"mail_variables_save_successfully": "Correo electrónico configurado correctamente",
|
||||
@ -771,32 +841,33 @@
|
||||
}
|
||||
},
|
||||
"layout_login": {
|
||||
"copyright_crater": "Copyright @ Crater - 2019",
|
||||
"copyright_crater": "Copyright @ Crater - 2020",
|
||||
"super_simple_invoicing": "Facturación super simple",
|
||||
"for_freelancer": "para autónomos y",
|
||||
"small_businesses": "Pequeñas empresas",
|
||||
"crater_help": "Crater te ayuda a rastrear gastos, registrar pagos y generar hermosos",
|
||||
"small_businesses": "pequeñas empresas",
|
||||
"crater_help": "Crater te ayuda a rastrear gastos, registrar pagos y generar hermosas",
|
||||
"invoices_and_estimates": "facturas y presupuestos con capacidad para elegir múltiples plantillas."
|
||||
|
||||
},
|
||||
"validation": {
|
||||
"invalid_url": "URL no válida (por ejemplo, http://www.crater.com)",
|
||||
"required": "Se requiere campo",
|
||||
"email_incorrect": "Email incorrecto.",
|
||||
"email_does_not_exist": " Usuario con correo electrónico dado no existe",
|
||||
"send_reset_link": "Enviar restablecer enlace",
|
||||
"not_yet": "¿Aún no? Envialo de nuevo",
|
||||
"email_already_taken": "Este email ya está en uso",
|
||||
"email_does_not_exist": "El usuario con el correo electrónico dado no existe",
|
||||
"send_reset_link": "Enviar enlace de restablecimiento",
|
||||
"payment_mode_already_taken": "El modo de pago ya ha sido tomado",
|
||||
"not_yet": "¿Aún no? Envíalo de nuevo",
|
||||
"password_min_length": "La contraseña debe contener {count} caracteres",
|
||||
"name_min_length": "El nombre debe tener al menos {count} letras.",
|
||||
"enter_valid_tax_rate": "Ingrese una tasa impositiva válida",
|
||||
"numbers_only": "Solo numeros.",
|
||||
"characters_only": "Solo personajes.",
|
||||
"numbers_only": "Solo números.",
|
||||
"characters_only": "Solo caracteres.",
|
||||
"password_incorrect": "Las contraseñas deben ser idénticas",
|
||||
"password_length": "La contraseña debe tener 5 caracteres de longitud.",
|
||||
"qty_must_greater_than_zero": "La cantidad debe ser mayor que cero.",
|
||||
"price_greater_than_zero": "El precio debe ser mayor que cero.",
|
||||
"payment_greater_than_zero": "El pago debe ser mayor que cero.",
|
||||
"payment_greater_than_due_amount": "El pago ingresado es mayor al monto adeudado de esta factura.",
|
||||
"payment_greater_than_due_amount": "El pago ingresado es mayor a la cantidad debida de esta factura.",
|
||||
"quantity_maxlength": "La cantidad no debe ser mayor de 20 dígitos.",
|
||||
"price_maxlength": "El precio no debe ser mayor de 20 dígitos.",
|
||||
"price_minvalue": "El precio debe ser mayor que 0 dígitos",
|
||||
@ -806,6 +877,7 @@
|
||||
"maximum_options_error": "Máximo de {max} opciones seleccionadas. Primero elimine una opción seleccionada para seleccionar otra.",
|
||||
"notes_maxlength": "Las notas no deben tener más de 255 caracteres.",
|
||||
"address_maxlength": "La dirección no debe tener más de 255 caracteres.",
|
||||
"ref_number_maxlength": "El número de referencia no debe tener más de 255 caracteres."
|
||||
"ref_number_maxlength": "El número de referencia no debe tener más de 255 caracteres.",
|
||||
"prefix_maxlength": "El prefijo no debe tener más de 5 caracteres."
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user