Compare commits

..

50 Commits

Author SHA1 Message Date
db1b0db461 update dompdf version 2021-03-23 13:14:34 +05:30
17c00c322d Add test ci 2021-03-22 16:52:01 +01:00
331b8ea44e Merge pull request #426 from TheZoker/fix-invoice-address-capitalize
Don't capitalize address on invoice
2021-03-22 19:20:05 +05:30
428be640c3 Don't capitalize address on invoice 2021-03-22 14:49:31 +01:00
51f79433b9 feat: Added MAD (Moroccan dirham) currency (#355)
Add MAD (Moroccan dirham) currency
2021-03-22 17:33:36 +05:30
8008ed0527 Merge pull request #423 from TheZoker/add-more-translation
Add more translation
2021-03-22 14:59:04 +05:30
57b302666a Address review comments 2021-03-22 10:17:01 +01:00
ee1d1ccff4 update readme and fix formatting on utilities 2021-03-22 13:05:02 +05:30
81e7109ad1 new build 2021-03-22 13:02:17 +05:30
784bf39df5 fix max-discount issue on estimates and generate new public files 2021-03-22 12:57:46 +05:30
f66755c4aa Merge pull request #365 from DjKhireddine/patch-1
Update Item.vue
2021-03-22 12:56:37 +05:30
b4e1e99d37 Merge pull request #354 from habibhaidari1/master
Fixed small typo that caused wrong breadcrumb
2021-03-22 12:42:33 +05:30
d8aa3dc8a6 Merge pull request #336 from romanobarassi/barassi-crater-fix1
Update composer.json
2021-03-22 12:32:45 +05:30
9af51660cb Merge pull request #405 from itsaboutcode/show_field_min_length
Showing length error for Payment, Note and ItemUnit Model Views
2021-03-22 12:26:41 +05:30
38d0da9618 Merge pull request #419 from TheZoker/translate-pdf-title
Translate PDF titles
2021-03-22 12:22:41 +05:30
761c0143ec Merge pull request #420 from TheZoker/adjust-money-format
Adjust money format to respect swap_currency_symbol
2021-03-22 12:12:13 +05:30
fdc4de5093 Merge pull request #407 from sebastiancretu/send_inv_est_pay_as_attachment
Send invoices, estimates and payments as attachments
2021-03-22 12:06:06 +05:30
f8591f96a9 Write € symbol after amount 2021-03-21 13:05:49 +01:00
e47cb01ce2 Translate badges 2021-03-21 00:45:43 +01:00
454ad3091a Add some missing translations 2021-03-21 00:45:37 +01:00
cc73a8a842 Adjust money format to respect swap_currency_symbol 2021-03-20 17:49:57 +01:00
cea8405ace Translate PDF titles 2021-03-20 14:35:22 +01:00
49a6e03e9d Merge pull request #408 from sebastiancretu/fix_unit_name_in_emails
fix(items): added unit name after quantity in the pdf templates
2021-03-15 16:18:54 +05:30
f9d6e8b0cc fix(items): added unit name after quantity in the pdf templates 2021-03-03 17:09:05 +01:00
2b78aacc83 feat(emails): implemented sending invoice, estimates and payments as attachements 2021-03-02 21:49:03 +01:00
1932c5a75e a 2021-03-02 21:19:16 +01:00
449968ae88 Showing length error for Payment, Note and ItemUnit Model Views 2021-03-02 10:50:27 +05:00
02a2db4417 Merge pull request #372 from makakken/master
Fixes #371
2021-02-24 15:40:34 +05:30
a53582f916 Merge pull request #398 from renzocastillo/master
added new currency: peruvian soles
2021-02-24 15:40:10 +05:30
340bf3be06 added new currency: peruvian soles 2021-02-22 11:34:25 -05:00
7f0da9dc36 fix conflict 2021-02-12 13:19:56 +05:30
c4ace76275 Merge branch 'master' of gitlab.com:mohit.panjvani/crater-web 2021-02-12 13:18:03 +05:30
553bcc053b Merge pull request #375 from sebastiancretu/fix_payment_receipt_currency
fix(payments): display the currency in receipts
2021-02-12 11:54:19 +05:30
375a59a504 fix(payments): display the currency in receipts 2021-02-08 20:42:10 +01:00
cfc0a1ef75 Regenerated assets 2021-02-05 20:53:34 +01:00
392f6f469b Send Invoices/Estimates/Payments as email attachments 2021-02-05 20:24:56 +01:00
6cb8d30915 Update invoice3.blade.php
Fix Exception: 'box_sizing' is not a recognized CSS property.
2021-02-04 11:02:59 +01:00
9b55e84724 Update invoice2.blade.php
Fix Exception: 'box_sizing' is not a recognized CSS property.
2021-02-04 11:02:32 +01:00
cf5da7684b Update invoice1.blade.php
fix box_sizing DOMPDF Bug
2021-02-04 11:01:57 +01:00
f47029ca78 fix payment invalid-number issue 2021-02-03 14:25:05 +05:30
761df2ffac Merge branch 'mail-name-issue' into 'master'
invoice mail name issue fix

See merge request mohit.panjvani/crater-web!669
2021-02-03 07:19:32 +00:00
8fbc257b23 payment from mail name 2021-02-03 12:24:28 +05:30
baebfedf37 invoice and estimate from mail name issue 2021-02-03 12:21:03 +05:30
9321eb9d86 Merge branch 'payment_issue' into 'master'
fix payment currency issue

See merge request mohit.panjvani/crater-web!668
2021-02-03 06:31:23 +00:00
70bed01e7b invoice mail name issue fix 2021-02-03 11:38:59 +05:30
739efcce79 Update Item.vue
There is an error in calculating maxDiscount. 
maxDiscount = item.price * item.quantity
2021-02-02 19:23:32 +01:00
3695e7d075 fix payment currency issue 2021-02-02 17:22:44 +05:30
8f2033f621 Fixed small type that caused wrong breadcrumb 2021-01-23 19:29:26 +01:00
7b95ccb5fc fix company logo issue 2021-01-22 19:00:37 +05:30
a6c3c815b5 Update composer.json 2021-01-04 18:59:07 +01:00
73 changed files with 1248 additions and 595 deletions

34
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,34 @@
name: CI
on: [push, pull_request]
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0']
name: PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: exif
- name: Install PHP 7 dependencies
run: composer update --no-interaction --no-progress
if: "matrix.php < 8"
- name: Install PHP 8 dependencies
run: composer update --ignore-platform-req=php --no-interaction --no-progress
if: "matrix.php >= 8"
- name: Unit Tests
run: php ./vendor/bin/pest

View File

@ -40,9 +40,16 @@ class SendEstimateMail extends Mailable
'mailable_id' => $this->data['estimate']['id'] 'mailable_id' => $this->data['estimate']['id']
]); ]);
return $this->from($this->data['from']) $mailContent = $this->from($this->data['from'], config('mail.from.name'))
->subject($this->data['subject']) ->subject($this->data['subject'])
->markdown('emails.send.estimate', ['data', $this->data]); ->markdown('emails.send.estimate', ['data', $this->data]);
if ($this->data['attach']['data'])
$mailContent->attachData(
$this->data['attach']['data']->output(),
$this->data['estimate']['estimate_number'] . '.pdf'
);
return $mailContent;
} }
} }

View File

@ -1,6 +1,7 @@
<?php <?php
namespace Crater\Mail; namespace Crater\Mail;
use Config;
use Crater\Models\EmailLog; use Crater\Models\EmailLog;
use Crater\Models\Invoice; use Crater\Models\Invoice;
use Illuminate\Bus\Queueable; use Illuminate\Bus\Queueable;
@ -40,8 +41,16 @@ class SendInvoiceMail extends Mailable
'mailable_id' => $this->data['invoice']['id'] 'mailable_id' => $this->data['invoice']['id']
]); ]);
return $this->from($this->data['from']) $mailContent = $this->from($this->data['from'], config('mail.from.name'))
->subject($this->data['subject']) ->subject($this->data['subject'])
->markdown('emails.send.invoice', ['data', $this->data]); ->markdown('emails.send.invoice', ['data', $this->data]);
if ($this->data['attach']['data'])
$mailContent->attachData(
$this->data['attach']['data']->output(),
$this->data['invoice']['invoice_number'] . '.pdf'
);
return $mailContent;
} }
} }

View File

@ -41,9 +41,16 @@ class SendPaymentMail extends Mailable
'mailable_id' => $this->data['payment']['id'] 'mailable_id' => $this->data['payment']['id']
]); ]);
return $this->from($this->data['from']) $mailContent = $this->from($this->data['from'], config('mail.from.name'))
->subject($this->data['subject']) ->subject($this->data['subject'])
->markdown('emails.send.payment', ['data', $this->data]); ->markdown('emails.send.payment', ['data', $this->data]);
if ($this->data['attach']['data'])
$mailContent->attachData(
$this->data['attach']['data']->output(),
$this->data['payment']['payment_number'] . '.pdf'
);
return $mailContent;
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace Crater\Models; namespace Crater\Models;
use Crater\Models\Address; use Crater\Models\Address;
@ -17,9 +18,9 @@ class Company extends Model implements HasMedia
protected $fillable = ['name', 'logo', 'unique_hash']; protected $fillable = ['name', 'logo', 'unique_hash'];
protected $appends=['logo']; protected $appends = ['logo', 'logo_path'];
public function getLogoAttribute() public function getLogoPathAttribute()
{ {
$logo = $this->getMedia('logo')->first(); $logo = $this->getMedia('logo')->first();
@ -32,6 +33,18 @@ class Company extends Model implements HasMedia
return $logo->getFullUrl(); return $logo->getFullUrl();
} }
} }
return null;
}
public function getLogoAttribute()
{
$logo = $this->getMedia('logo')->first();
if ($logo) {
return $logo->getFullUrl();
}
return null; return null;
} }

View File

@ -379,6 +379,7 @@ class Estimate extends Model implements HasMedia
$data['user'] = $this->user->toArray(); $data['user'] = $this->user->toArray();
$data['company'] = $this->company->toArray(); $data['company'] = $this->company->toArray();
$data['body'] = $this->getEmailBody($data['body']); $data['body'] = $this->getEmailBody($data['body']);
$data['attach']['data'] = ($this->getEmailAttachmentSetting()) ? $this->getPDFData() : null;
\Mail::to($data['to'])->send(new SendEstimateMail($data)); \Mail::to($data['to'])->send(new SendEstimateMail($data));
@ -426,7 +427,7 @@ class Estimate extends Model implements HasMedia
$estimateTemplate = EstimateTemplate::find($this->estimate_template_id); $estimateTemplate = EstimateTemplate::find($this->estimate_template_id);
$company = Company::find($this->company_id); $company = Company::find($this->company_id);
$logo = $company->logo; $logo = $company->logo_path;
view()->share([ view()->share([
'estimate' => $this, 'estimate' => $this,
@ -468,6 +469,17 @@ class Estimate extends Model implements HasMedia
return $this->getFormattedString($this->notes); return $this->getFormattedString($this->notes);
} }
public function getEmailAttachmentSetting()
{
$estimateAsAttachment = CompanySetting::getSetting('estimate_email_attachment', $this->company_id);
if($estimateAsAttachment == 'NO') {
return false;
}
return true;
}
public function getEmailBody($body) public function getEmailBody($body)
{ {
$values = array_merge($this->getFieldsArray(), $this->getExtraFields()); $values = array_merge($this->getFieldsArray(), $this->getExtraFields());

View File

@ -22,7 +22,8 @@ class EstimateItem extends Model
'discount_val', 'discount_val',
'tax', 'tax',
'total', 'total',
'discount' 'discount',
'unit_name',
]; ];
protected $casts = [ protected $casts = [

View File

@ -429,6 +429,7 @@ class Invoice extends Model implements HasMedia
$data['user'] = $this->user->toArray(); $data['user'] = $this->user->toArray();
$data['company'] = Company::find($this->company_id); $data['company'] = Company::find($this->company_id);
$data['body'] = $this->getEmailBody($data['body']); $data['body'] = $this->getEmailBody($data['body']);
$data['attach']['data'] = ($this->getEmailAttachmentSetting()) ? $this->getPDFData() : null;
if ($this->status == Invoice::STATUS_DRAFT) { if ($this->status == Invoice::STATUS_DRAFT) {
$this->status = Invoice::STATUS_SENT; $this->status = Invoice::STATUS_SENT;
@ -510,7 +511,7 @@ class Invoice extends Model implements HasMedia
$company = Company::find($this->company_id); $company = Company::find($this->company_id);
$logo = $company->logo; $logo = $company->logo_path;
view()->share([ view()->share([
'invoice' => $this, 'invoice' => $this,
@ -526,6 +527,17 @@ class Invoice extends Model implements HasMedia
return PDF::loadView('app.pdf.invoice.' . $invoiceTemplate->view); return PDF::loadView('app.pdf.invoice.' . $invoiceTemplate->view);
} }
public function getEmailAttachmentSetting()
{
$invoiceAsAttachment = CompanySetting::getSetting('invoice_email_attachment', $this->company_id);
if($invoiceAsAttachment == 'NO') {
return false;
}
return true;
}
public function getCompanyAddress() public function getCompanyAddress()
{ {
$format = CompanySetting::getSetting('invoice_company_address_format', $this->company_id); $format = CompanySetting::getSetting('invoice_company_address_format', $this->company_id);

View File

@ -25,7 +25,8 @@ class InvoiceItem extends Model
'discount_val', 'discount_val',
'total', 'total',
'tax', 'tax',
'discount' 'discount',
'unit_name',
]; ];
protected $casts = [ protected $casts = [

View File

@ -124,6 +124,7 @@ class Payment extends Model implements HasMedia
$data['user'] = $this->user->toArray(); $data['user'] = $this->user->toArray();
$data['company'] = Company::find($this->company_id); $data['company'] = Company::find($this->company_id);
$data['body'] = $this->getEmailBody($data['body']); $data['body'] = $this->getEmailBody($data['body']);
$data['attach']['data'] = ($this->getEmailAttachmentSetting()) ? $this->getPDFData() : null;
\Mail::to($data['to'])->send(new SendPaymentMail($data)); \Mail::to($data['to'])->send(new SendPaymentMail($data));
@ -268,7 +269,7 @@ class Payment extends Model implements HasMedia
{ {
// Get the last created order // Get the last created order
$payment = Payment::where('payment_number', 'LIKE', $value . '-%') $payment = Payment::where('payment_number', 'LIKE', $value . '-%')
->orderBy('created_at', 'desc') ->orderBy('payment_number', 'desc')
->first(); ->first();
if (!$payment) { if (!$payment) {
// We get here if there is no order at all // We get here if there is no order at all
@ -373,7 +374,7 @@ class Payment extends Model implements HasMedia
{ {
$company = Company::find($this->company_id); $company = Company::find($this->company_id);
$logo = $company->logo; $logo = $company->logo_path;
view()->share([ view()->share([
'payment' => $this, 'payment' => $this,
@ -400,6 +401,17 @@ class Payment extends Model implements HasMedia
return $this->getFormattedString($format); return $this->getFormattedString($format);
} }
public function getEmailAttachmentSetting()
{
$paymentAsAttachment = CompanySetting::getSetting('payment_email_attachment', $this->company_id);
if($paymentAsAttachment == 'NO') {
return false;
}
return true;
}
public function getNotes() public function getNotes()
{ {
return $this->getFormattedString($this->notes); return $this->getFormattedString($this->notes);

View File

@ -8,9 +8,9 @@
"license": "MIT", "license": "MIT",
"type": "project", "type": "project",
"require": { "require": {
"php": "^7.3", "php": "^7.4 || ^8.0",
"aws/aws-sdk-php": "^3.142", "aws/aws-sdk-php": "^3.142",
"barryvdh/laravel-dompdf": "^0.8.1", "barryvdh/laravel-dompdf": "^0.9.0",
"doctrine/dbal": "^2.10", "doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.0", "fideloper/proxy": "^4.0",
"fruitcake/laravel-cors": "^1.0", "fruitcake/laravel-cors": "^1.0",

1016
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddUnitNameToPdf extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('invoice_items', function (Blueprint $table) {
$table->string('unit_name')->nullable()->after('quantity');
});
Schema::table('estimate_items', function (Blueprint $table) {
$table->string('unit_name')->nullable()->after('quantity');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('invoice_items', function (Blueprint $table) {
$table->dropColumn('unit_name');
});
Schema::table('estimate_items', function (Blueprint $table) {
$table->dropColumn('unit_name');
});
}
}

View File

@ -37,7 +37,8 @@ class CurrenciesTableSeeder extends Seeder
'symbol' => '€', 'symbol' => '€',
'precision' => '2', 'precision' => '2',
'thousand_separator' => '.', 'thousand_separator' => '.',
'decimal_separator' => ',' 'decimal_separator' => ',',
'swap_currency_symbol' => true
], ],
[ [
'name' => 'South African Rand', 'name' => 'South African Rand',
@ -550,6 +551,22 @@ class CurrenciesTableSeeder extends Seeder
'thousand_separator' => ',', 'thousand_separator' => ',',
'decimal_separator' => '.' 'decimal_separator' => '.'
], ],
[
'name' => 'Peruvian Soles',
'code' => 'PEN',
'symbol' => 'S/',
'precision' => '2',
'thousand_separator' => ',',
'decimal_separator' => '.'
],
[
'name' => 'Moroccan Dirham',
'code' => 'MAD',
'symbol' => 'DH',
'precision' => '2',
'thousand_separator' => ',',
'decimal_separator' => '.'
],
]; ];
foreach ($currencies as $currency) { foreach ($currencies as $currency) {

View File

@ -60,6 +60,9 @@ class DefaultSettingsSeeder extends Seeder
'payment_prefix' => 'PAY', 'payment_prefix' => 'PAY',
'payment_auto_generate' => 'YES', 'payment_auto_generate' => 'YES',
'save_pdf_to_disk' => 'NO', 'save_pdf_to_disk' => 'NO',
'invoice_email_attachment' => 'NO',
'estimate_email_attachment' => 'NO',
'payment_email_attachment' => 'NO',
]; ];
CompanySetting::setSettings($settings, $user->company_id); CompanySetting::setSettings($settings, $user->company_id);

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

View File

@ -1,24 +1,24 @@
/*! /*!
* tiptap v1.30.0 * tiptap v1.29.6
* (c) 2021 überdosis GbR (limited liability) * (c) 2020 überdosis GbR (limited liability)
* @license MIT * @license MIT
*/ */
/*! /*!
* tiptap-commands v1.15.0 * tiptap-commands v1.14.6
* (c) 2021 überdosis GbR (limited liability) * (c) 2020 überdosis GbR (limited liability)
* @license MIT * @license MIT
*/ */
/*! /*!
* tiptap-extensions v1.33.2 * tiptap-extensions v1.33.1
* (c) 2021 überdosis GbR (limited liability) * (c) 2020 überdosis GbR (limited liability)
* @license MIT * @license MIT
*/ */
/*! /*!
* tiptap-utils v1.11.0 * tiptap-utils v1.10.4
* (c) 2021 überdosis GbR (limited liability) * (c) 2020 überdosis GbR (limited liability)
* @license MIT * @license MIT
*/ */

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{ {
"/assets/js/app.js": "/assets/js/app.js?id=2fe48b55fc5693cab09f", "/assets/js/app.js": "/assets/js/app.js?id=abd09b4669350c773e19",
"/assets/css/crater.css": "/assets/css/crater.css?id=7a822f915d7e413148f6" "/assets/css/crater.css": "/assets/css/crater.css?id=56e62ddcc9434f8f3fe5"
} }

View File

@ -70,6 +70,8 @@ Crater is a product of [Bytefury](https://bytefury.com)
- [Birkhoff Lee](https://github.com/BirkhoffLee) - [Birkhoff Lee](https://github.com/BirkhoffLee)
- [Akaunting](https://github.com/akaunting/akaunting) - [Akaunting](https://github.com/akaunting/akaunting)
- [MakerLab](https://github.com/MakerLab-Dev) - [MakerLab](https://github.com/MakerLab-Dev)
- [Sebastian Cretu](https://github.com/sebastiancretu)
- [Florian Gareis](https://github.com/TheZoker)
## Translate ## Translate

View File

@ -68,6 +68,14 @@ export default {
if (!this.$v.formData.name.required) { if (!this.$v.formData.name.required) {
return this.$tc('validation.required') return this.$tc('validation.required')
} }
if (!this.$v.formData.name.minLength) {
return this.$tc(
'validation.name_min_length',
this.$v.formData.name.$params.minLength.min,
{ count: this.$v.formData.name.$params.minLength.min }
)
}
}, },
}, },
validations: { validations: {

View File

@ -105,6 +105,14 @@ export default {
if (!this.$v.formData.name.required) { if (!this.$v.formData.name.required) {
return this.$tc('validation.required') return this.$tc('validation.required')
} }
if (!this.$v.formData.name.minLength) {
return this.$tc(
'validation.name_min_length',
this.$v.formData.name.$params.minLength.min,
{ count: this.$v.formData.name.$params.minLength.min }
)
}
}, },
noteError() { noteError() {
if (!this.$v.formData.notes.$error) { if (!this.$v.formData.notes.$error) {

View File

@ -62,6 +62,14 @@ export default {
if (!this.$v.formData.name.required) { if (!this.$v.formData.name.required) {
return this.$tc('validation.required') return this.$tc('validation.required')
} }
if (!this.$v.formData.name.minLength) {
return this.$tc(
'validation.name_min_length',
this.$v.formData.name.$params.minLength.min,
{ count: this.$v.formData.name.$params.minLength.min }
)
}
}, },
}, },
validations: { validations: {

View File

@ -1,3 +1,5 @@
import i18n from '../plugins/i18n';
export default { export default {
addClass(el, className) { addClass(el, className) {
if (el.classList) el.classList.add(className) if (el.classList) el.classList.add(className)
@ -23,7 +25,13 @@ export default {
amount = amount / 100 amount = amount / 100
let { precision, decimal_separator, thousand_separator, symbol } = currency let {
precision,
decimal_separator,
thousand_separator,
symbol,
swap_currency_symbol,
} = currency
try { try {
precision = Math.abs(precision) precision = Math.abs(precision)
@ -37,20 +45,22 @@ export default {
let j = i.length > 3 ? i.length % 3 : 0 let j = i.length > 3 ? i.length % 3 : 0
let moneySymbol = `<span style="font-family: sans-serif">${symbol}</span>` let moneySymbol = `<span style="font-family: sans-serif">${symbol}</span>`
let thousandText = j ? i.substr(0, j) + thousand_separator : ''
return ( let amountText = i
moneySymbol + .substr(j)
' ' + .replace(/(\d{3})(?=\d)/g, '$1' + thousand_separator)
negativeSign + let precisionText = precision
(j ? i.substr(0, j) + thousand_separator : '') +
i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + thousand_separator) +
(precision
? decimal_separator + ? decimal_separator +
Math.abs(amount - i) Math.abs(amount - i)
.toFixed(precision) .toFixed(precision)
.slice(2) .slice(2)
: '') : ''
) let combinedAmountText =
negativeSign + thousandText + amountText + precisionText
return swap_currency_symbol
? combinedAmountText + ' ' + moneySymbol
: moneySymbol + ' ' + combinedAmountText
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
@ -68,7 +78,13 @@ export default {
amount = amount / 100 amount = amount / 100
let { precision, decimal_separator, thousand_separator, symbol } = currency let {
precision,
decimal_separator,
thousand_separator,
symbol,
swap_currency_symbol,
} = currency
try { try {
precision = Math.abs(precision) precision = Math.abs(precision)
@ -82,20 +98,22 @@ export default {
let j = i.length > 3 ? i.length % 3 : 0 let j = i.length > 3 ? i.length % 3 : 0
let moneySymbol = `${symbol}` let moneySymbol = `${symbol}`
let thousandText = j ? i.substr(0, j) + thousand_separator : ''
return ( let amountText = i
moneySymbol + .substr(j)
' ' + .replace(/(\d{3})(?=\d)/g, '$1' + thousand_separator)
negativeSign + let precisionText = precision
(j ? i.substr(0, j) + thousand_separator : '') +
i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + thousand_separator) +
(precision
? decimal_separator + ? decimal_separator +
Math.abs(amount - i) Math.abs(amount - i)
.toFixed(precision) .toFixed(precision)
.slice(2) .slice(2)
: '') : ''
) let combinedAmountText =
negativeSign + thousandText + amountText + precisionText
return swap_currency_symbol
? combinedAmountText + ' ' + moneySymbol
: moneySymbol + ' ' + combinedAmountText
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
@ -245,6 +263,36 @@ export default {
} }
} }
}, },
getStatusTranslation(status) {
switch (status) {
case 'DRAFT':
return i18n.t('general.draft')
case 'PAID':
return i18n.t('invoices.paid')
case 'UNPAID':
return i18n.t('invoices.unpaid')
case 'SENT':
return i18n.t('general.sent')
case 'REJECTED':
return i18n.t('estimates.rejected')
case 'ACCEPTED':
return i18n.t('estimates.accepted')
case 'VIEWED':
return i18n.t('invoices.viewed')
case 'EXPIRED':
return i18n.t('estimates.expired')
case 'PARTIALLY PAID':
return i18n.t('estimates.partially_paid')
case 'OVERDUE':
return i18n.t('invoices.overdue')
case 'COMPLETED':
return i18n.t('invoices.completed')
case 'DUE':
return i18n.t('general.due')
default:
return status
}
},
compareVersion(v1, v2, options) { compareVersion(v1, v2, options) {
const lexicographical = options && options.lexicographical const lexicographical = options && options.lexicographical
const zeroExtend = options && options.zeroExtend const zeroExtend = options && options.zeroExtend
@ -280,5 +328,5 @@ export default {
return -1 return -1
} }
return 0 return 0
} },
} }

View File

@ -177,6 +177,8 @@
"copy_billing_address": "نسخ من عنوان الفوترة", "copy_billing_address": "نسخ من عنوان الفوترة",
"no_customers": "لا يوجد عملاء حتى الآن!", "no_customers": "لا يوجد عملاء حتى الآن!",
"no_customers_found": "لم يتم الحصول على عملاء!", "no_customers_found": "لم يتم الحصول على عملاء!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "سوف يحتوي هذا القسم على قائمة العملاء.", "list_of_customers": "سوف يحتوي هذا القسم على قائمة العملاء.",
"primary_display_name": "اسم العرض الرئيسي", "primary_display_name": "اسم العرض الرئيسي",
"select_currency": "اختر العملة", "select_currency": "اختر العملة",
@ -200,6 +202,7 @@
"added_on": "أضيف في", "added_on": "أضيف في",
"price": "السعر", "price": "السعر",
"date_of_creation": "تاريخ الإنشاء", "date_of_creation": "تاريخ الإنشاء",
"not_selected": "No item selected",
"action": "إجراء", "action": "إجراء",
"add_item": "إضافة صنف", "add_item": "إضافة صنف",
"save_item": "حفظ الصنف", "save_item": "حفظ الصنف",
@ -270,6 +273,7 @@
"required": "حقل مطلوب" "required": "حقل مطلوب"
}, },
"accepted": "مقبول", "accepted": "مقبول",
"rejected": "Rejected",
"sent": "مرسل", "sent": "مرسل",
"draft": "مسودة", "draft": "مسودة",
"declined": "مرفوض", "declined": "مرفوض",
@ -316,6 +320,9 @@
"all": "الكل", "all": "الكل",
"paid": "مدفوع", "paid": "مدفوع",
"unpaid": "غير مدفوع", "unpaid": "غير مدفوع",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "العميل", "customer": "العميل",
"paid_status": "حالة الدفع", "paid_status": "حالة الدفع",
"ref_no": "رقم المرجع.", "ref_no": "رقم المرجع.",
@ -434,6 +441,8 @@
"update_payment": "تحديث الدفعة", "update_payment": "تحديث الدفعة",
"payment": "دفعة | مدفوعات", "payment": "دفعة | مدفوعات",
"no_payments": "لا يوجد مدفوعات حتى الآن!", "no_payments": "لا يوجد مدفوعات حتى الآن!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "لا توجد مدفوعات مطابقة!", "no_matching_payments": "لا توجد مدفوعات مطابقة!",
"list_of_payments": "سوف تحتوي هذه القائمة على مدفوعات الفواتير.", "list_of_payments": "سوف تحتوي هذه القائمة على مدفوعات الفواتير.",
"select_payment_mode": "اختر طريقة الدفع", "select_payment_mode": "اختر طريقة الدفع",
@ -463,6 +472,7 @@
"receipt": "سند القبض", "receipt": "سند القبض",
"amount": "المبلغ المطلوب", "amount": "المبلغ المطلوب",
"action": "إجراء", "action": "إجراء",
"not_selected": "Not selected",
"note": "ملاحظة", "note": "ملاحظة",
"category_id": "رمز الفئة", "category_id": "رمز الفئة",
"date": "تاريخ النفقات", "date": "تاريخ النفقات",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "المبلغ المطلوب", "pdf_amount_label": "المبلغ المطلوب",
"pdf_subtotal": "Subtotal", "pdf_subtotal": "Subtotal",
"pdf_total": "الإجمالي", "pdf_total": "الإجمالي",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "PAYMENT RECEIPT", "pdf_payment_receipt_label": "PAYMENT RECEIPT",
"pdf_payment_date": "Payment Date", "pdf_payment_date": "Payment Date",
"pdf_payment_number": "رقم الدفعة", "pdf_payment_number": "رقم الدفعة",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "EXPENSES REPORT", "pdf_expense_report_label": "EXPENSES REPORT",
"pdf_total_expenses_label": "TOTAL EXPENSE", "pdf_total_expenses_label": "TOTAL EXPENSE",
"pdf_profit_loss_label": "PROFIT & LOSS REPORT", "pdf_profit_loss_label": "PROFIT & LOSS REPORT",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INCOME", "pdf_income_label": "INCOME",
"pdf_net_profit_label": "NET PROFIT", "pdf_net_profit_label": "NET PROFIT",
"pdf_customer_sales_report": "Sales Report: By Customer", "pdf_customer_sales_report": "Sales Report: By Customer",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Rechnungsadresse kopieren", "copy_billing_address": "Rechnungsadresse kopieren",
"no_customers": "Noch keine Kunden!", "no_customers": "Noch keine Kunden!",
"no_customers_found": "Keine Kunden gefunden!", "no_customers_found": "Keine Kunden gefunden!",
"no_contact": "Kein Kontakt",
"no_contact_name": "Kein Kontaktname",
"list_of_customers": "Dieser Abschnitt enthält die Liste der Kunden.", "list_of_customers": "Dieser Abschnitt enthält die Liste der Kunden.",
"primary_display_name": "Primärer Anzeige Name", "primary_display_name": "Primärer Anzeige Name",
"select_currency": "Währung wählen", "select_currency": "Währung wählen",
@ -200,6 +202,7 @@
"added_on": "Hinzugefügt am", "added_on": "Hinzugefügt am",
"price": "Preis", "price": "Preis",
"date_of_creation": "Erstellt am", "date_of_creation": "Erstellt am",
"not_selected": "Keine ausgewählt",
"action": "Aktion", "action": "Aktion",
"add_item": "Artikel hinzufügen", "add_item": "Artikel hinzufügen",
"save_item": "Artikel speichern", "save_item": "Artikel speichern",
@ -270,6 +273,7 @@
"required": "Feld ist erforderlich" "required": "Feld ist erforderlich"
}, },
"accepted": "Angenommen", "accepted": "Angenommen",
"rejected": "Abgelehnt",
"sent": "Gesendet", "sent": "Gesendet",
"draft": "Entwurf", "draft": "Entwurf",
"declined": "Abgelehnt", "declined": "Abgelehnt",
@ -315,7 +319,10 @@
"years": "{years} Jahre", "years": "{years} Jahre",
"all": "Alle", "all": "Alle",
"paid": "Bezahlt", "paid": "Bezahlt",
"unpaid": "Unbezahlte", "unpaid": "Unbezahlt",
"viewed": "Gesehen",
"overdue": "Überfällig",
"completed": "Abgeschlossen",
"customer": "KUNDEN", "customer": "KUNDEN",
"paid_status": "BEZAHLT-STATUS", "paid_status": "BEZAHLT-STATUS",
"ref_no": "REF. - NR.", "ref_no": "REF. - NR.",
@ -434,6 +441,8 @@
"update_payment": "Zahlung ändern", "update_payment": "Zahlung ändern",
"payment": "Zahlung | Zahlungen", "payment": "Zahlung | Zahlungen",
"no_payments": "Keine Zahlungen vorhanden!", "no_payments": "Keine Zahlungen vorhanden!",
"not_selected": "Nicht ausgewählt",
"no_invoice": "Keine Rechnung",
"no_matching_payments": "Es gibt keine passenden Zahlungen!", "no_matching_payments": "Es gibt keine passenden Zahlungen!",
"list_of_payments": "Dieser Abschnitt enthält die Liste der Zahlungen.", "list_of_payments": "Dieser Abschnitt enthält die Liste der Zahlungen.",
"select_payment_mode": "Wählen Sie den Zahlungsmodus", "select_payment_mode": "Wählen Sie den Zahlungsmodus",
@ -462,6 +471,7 @@
"description": "Beschreibung", "description": "Beschreibung",
"receipt": "Eingang", "receipt": "Eingang",
"amount": "Summe", "amount": "Summe",
"not_selected": "Nicht ausgewählt",
"action": "Aktion", "action": "Aktion",
"note": "Hinweis", "note": "Hinweis",
"category_id": "Kategorie-Id", "category_id": "Kategorie-Id",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Summe", "pdf_amount_label": "Summe",
"pdf_subtotal": "Zwischensumme", "pdf_subtotal": "Zwischensumme",
"pdf_total": "Gesamt", "pdf_total": "Gesamt",
"pdf_payment_label": "Zahlung",
"pdf_payment_receipt_label": "Zahlungsbeleg", "pdf_payment_receipt_label": "Zahlungsbeleg",
"pdf_payment_date": "Zahlungsdatum", "pdf_payment_date": "Zahlungsdatum",
"pdf_payment_number": "Zahlungsnummer", "pdf_payment_number": "Zahlungsnummer",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "Ausgaben Bericht", "pdf_expense_report_label": "Ausgaben Bericht",
"pdf_total_expenses_label": "Gesamtausgaben", "pdf_total_expenses_label": "Gesamtausgaben",
"pdf_profit_loss_label": "Gewinn & Verlust Bericht", "pdf_profit_loss_label": "Gewinn & Verlust Bericht",
"pdf_sales_customers_label": "Kundenverkaufs Bericht",
"pdf_sales_items_label": "Artikelverkaufs Bericht",
"pdf_tax_summery_label": "Steuer Bericht",
"pdf_income_label": "Einkommen", "pdf_income_label": "Einkommen",
"pdf_net_profit_label": "Nettogewinn", "pdf_net_profit_label": "Nettogewinn",
"pdf_customer_sales_report": "Umsatzbericht: Nach Kunde", "pdf_customer_sales_report": "Umsatzbericht: Nach Kunde",

View File

@ -178,6 +178,8 @@
"copy_billing_address": "Copy from Billing", "copy_billing_address": "Copy from Billing",
"no_customers": "No customers yet!", "no_customers": "No customers yet!",
"no_customers_found": "No customers found!", "no_customers_found": "No customers found!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "This section will contain the list of customers.", "list_of_customers": "This section will contain the list of customers.",
"primary_display_name": "Primary Display Name", "primary_display_name": "Primary Display Name",
"select_currency": "Select currency", "select_currency": "Select currency",
@ -201,6 +203,7 @@
"added_on": "Added On", "added_on": "Added On",
"price": "Price", "price": "Price",
"date_of_creation": "Date Of Creation", "date_of_creation": "Date Of Creation",
"not_selected": "No item selected",
"action": "Action", "action": "Action",
"add_item": "Add Item", "add_item": "Add Item",
"save_item": "Save Item", "save_item": "Save Item",
@ -271,6 +274,7 @@
"required": "Field is required" "required": "Field is required"
}, },
"accepted": "Accepted", "accepted": "Accepted",
"rejected": "Rejected",
"sent": "Sent", "sent": "Sent",
"draft": "Draft", "draft": "Draft",
"declined": "Declined", "declined": "Declined",
@ -317,6 +321,9 @@
"all": "All", "all": "All",
"paid": "Paid", "paid": "Paid",
"unpaid": "Unpaid", "unpaid": "Unpaid",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CUSTOMER", "customer": "CUSTOMER",
"paid_status": "PAID STATUS", "paid_status": "PAID STATUS",
"ref_no": "REF NO.", "ref_no": "REF NO.",
@ -435,6 +442,8 @@
"update_payment": "Update Payment", "update_payment": "Update Payment",
"payment": "Payment | Payments", "payment": "Payment | Payments",
"no_payments": "No payments yet!", "no_payments": "No payments yet!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "There are no matching payments!", "no_matching_payments": "There are no matching payments!",
"list_of_payments": "This section will contain the list of payments.", "list_of_payments": "This section will contain the list of payments.",
"select_payment_mode": "Select payment mode", "select_payment_mode": "Select payment mode",
@ -464,6 +473,7 @@
"receipt": "Receipt", "receipt": "Receipt",
"amount": "Amount", "amount": "Amount",
"action": "Action", "action": "Action",
"not_selected": "Not selected",
"note": "Note", "note": "Note",
"category_id": "Category Id", "category_id": "Category Id",
"date": "Date", "date": "Date",
@ -745,6 +755,8 @@
"invoice_settings": "Invoice Settings", "invoice_settings": "Invoice Settings",
"autogenerate_invoice_number": "Auto-generate Invoice Number", "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.", "invoice_setting_description": "Disable this, If you don't wish to auto-generate invoice numbers each time you create a new invoice.",
"invoice_email_attachment": "Send invoices as attachments",
"invoice_email_attachment_setting_description": "Enable this if you want to send invoices as email attachment. Please note that 'View Invoice' button in emails will not be displayed anymore when enabled.",
"enter_invoice_prefix": "Enter invoice prefix", "enter_invoice_prefix": "Enter invoice prefix",
"terms_and_conditions": "Terms and Conditions", "terms_and_conditions": "Terms and Conditions",
"company_address_format": "Company Address Format", "company_address_format": "Company Address Format",
@ -759,6 +771,8 @@
"estimate_settings": "Estimate Settings", "estimate_settings": "Estimate Settings",
"autogenerate_estimate_number": "Auto-generate Estimate Number", "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.", "estimate_setting_description": "Disable this, If you don't wish to auto-generate estimate numbers each time you create a new estimate.",
"estimate_email_attachment": "Send estimates as attachments",
"estimate_email_attachment_setting_description": "Enable this if you want to send the estimates as an email attachment. Please note that 'View Estimate' button in emails will not be displayed anymore when enabled.",
"enter_estimate_prefix": "Enter estmiate prefix", "enter_estimate_prefix": "Enter estmiate prefix",
"estimate_setting_updated": "Estimate Setting updated successfully", "estimate_setting_updated": "Estimate Setting updated successfully",
"company_address_format": "Company Address Format", "company_address_format": "Company Address Format",
@ -773,6 +787,8 @@
"payment_settings": "Payment Settings", "payment_settings": "Payment Settings",
"autogenerate_payment_number": "Auto-generate Payment Number", "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.", "payment_setting_description": "Disable this, If you don't wish to auto-generate payment numbers each time you create a new payment.",
"payment_email_attachment": "Send payments as attachments",
"payment_email_attachment_setting_description": "Enable this if you want to send the payment receipts as an email attachment. Please note that 'View Payment' button in emails will not be displayed anymore when enabled.",
"enter_payment_prefix": "Enter Payment Prefix", "enter_payment_prefix": "Enter Payment Prefix",
"payment_setting_updated": "Payment Setting updated successfully", "payment_setting_updated": "Payment Setting updated successfully",
"payment_modes": "Payment Modes", "payment_modes": "Payment Modes",
@ -1150,6 +1166,7 @@
"pdf_amount_label": "Amount", "pdf_amount_label": "Amount",
"pdf_subtotal": "Subtotal", "pdf_subtotal": "Subtotal",
"pdf_total": "Total", "pdf_total": "Total",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "PAYMENT RECEIPT", "pdf_payment_receipt_label": "PAYMENT RECEIPT",
"pdf_payment_date": "Payment Date", "pdf_payment_date": "Payment Date",
"pdf_payment_number": "Payment Number", "pdf_payment_number": "Payment Number",
@ -1158,6 +1175,9 @@
"pdf_expense_report_label": "EXPENSES REPORT", "pdf_expense_report_label": "EXPENSES REPORT",
"pdf_total_expenses_label": "TOTAL EXPENSE", "pdf_total_expenses_label": "TOTAL EXPENSE",
"pdf_profit_loss_label": "PROFIT & LOSS REPORT", "pdf_profit_loss_label": "PROFIT & LOSS REPORT",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INCOME", "pdf_income_label": "INCOME",
"pdf_net_profit_label": "NET PROFIT", "pdf_net_profit_label": "NET PROFIT",
"pdf_customer_sales_report": "Sales Report: By Customer", "pdf_customer_sales_report": "Sales Report: By Customer",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Copia de facturación", "copy_billing_address": "Copia de facturación",
"no_customers": "¡Aún no hay clientes!", "no_customers": "¡Aún no hay clientes!",
"no_customers_found": "¡No se encontraron clientes!", "no_customers_found": "¡No se encontraron clientes!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Esta sección contendrá la lista de clientes.", "list_of_customers": "Esta sección contendrá la lista de clientes.",
"primary_display_name": "Nombre de visualización principal", "primary_display_name": "Nombre de visualización principal",
"select_currency": "Seleccione el tipo de moneda", "select_currency": "Seleccione el tipo de moneda",
@ -200,6 +202,7 @@
"added_on": "Añadido", "added_on": "Añadido",
"price": "Precio", "price": "Precio",
"date_of_creation": "Fecha de creación", "date_of_creation": "Fecha de creación",
"not_selected": "No item selected",
"action": "Acción", "action": "Acción",
"add_item": "Añadir artículo", "add_item": "Añadir artículo",
"save_item": "Guardar artículo", "save_item": "Guardar artículo",
@ -270,6 +273,7 @@
"required": "Se requiere campo" "required": "Se requiere campo"
}, },
"accepted": "Aceptado", "accepted": "Aceptado",
"rejected": "Rejected",
"sent": "Enviado", "sent": "Enviado",
"draft": "Borrador", "draft": "Borrador",
"declined": "Rechazado", "declined": "Rechazado",
@ -316,6 +320,9 @@
"all": "Todas", "all": "Todas",
"paid": "Pagada", "paid": "Pagada",
"unpaid": "No pagado", "unpaid": "No pagado",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CLIENTE", "customer": "CLIENTE",
"paid_status": "ESTADO PAGADO", "paid_status": "ESTADO PAGADO",
"ref_no": "NÚMERO DE REFERENCIA.", "ref_no": "NÚMERO DE REFERENCIA.",
@ -434,6 +441,8 @@
"update_payment": "Actualizar pago", "update_payment": "Actualizar pago",
"payment": "Pago | Pagos", "payment": "Pago | Pagos",
"no_payments": "¡Aún no hay pagos!", "no_payments": "¡Aún no hay pagos!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "¡No hay pagos equivalentes!", "no_matching_payments": "¡No hay pagos equivalentes!",
"list_of_payments": "Esta sección contendrá la lista de pagos.", "list_of_payments": "Esta sección contendrá la lista de pagos.",
"select_payment_mode": "Seleccionar modo de pago", "select_payment_mode": "Seleccionar modo de pago",
@ -463,6 +472,7 @@
"receipt": "Recibo", "receipt": "Recibo",
"amount": "Cantidad", "amount": "Cantidad",
"action": "Acción", "action": "Acción",
"not_selected": "Not selected",
"note": "Nota", "note": "Nota",
"category_id": "Categoria ID", "category_id": "Categoria ID",
"date": "Fecha de gastos", "date": "Fecha de gastos",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Cantidad", "pdf_amount_label": "Cantidad",
"pdf_subtotal": "Subtotal", "pdf_subtotal": "Subtotal",
"pdf_total": "Total", "pdf_total": "Total",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "RECIBO DE PAGO", "pdf_payment_receipt_label": "RECIBO DE PAGO",
"pdf_payment_date": "Fecha de pago", "pdf_payment_date": "Fecha de pago",
"pdf_payment_number": "Numero de pago", "pdf_payment_number": "Numero de pago",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "INFORME DE GASTOS", "pdf_expense_report_label": "INFORME DE GASTOS",
"pdf_total_expenses_label": "GASTO TOTAL", "pdf_total_expenses_label": "GASTO TOTAL",
"pdf_profit_loss_label": "INFORME PERDIDAS & GANANCIAS", "pdf_profit_loss_label": "INFORME PERDIDAS & GANANCIAS",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INGRESO", "pdf_income_label": "INGRESO",
"pdf_net_profit_label": "GANANCIA NETA", "pdf_net_profit_label": "GANANCIA NETA",
"pdf_customer_sales_report": "Informe de ventas: Por cliente", "pdf_customer_sales_report": "Informe de ventas: Por cliente",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Copier depuis l'adresse de facturation", "copy_billing_address": "Copier depuis l'adresse de facturation",
"no_customers": "Vous navez pas encore de clients !", "no_customers": "Vous navez pas encore de clients !",
"no_customers_found": "Aucun client !", "no_customers_found": "Aucun client !",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Cette section contiendra la liste des clients.", "list_of_customers": "Cette section contiendra la liste des clients.",
"primary_display_name": "Nom d'affichage principal", "primary_display_name": "Nom d'affichage principal",
"select_currency": "Sélectionnez la devise", "select_currency": "Sélectionnez la devise",
@ -200,6 +202,7 @@
"added_on": "Ajouté le", "added_on": "Ajouté le",
"price": "Prix", "price": "Prix",
"date_of_creation": "Date de création", "date_of_creation": "Date de création",
"not_selected": "No item selected",
"action": "action", "action": "action",
"add_item": "Ajouter un article", "add_item": "Ajouter un article",
"save_item": "Enregistrer l'article", "save_item": "Enregistrer l'article",
@ -270,6 +273,7 @@
"required": "Champ requis" "required": "Champ requis"
}, },
"accepted": "Accepté", "accepted": "Accepté",
"rejected": "Rejected",
"sent": "Envoyé", "sent": "Envoyé",
"draft": "Brouillon", "draft": "Brouillon",
"declined": "Refusé", "declined": "Refusé",
@ -316,6 +320,9 @@
"all": "Toutes", "all": "Toutes",
"paid": "Payé", "paid": "Payé",
"unpaid": "Non payé", "unpaid": "Non payé",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CLIENT", "customer": "CLIENT",
"paid_status": "STATUT DU PAIEMENT", "paid_status": "STATUT DU PAIEMENT",
"ref_no": "Réf.", "ref_no": "Réf.",
@ -434,6 +441,8 @@
"update_payment": "Mettre à jour le paiement", "update_payment": "Mettre à jour le paiement",
"payment": "Paiement | Paiements", "payment": "Paiement | Paiements",
"no_payments": "Aucun paiement pour le moment !", "no_payments": "Aucun paiement pour le moment !",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Il n'y a aucun paiement correspondant !", "no_matching_payments": "Il n'y a aucun paiement correspondant !",
"list_of_payments": "Cette section contiendra la liste des paiements", "list_of_payments": "Cette section contiendra la liste des paiements",
"select_payment_mode": "Sélectionnez le moyen de paiement", "select_payment_mode": "Sélectionnez le moyen de paiement",
@ -463,6 +472,7 @@
"receipt": "Reçu", "receipt": "Reçu",
"amount": "Montant", "amount": "Montant",
"action": "action", "action": "action",
"not_selected": "Not selected",
"note": "Remarque", "note": "Remarque",
"category_id": "Identifiant de catégorie", "category_id": "Identifiant de catégorie",
"date": "Date", "date": "Date",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Montant", "pdf_amount_label": "Montant",
"pdf_subtotal": "Sous-total", "pdf_subtotal": "Sous-total",
"pdf_total": "Total", "pdf_total": "Total",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "Reçu de paiement", "pdf_payment_receipt_label": "Reçu de paiement",
"pdf_payment_date": "Date de paiement", "pdf_payment_date": "Date de paiement",
"pdf_payment_number": "N°", "pdf_payment_number": "N°",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "RAPPORT DE DÉPENSES", "pdf_expense_report_label": "RAPPORT DE DÉPENSES",
"pdf_total_expenses_label": "TOTAL DES DÉPENSES", "pdf_total_expenses_label": "TOTAL DES DÉPENSES",
"pdf_profit_loss_label": "RAPPORT DES BÉNÉFICES ET DES PERTES", "pdf_profit_loss_label": "RAPPORT DES BÉNÉFICES ET DES PERTES",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "REVENU", "pdf_income_label": "REVENU",
"pdf_net_profit_label": "BÉNÉFICE NET", "pdf_net_profit_label": "BÉNÉFICE NET",
"pdf_customer_sales_report": "Rapport de ventes : par client", "pdf_customer_sales_report": "Rapport de ventes : par client",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Copy from Billing", "copy_billing_address": "Copy from Billing",
"no_customers": "No customers yet!", "no_customers": "No customers yet!",
"no_customers_found": "No customers found!", "no_customers_found": "No customers found!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "This section will contain the list of customers.", "list_of_customers": "This section will contain the list of customers.",
"primary_display_name": "Primary Display Name", "primary_display_name": "Primary Display Name",
"select_currency": "Select currency", "select_currency": "Select currency",
@ -200,6 +202,7 @@
"added_on": "Added On", "added_on": "Added On",
"price": "Price", "price": "Price",
"date_of_creation": "Date Of Creation", "date_of_creation": "Date Of Creation",
"not_selected": "No item selected",
"action": "Action", "action": "Action",
"add_item": "Add Item", "add_item": "Add Item",
"save_item": "Save Item", "save_item": "Save Item",
@ -270,6 +273,7 @@
"required": "Field is required" "required": "Field is required"
}, },
"accepted": "Accepted", "accepted": "Accepted",
"rejected": "Rejected",
"sent": "Sent", "sent": "Sent",
"draft": "Draft", "draft": "Draft",
"declined": "Declined", "declined": "Declined",
@ -316,6 +320,9 @@
"all": "All", "all": "All",
"paid": "Paid", "paid": "Paid",
"unpaid": "Unpaid", "unpaid": "Unpaid",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CUSTOMER", "customer": "CUSTOMER",
"paid_status": "PAID STATUS", "paid_status": "PAID STATUS",
"ref_no": "REF NO.", "ref_no": "REF NO.",
@ -434,6 +441,8 @@
"update_payment": "Update Payment", "update_payment": "Update Payment",
"payment": "Payment | Payments", "payment": "Payment | Payments",
"no_payments": "No payments yet!", "no_payments": "No payments yet!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "There are no matching payments!", "no_matching_payments": "There are no matching payments!",
"list_of_payments": "This section will contain the list of payments.", "list_of_payments": "This section will contain the list of payments.",
"select_payment_mode": "Select payment mode", "select_payment_mode": "Select payment mode",
@ -463,6 +472,7 @@
"receipt": "Receipt", "receipt": "Receipt",
"amount": "Amount", "amount": "Amount",
"action": "Action", "action": "Action",
"not_selected": "Not selected",
"note": "Note", "note": "Note",
"category_id": "Category Id", "category_id": "Category Id",
"date": "Date", "date": "Date",
@ -1148,6 +1158,7 @@
"pdf_amount_label": "Amount", "pdf_amount_label": "Amount",
"pdf_subtotal": "Subtotal", "pdf_subtotal": "Subtotal",
"pdf_total": "Total", "pdf_total": "Total",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "PAYMENT RECEIPT", "pdf_payment_receipt_label": "PAYMENT RECEIPT",
"pdf_payment_date": "Payment Date", "pdf_payment_date": "Payment Date",
"pdf_payment_number": "Payment Number", "pdf_payment_number": "Payment Number",
@ -1156,6 +1167,9 @@
"pdf_expense_report_label": "EXPENSES REPORT", "pdf_expense_report_label": "EXPENSES REPORT",
"pdf_total_expenses_label": "TOTAL EXPENSE", "pdf_total_expenses_label": "TOTAL EXPENSE",
"pdf_profit_loss_label": "PROFIT & LOSS REPORT", "pdf_profit_loss_label": "PROFIT & LOSS REPORT",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INCOME", "pdf_income_label": "INCOME",
"pdf_net_profit_label": "NET PROFIT", "pdf_net_profit_label": "NET PROFIT",
"pdf_customer_sales_report": "Sales Report: By Customer", "pdf_customer_sales_report": "Sales Report: By Customer",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Copia da Fatturazione", "copy_billing_address": "Copia da Fatturazione",
"no_customers": "Ancora nessun Cliente!", "no_customers": "Ancora nessun Cliente!",
"no_customers_found": "Nessun cliente trovato!", "no_customers_found": "Nessun cliente trovato!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Qui ci sarà la lista dei tuoi clienti", "list_of_customers": "Qui ci sarà la lista dei tuoi clienti",
"primary_display_name": "Mostra il Nome Principale", "primary_display_name": "Mostra il Nome Principale",
"select_currency": "Selezione Valùta", "select_currency": "Selezione Valùta",
@ -200,6 +202,7 @@
"added_on": "Aggiunto il", "added_on": "Aggiunto il",
"price": "Prezzo", "price": "Prezzo",
"date_of_creation": "Data di creazione", "date_of_creation": "Data di creazione",
"not_selected": "No item selected",
"action": "Azione", "action": "Azione",
"add_item": "Aggiungi Commessa", "add_item": "Aggiungi Commessa",
"save_item": "Salva", "save_item": "Salva",
@ -270,6 +273,7 @@
"required": "Campo obbligatorio" "required": "Campo obbligatorio"
}, },
"accepted": "Accettato", "accepted": "Accettato",
"rejected": "Rejected",
"sent": "Inviato", "sent": "Inviato",
"draft": "Bozza", "draft": "Bozza",
"declined": "Rifiutato", "declined": "Rifiutato",
@ -316,6 +320,9 @@
"all": "Tutti", "all": "Tutti",
"paid": "Pagato", "paid": "Pagato",
"unpaid": "Insoluto", "unpaid": "Insoluto",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CLIENTE", "customer": "CLIENTE",
"paid_status": "STATO DI PAGAMENTO", "paid_status": "STATO DI PAGAMENTO",
"ref_no": "RIF N.", "ref_no": "RIF N.",
@ -434,6 +441,8 @@
"update_payment": "Aggiorna pagamento", "update_payment": "Aggiorna pagamento",
"payment": "Pagamento | Pagamenti", "payment": "Pagamento | Pagamenti",
"no_payments": "Ancora nessun pagamento!", "no_payments": "Ancora nessun pagamento!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Non ci sono pagamenti!", "no_matching_payments": "Non ci sono pagamenti!",
"list_of_payments": "Questa sezione conterrà la lista dei pagamenti.", "list_of_payments": "Questa sezione conterrà la lista dei pagamenti.",
"select_payment_mode": "Seleziona modalità di pagamento", "select_payment_mode": "Seleziona modalità di pagamento",
@ -463,6 +472,7 @@
"receipt": "Ricevuta", "receipt": "Ricevuta",
"amount": "Ammontare", "amount": "Ammontare",
"action": "Azione", "action": "Azione",
"not_selected": "Not selected",
"note": "Nota", "note": "Nota",
"category_id": "Id categoria", "category_id": "Id categoria",
"date": "Data Spesa", "date": "Data Spesa",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Ammontare", "pdf_amount_label": "Ammontare",
"pdf_subtotal": "Subtotal", "pdf_subtotal": "Subtotal",
"pdf_total": "Totale", "pdf_total": "Totale",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "PAYMENT RECEIPT", "pdf_payment_receipt_label": "PAYMENT RECEIPT",
"pdf_payment_date": "Payment Date", "pdf_payment_date": "Payment Date",
"pdf_payment_number": "Numero di pagamento", "pdf_payment_number": "Numero di pagamento",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "EXPENSES REPORT", "pdf_expense_report_label": "EXPENSES REPORT",
"pdf_total_expenses_label": "TOTAL EXPENSE", "pdf_total_expenses_label": "TOTAL EXPENSE",
"pdf_profit_loss_label": "PROFIT & LOSS REPORT", "pdf_profit_loss_label": "PROFIT & LOSS REPORT",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INCOME", "pdf_income_label": "INCOME",
"pdf_net_profit_label": "NET PROFIT", "pdf_net_profit_label": "NET PROFIT",
"pdf_customer_sales_report": "Sales Report: By Customer", "pdf_customer_sales_report": "Sales Report: By Customer",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Kopēt no juridiskās adreses", "copy_billing_address": "Kopēt no juridiskās adreses",
"no_customers": "Pagaidām nav klientu!", "no_customers": "Pagaidām nav klientu!",
"no_customers_found": "Klienti netika atrasti!", "no_customers_found": "Klienti netika atrasti!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Šajā sadaļā būs klientu saraksts.", "list_of_customers": "Šajā sadaļā būs klientu saraksts.",
"primary_display_name": "Klienta nosaukums", "primary_display_name": "Klienta nosaukums",
"select_currency": "Izvēlieties valūtu", "select_currency": "Izvēlieties valūtu",
@ -200,6 +202,7 @@
"added_on": "Pievienots", "added_on": "Pievienots",
"price": "Cena", "price": "Cena",
"date_of_creation": "Izveidošanas datums", "date_of_creation": "Izveidošanas datums",
"not_selected": "No item selected",
"action": "Darbība", "action": "Darbība",
"add_item": "Pievienot", "add_item": "Pievienot",
"save_item": "Saglabāt", "save_item": "Saglabāt",
@ -270,6 +273,7 @@
"required": "Šis lauks ir obligāts" "required": "Šis lauks ir obligāts"
}, },
"accepted": "Apstiprināts", "accepted": "Apstiprināts",
"rejected": "Rejected",
"sent": "Nosūtīts", "sent": "Nosūtīts",
"draft": "Melnraksts", "draft": "Melnraksts",
"declined": "Noraidīts", "declined": "Noraidīts",
@ -316,6 +320,9 @@
"all": "Visi", "all": "Visi",
"paid": "Apmaksāts", "paid": "Apmaksāts",
"unpaid": "Neapmaksāts", "unpaid": "Neapmaksāts",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "KLIENTS", "customer": "KLIENTS",
"paid_status": "APMAKSAS STATUS", "paid_status": "APMAKSAS STATUS",
"ref_no": "REF NR.", "ref_no": "REF NR.",
@ -434,6 +441,8 @@
"update_payment": "Labot maksājumu", "update_payment": "Labot maksājumu",
"payment": "Maksājums | Maksājumi", "payment": "Maksājums | Maksājumi",
"no_payments": "Nav pievienotu maksājumu!", "no_payments": "Nav pievienotu maksājumu!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Netika atrasts neviens maksājums!", "no_matching_payments": "Netika atrasts neviens maksājums!",
"list_of_payments": "Šajā sadaļā būs maksājumu saraksts.", "list_of_payments": "Šajā sadaļā būs maksājumu saraksts.",
"select_payment_mode": "Izvēlēties maksājuma veidu", "select_payment_mode": "Izvēlēties maksājuma veidu",
@ -463,6 +472,7 @@
"receipt": "Čeks", "receipt": "Čeks",
"amount": "Summa", "amount": "Summa",
"action": "Darbība", "action": "Darbība",
"not_selected": "Not selected",
"note": "Piezīme", "note": "Piezīme",
"category_id": "Kategorijas Id", "category_id": "Kategorijas Id",
"date": "Datums", "date": "Datums",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Summa", "pdf_amount_label": "Summa",
"pdf_subtotal": "Starpsumma", "pdf_subtotal": "Starpsumma",
"pdf_total": "Kopā", "pdf_total": "Kopā",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "MAKSĀJUMA IZDRUKA", "pdf_payment_receipt_label": "MAKSĀJUMA IZDRUKA",
"pdf_payment_date": "Maksājuma datums", "pdf_payment_date": "Maksājuma datums",
"pdf_payment_number": "Maksājuma numurs", "pdf_payment_number": "Maksājuma numurs",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "IZDEVUMU ATSKAITE", "pdf_expense_report_label": "IZDEVUMU ATSKAITE",
"pdf_total_expenses_label": "KOPĀ IZDEVUMI", "pdf_total_expenses_label": "KOPĀ IZDEVUMI",
"pdf_profit_loss_label": "PEĻŅAS & IZDEVUMU ATSKAITE", "pdf_profit_loss_label": "PEĻŅAS & IZDEVUMU ATSKAITE",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "IENĀKUMI", "pdf_income_label": "IENĀKUMI",
"pdf_net_profit_label": "PEĻŅA", "pdf_net_profit_label": "PEĻŅA",
"pdf_customer_sales_report": "Atskaite par pārdoto: Pēc lietotāja", "pdf_customer_sales_report": "Atskaite par pārdoto: Pēc lietotāja",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Kopiëren van facturering", "copy_billing_address": "Kopiëren van facturering",
"no_customers": "Nog geen klanten!", "no_customers": "Nog geen klanten!",
"no_customers_found": "Geen klanten gevonden!", "no_customers_found": "Geen klanten gevonden!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Hier vind je jouw klanten terug.", "list_of_customers": "Hier vind je jouw klanten terug.",
"primary_display_name": "Primaire weergavenaam", "primary_display_name": "Primaire weergavenaam",
"select_currency": "Selecteer valuta", "select_currency": "Selecteer valuta",
@ -200,6 +202,7 @@
"added_on": "Toegevoegd", "added_on": "Toegevoegd",
"price": "Prijs", "price": "Prijs",
"date_of_creation": "Datum van creatie", "date_of_creation": "Datum van creatie",
"not_selected": "No item selected",
"action": "Actie", "action": "Actie",
"add_item": "Voeg item toe", "add_item": "Voeg item toe",
"save_item": "Item opslaan", "save_item": "Item opslaan",
@ -270,6 +273,7 @@
"required": "Veld is vereist" "required": "Veld is vereist"
}, },
"accepted": "Geaccepteerd", "accepted": "Geaccepteerd",
"rejected": "Rejected",
"sent": "Verzonden", "sent": "Verzonden",
"draft": "Concept", "draft": "Concept",
"declined": "Geweigerd", "declined": "Geweigerd",
@ -316,6 +320,9 @@
"all": "Allemaal", "all": "Allemaal",
"paid": "Betaald", "paid": "Betaald",
"unpaid": "Onbetaald", "unpaid": "Onbetaald",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "Klant", "customer": "Klant",
"paid_status": "Betaling", "paid_status": "Betaling",
"ref_no": "REF NR.", "ref_no": "REF NR.",
@ -434,6 +441,8 @@
"update_payment": "Betaling bijwerken", "update_payment": "Betaling bijwerken",
"payment": "Betaling | Betalingen", "payment": "Betaling | Betalingen",
"no_payments": "Nog geen betalingen!", "no_payments": "Nog geen betalingen!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Er zijn geen overeenkomende betalingen!", "no_matching_payments": "Er zijn geen overeenkomende betalingen!",
"list_of_payments": "Hier vind je jouw betalingen terug.", "list_of_payments": "Hier vind je jouw betalingen terug.",
"select_payment_mode": "Selecteer betalingswijze", "select_payment_mode": "Selecteer betalingswijze",
@ -463,6 +472,7 @@
"receipt": "Bon", "receipt": "Bon",
"amount": "Bedrag", "amount": "Bedrag",
"action": "Actie", "action": "Actie",
"not_selected": "Not selected",
"note": "Notitie", "note": "Notitie",
"category_id": "Categorie ID", "category_id": "Categorie ID",
"date": "Uitgavendatum", "date": "Uitgavendatum",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Bedrag", "pdf_amount_label": "Bedrag",
"pdf_subtotal": "Subtotaal", "pdf_subtotal": "Subtotaal",
"pdf_total": "Totaal", "pdf_total": "Totaal",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "Betalingsafschrift", "pdf_payment_receipt_label": "Betalingsafschrift",
"pdf_payment_date": "Betalingsdatum", "pdf_payment_date": "Betalingsdatum",
"pdf_payment_number": "Betalingsnummer", "pdf_payment_number": "Betalingsnummer",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "UITGAVEN RAPPORT", "pdf_expense_report_label": "UITGAVEN RAPPORT",
"pdf_total_expenses_label": "TOTALE UITGAVEN", "pdf_total_expenses_label": "TOTALE UITGAVEN",
"pdf_profit_loss_label": "WINST & VERLIES RAPPORT", "pdf_profit_loss_label": "WINST & VERLIES RAPPORT",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INKOMEN", "pdf_income_label": "INKOMEN",
"pdf_net_profit_label": "NETTO WINST", "pdf_net_profit_label": "NETTO WINST",
"pdf_customer_sales_report": "Verkooprapport: per klant", "pdf_customer_sales_report": "Verkooprapport: per klant",

View File

@ -158,6 +158,8 @@
"copy_billing_address": "Cópia de faturamento", "copy_billing_address": "Cópia de faturamento",
"no_customers": "Ainda não há clientes!", "no_customers": "Ainda não há clientes!",
"no_customers_found": "Clientes não encontrados!", "no_customers_found": "Clientes não encontrados!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Esta seção conterá a lista de clientes.", "list_of_customers": "Esta seção conterá a lista de clientes.",
"primary_display_name": "Nome de exibição principal", "primary_display_name": "Nome de exibição principal",
"select_currency": "Selecione o tipo de moeda", "select_currency": "Selecione o tipo de moeda",
@ -181,6 +183,7 @@
"added_on": "Adicionado", "added_on": "Adicionado",
"price": "Preço", "price": "Preço",
"date_of_creation": "Data de criação", "date_of_creation": "Data de criação",
"not_selected": "No item selected",
"action": "Ação", "action": "Ação",
"add_item": "Adicionar item", "add_item": "Adicionar item",
"save_item": "Salvar item", "save_item": "Salvar item",
@ -250,6 +253,7 @@
"required": "Campo obrigatório" "required": "Campo obrigatório"
}, },
"accepted": "Aceito", "accepted": "Aceito",
"rejected": "Rejected",
"sent": "Enviado", "sent": "Enviado",
"draft": "Rascunho", "draft": "Rascunho",
"declined": "Rejeitado", "declined": "Rejeitado",
@ -296,6 +300,9 @@
"all": "Todas", "all": "Todas",
"paid": "Paga", "paid": "Paga",
"unpaid": "Não Paga", "unpaid": "Não Paga",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CLIENTE", "customer": "CLIENTE",
"paid_status": "STATUS PAGAMENTO", "paid_status": "STATUS PAGAMENTO",
"ref_no": "REFERÊNCIA", "ref_no": "REFERÊNCIA",
@ -413,6 +420,8 @@
"update_payment": "Atualizar Pagamento", "update_payment": "Atualizar Pagamento",
"payment": "Pagamento | Pagamentos", "payment": "Pagamento | Pagamentos",
"no_payments": "Ainda sem pagamentos!", "no_payments": "Ainda sem pagamentos!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Não há pagamentos correspondentes!", "no_matching_payments": "Não há pagamentos correspondentes!",
"list_of_payments": "Esta seção conterá a lista de pagamentos.", "list_of_payments": "Esta seção conterá a lista de pagamentos.",
"select_payment_mode": "Selecione a forma de pagamento", "select_payment_mode": "Selecione a forma de pagamento",
@ -436,6 +445,7 @@
"receipt": "Receita", "receipt": "Receita",
"amount": "Montante", "amount": "Montante",
"action": "Ação", "action": "Ação",
"not_selected": "Not selected",
"note": "Observação", "note": "Observação",
"category_id": "Categoria", "category_id": "Categoria",
"date": "Data da Despesa", "date": "Data da Despesa",

View File

@ -177,6 +177,8 @@
"copy_billing_address": "Cópia de faturamento", "copy_billing_address": "Cópia de faturamento",
"no_customers": "Ainda não há clientes!", "no_customers": "Ainda não há clientes!",
"no_customers_found": "Clientes não encontrados!", "no_customers_found": "Clientes não encontrados!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Esta seção conterá a lista de clientes.", "list_of_customers": "Esta seção conterá a lista de clientes.",
"primary_display_name": "Nome de exibição principal", "primary_display_name": "Nome de exibição principal",
"select_currency": "Selecione o tipo de moeda", "select_currency": "Selecione o tipo de moeda",
@ -200,6 +202,7 @@
"added_on": "Adicionado", "added_on": "Adicionado",
"price": "Preço", "price": "Preço",
"date_of_creation": "Data de criação", "date_of_creation": "Data de criação",
"not_selected": "No item selected",
"action": "Ação", "action": "Ação",
"add_item": "Adicionar item", "add_item": "Adicionar item",
"save_item": "Salvar item", "save_item": "Salvar item",
@ -270,6 +273,7 @@
"required": "Campo obrigatório" "required": "Campo obrigatório"
}, },
"accepted": "Aceito", "accepted": "Aceito",
"rejected": "Rejected",
"sent": "Enviado", "sent": "Enviado",
"draft": "Rascunho", "draft": "Rascunho",
"declined": "Rejeitado", "declined": "Rejeitado",
@ -316,6 +320,9 @@
"all": "Todas", "all": "Todas",
"paid": "Paga", "paid": "Paga",
"unpaid": "Não Paga", "unpaid": "Não Paga",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "CLIENTE", "customer": "CLIENTE",
"paid_status": "STATUS PAGAMENTO", "paid_status": "STATUS PAGAMENTO",
"ref_no": "REFERÊNCIA", "ref_no": "REFERÊNCIA",
@ -434,6 +441,8 @@
"update_payment": "Atualizar Pagamento", "update_payment": "Atualizar Pagamento",
"payment": "Pagamento | Pagamentos", "payment": "Pagamento | Pagamentos",
"no_payments": "Ainda sem pagamentos!", "no_payments": "Ainda sem pagamentos!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Não há pagamentos correspondentes!", "no_matching_payments": "Não há pagamentos correspondentes!",
"list_of_payments": "Esta seção conterá a lista de pagamentos.", "list_of_payments": "Esta seção conterá a lista de pagamentos.",
"select_payment_mode": "Selecione a forma de pagamento", "select_payment_mode": "Selecione a forma de pagamento",
@ -463,6 +472,7 @@
"receipt": "Receita", "receipt": "Receita",
"amount": "Montante", "amount": "Montante",
"action": "Ação", "action": "Ação",
"not_selected": "Not selected",
"note": "Observação", "note": "Observação",
"category_id": "Categoria", "category_id": "Categoria",
"date": "Data da Despesa", "date": "Data da Despesa",
@ -1147,6 +1157,7 @@
"pdf_amount_label": "Montante", "pdf_amount_label": "Montante",
"pdf_subtotal": "Subtotal", "pdf_subtotal": "Subtotal",
"pdf_total": "Total", "pdf_total": "Total",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "PAYMENT RECEIPT", "pdf_payment_receipt_label": "PAYMENT RECEIPT",
"pdf_payment_date": "Payment Date", "pdf_payment_date": "Payment Date",
"pdf_payment_number": "Número do Pagamento", "pdf_payment_number": "Número do Pagamento",
@ -1155,6 +1166,9 @@
"pdf_expense_report_label": "EXPENSES REPORT", "pdf_expense_report_label": "EXPENSES REPORT",
"pdf_total_expenses_label": "TOTAL EXPENSE", "pdf_total_expenses_label": "TOTAL EXPENSE",
"pdf_profit_loss_label": "PROFIT & LOSS REPORT", "pdf_profit_loss_label": "PROFIT & LOSS REPORT",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "INCOME", "pdf_income_label": "INCOME",
"pdf_net_profit_label": "NET PROFIT", "pdf_net_profit_label": "NET PROFIT",
"pdf_customer_sales_report": "Sales Report: By Customer", "pdf_customer_sales_report": "Sales Report: By Customer",

View File

@ -178,6 +178,8 @@
"copy_billing_address": "Kopiraj iz adrese za naplatu", "copy_billing_address": "Kopiraj iz adrese za naplatu",
"no_customers": "Još uvek nema klijenata!", "no_customers": "Još uvek nema klijenata!",
"no_customers_found": "Klijenti nisu pronađeni!", "no_customers_found": "Klijenti nisu pronađeni!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Ova sekcija će da sadrži spisak klijenata.", "list_of_customers": "Ova sekcija će da sadrži spisak klijenata.",
"primary_display_name": "Primarni naziv koji se prikazuje", "primary_display_name": "Primarni naziv koji se prikazuje",
"select_currency": "Odaberi valutu", "select_currency": "Odaberi valutu",
@ -201,6 +203,7 @@
"added_on": "Datum dodavanja", "added_on": "Datum dodavanja",
"price": "Cena", "price": "Cena",
"date_of_creation": "Datum kreiranja", "date_of_creation": "Datum kreiranja",
"not_selected": "No item selected",
"action": "Akcije", "action": "Akcije",
"add_item": "Dodaj Stavku", "add_item": "Dodaj Stavku",
"save_item": "Sačuvaj Stavku", "save_item": "Sačuvaj Stavku",
@ -271,6 +274,7 @@
"required": "Polje je obavezno" "required": "Polje je obavezno"
}, },
"accepted": "Prihvaćeno", "accepted": "Prihvaćeno",
"rejected": "Rejected",
"sent": "Poslato", "sent": "Poslato",
"draft": "U izradi", "draft": "U izradi",
"declined": "Odbijeno", "declined": "Odbijeno",
@ -317,6 +321,9 @@
"all": "Sve", "all": "Sve",
"paid": "Plaćeno", "paid": "Plaćeno",
"unpaid": "Neplaćeno", "unpaid": "Neplaćeno",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "KLIJENT", "customer": "KLIJENT",
"paid_status": "STATUS UPLATE", "paid_status": "STATUS UPLATE",
"ref_no": "POZIV NA BROJ", "ref_no": "POZIV NA BROJ",
@ -435,6 +442,8 @@
"update_payment": "Ažuriraj Uplatu", "update_payment": "Ažuriraj Uplatu",
"payment": "Uplata | Uplate", "payment": "Uplata | Uplate",
"no_payments": "Još uvek nema uplata!", "no_payments": "Još uvek nema uplata!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Ne postoje uplate koje odgovaraju pretrazi!", "no_matching_payments": "Ne postoje uplate koje odgovaraju pretrazi!",
"list_of_payments": "Ova sekcija će da sadrži listu uplata.", "list_of_payments": "Ova sekcija će da sadrži listu uplata.",
"select_payment_mode": "Odaberi način plaćanja", "select_payment_mode": "Odaberi način plaćanja",
@ -464,6 +473,7 @@
"receipt": "Račun", "receipt": "Račun",
"amount": "Iznos", "amount": "Iznos",
"action": "Akcija", "action": "Akcija",
"not_selected": "Not selected",
"note": "Napomena", "note": "Napomena",
"category_id": "ID kategorije", "category_id": "ID kategorije",
"date": "Datum", "date": "Datum",
@ -1150,6 +1160,7 @@
"pdf_amount_label": "Iznos", "pdf_amount_label": "Iznos",
"pdf_subtotal": "Osnovica za obračun PDV-a", "pdf_subtotal": "Osnovica za obračun PDV-a",
"pdf_total": "Ukupan iznos", "pdf_total": "Ukupan iznos",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "POTVRDA O UPLATI", "pdf_payment_receipt_label": "POTVRDA O UPLATI",
"pdf_payment_date": "Datum Uplate", "pdf_payment_date": "Datum Uplate",
"pdf_payment_number": "Broj Uplate", "pdf_payment_number": "Broj Uplate",
@ -1158,6 +1169,9 @@
"pdf_expense_report_label": "IZVEŠTAJ O RASHODIMA", "pdf_expense_report_label": "IZVEŠTAJ O RASHODIMA",
"pdf_total_expenses_label": "RASHODI UKUPNO", "pdf_total_expenses_label": "RASHODI UKUPNO",
"pdf_profit_loss_label": "IZVEŠTAJ O PRIHODIMA I RASHODIMA", "pdf_profit_loss_label": "IZVEŠTAJ O PRIHODIMA I RASHODIMA",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "PRIHOD", "pdf_income_label": "PRIHOD",
"pdf_net_profit_label": "NETO PROFIT", "pdf_net_profit_label": "NETO PROFIT",
"pdf_customer_sales_report": "Izveštaj o Prodaji: Po Klijentu", "pdf_customer_sales_report": "Izveštaj o Prodaji: Po Klijentu",

View File

@ -178,6 +178,8 @@
"copy_billing_address": "Kopiera från faktura", "copy_billing_address": "Kopiera från faktura",
"no_customers": "Inga kunder än!", "no_customers": "Inga kunder än!",
"no_customers_found": "Hittade inga kunder!", "no_customers_found": "Hittade inga kunder!",
"no_contact": "No contact",
"no_contact_name": "No contact name",
"list_of_customers": "Här kommer det finnas en lista med kunder.", "list_of_customers": "Här kommer det finnas en lista med kunder.",
"primary_display_name": "Visningsnamn", "primary_display_name": "Visningsnamn",
"select_currency": "Välj valuta", "select_currency": "Välj valuta",
@ -201,6 +203,7 @@
"added_on": "Tillagd den", "added_on": "Tillagd den",
"price": "Pris", "price": "Pris",
"date_of_creation": "Skapandedatum", "date_of_creation": "Skapandedatum",
"not_selected": "No item selected",
"action": "Handling", "action": "Handling",
"add_item": "Skapa artikel", "add_item": "Skapa artikel",
"save_item": "Spara artikel", "save_item": "Spara artikel",
@ -271,6 +274,7 @@
"required": "Fältet är tvingande" "required": "Fältet är tvingande"
}, },
"accepted": "Accepterad", "accepted": "Accepterad",
"rejected": "Rejected",
"sent": "Skickat", "sent": "Skickat",
"draft": "Utkast", "draft": "Utkast",
"declined": "Avvisad", "declined": "Avvisad",
@ -317,6 +321,9 @@
"all": "Alla", "all": "Alla",
"paid": "Betalda", "paid": "Betalda",
"unpaid": "Obetalda", "unpaid": "Obetalda",
"viewed": "Viewed",
"overdue": "Overdue",
"completed": "Completed",
"customer": "KUNDER", "customer": "KUNDER",
"paid_status": "BETALSTATUS", "paid_status": "BETALSTATUS",
"ref_no": "REF NR.", "ref_no": "REF NR.",
@ -435,6 +442,8 @@
"update_payment": "Uppdatera betalning", "update_payment": "Uppdatera betalning",
"payment": "Betalning | Betalningar", "payment": "Betalning | Betalningar",
"no_payments": "Inga betalningar än!", "no_payments": "Inga betalningar än!",
"not_selected": "Not selected",
"no_invoice": "No invoice",
"no_matching_payments": "Inga matchande betalningar!", "no_matching_payments": "Inga matchande betalningar!",
"list_of_payments": "Här kommer listan med betalningar finnas.", "list_of_payments": "Här kommer listan med betalningar finnas.",
"select_payment_mode": "Välj betalningssätt", "select_payment_mode": "Välj betalningssätt",
@ -464,6 +473,7 @@
"receipt": "Kvitto", "receipt": "Kvitto",
"amount": "Summa", "amount": "Summa",
"action": "Handling", "action": "Handling",
"not_selected": "Not selected",
"note": "Notering", "note": "Notering",
"category_id": "Kategorins ID", "category_id": "Kategorins ID",
"date": "Datum", "date": "Datum",
@ -1149,6 +1159,7 @@
"pdf_amount_label": "Belopp", "pdf_amount_label": "Belopp",
"pdf_subtotal": "Delsumma", "pdf_subtotal": "Delsumma",
"pdf_total": "Summa", "pdf_total": "Summa",
"pdf_payment_label": "Payment",
"pdf_payment_receipt_label": "Betalningskvitto", "pdf_payment_receipt_label": "Betalningskvitto",
"pdf_payment_date": "Betalningsdatum", "pdf_payment_date": "Betalningsdatum",
"pdf_payment_number": "Betalningsnummer", "pdf_payment_number": "Betalningsnummer",
@ -1157,6 +1168,9 @@
"pdf_expense_report_label": "Kostnadsrapport", "pdf_expense_report_label": "Kostnadsrapport",
"pdf_total_expenses_label": "Totalkostnad", "pdf_total_expenses_label": "Totalkostnad",
"pdf_profit_loss_label": "Resultat- och förlustrapport", "pdf_profit_loss_label": "Resultat- och förlustrapport",
"pdf_sales_customers_label": "Sales Customer Report",
"pdf_sales_items_label": "Sales Item Report",
"pdf_tax_summery_label": "Tax Summary Report",
"pdf_income_label": "Inkomst", "pdf_income_label": "Inkomst",
"pdf_net_profit_label": "Nettoförtjänst", "pdf_net_profit_label": "Nettoförtjänst",
"pdf_customer_sales_report": "Försäljningsrapport: Per kund", "pdf_customer_sales_report": "Försäljningsrapport: Per kund",

View File

@ -195,7 +195,7 @@
<template slot-scope="row"> <template slot-scope="row">
<span>{{ $t('customers.contact_name') }}</span> <span>{{ $t('customers.contact_name') }}</span>
<span> <span>
{{ row.contact_name ? row.contact_name : 'No Contact Name' }} {{ row.contact_name ? row.contact_name : $t('customers.no_contact_name') }}
</span> </span>
</template> </template>
</sw-table-column> </sw-table-column>
@ -208,7 +208,7 @@
<template slot-scope="row"> <template slot-scope="row">
<span>{{ $t('customers.phone') }}</span> <span>{{ $t('customers.phone') }}</span>
<span> <span>
{{ row.phone ? row.phone : 'No Contact' }} {{ row.phone ? row.phone : $t('customers.no_contact') }}
</span> </span>
</template> </template>
</sw-table-column> </sw-table-column>

View File

@ -65,9 +65,11 @@
:color="$utils.getBadgeStatusColor(row.status).color" :color="$utils.getBadgeStatusColor(row.status).color"
> >
{{ {{
$utils.getStatusTranslation(
row.status != 'PARTIALLY_PAID' row.status != 'PARTIALLY_PAID'
? row.status ? row.status
: row.status.replace('_', ' ') : row.status.replace('_', ' ')
)
}} }}
</sw-badge> </sw-badge>
</template> </template>

View File

@ -469,7 +469,6 @@ export default {
isLoadingEstimate: false, isLoadingEstimate: false,
isLoadingData: false, isLoadingData: false,
isLoading: false, isLoading: false,
maxDiscount: 0,
estimateNumAttribute: null, estimateNumAttribute: null,
estimatePrefix: null, estimatePrefix: null,
EstimateFields: [ EstimateFields: [

View File

@ -254,7 +254,7 @@
:color="$utils.getBadgeStatusColor(row.status).color" :color="$utils.getBadgeStatusColor(row.status).color"
class="px-3 py-1" class="px-3 py-1"
> >
{{ row.status }} {{ $utils.getStatusTranslation(row.status) }}
</sw-badge> </sw-badge>
</template> </template>
</sw-table-column> </sw-table-column>

View File

@ -302,7 +302,7 @@ export default {
set: function (newValue) { set: function (newValue) {
if (parseFloat(newValue) > 0) { if (parseFloat(newValue) > 0) {
this.item.price = Math.round(newValue * 100) this.item.price = Math.round(newValue * 100)
this.maxDiscount = this.item.price this.maxDiscount = this.item.price * this.item.quantity
} else { } else {
this.item.price = newValue this.item.price = newValue
} }

View File

@ -172,7 +172,7 @@
:color="$utils.getBadgeStatusColor(estimate.status).color" :color="$utils.getBadgeStatusColor(estimate.status).color"
class="px-1 text-xs" class="px-1 text-xs"
> >
{{ estimate.status }} {{ $utils.getStatusTranslation(estimate.status) }}
</sw-badge> </sw-badge>
</div> </div>

View File

@ -208,7 +208,7 @@
> >
<template slot-scope="row"> <template slot-scope="row">
<span>{{ $t('expenses.customer') }}</span> <span>{{ $t('expenses.customer') }}</span>
<span> {{ row.user_name ? row.user_name : 'Not selected' }} </span> <span> {{ row.user_name ? row.user_name : $t('expenses.not_selected') }} </span>
</template> </template>
</sw-table-column> </sw-table-column>

View File

@ -15,7 +15,7 @@
to="/admin/invoices" to="/admin/invoices"
/> />
<sw-breadcrumb-item <sw-breadcrumb-item
v-if="$route.name === 'invoice.edit'" v-if="$route.name === 'invoices.edit'"
:title="$t('invoices.edit_invoice')" :title="$t('invoices.edit_invoice')"
to="#" to="#"
active active

View File

@ -241,7 +241,7 @@
:bg-color="$utils.getBadgeStatusColor(row.status).bgColor" :bg-color="$utils.getBadgeStatusColor(row.status).bgColor"
:color="$utils.getBadgeStatusColor(row.status).color" :color="$utils.getBadgeStatusColor(row.status).color"
> >
{{ row.status.replace('_', ' ') }} {{ $utils.getStatusTranslation(row.status.replace('_', ' ')) }}
</sw-badge> </sw-badge>
</template> </template>
</sw-table-column> </sw-table-column>
@ -258,7 +258,7 @@
:bg-color="$utils.getBadgeStatusColor(row.status).bgColor" :bg-color="$utils.getBadgeStatusColor(row.status).bgColor"
:color="$utils.getBadgeStatusColor(row.status).color" :color="$utils.getBadgeStatusColor(row.status).color"
> >
{{ row.paid_status.replace('_', ' ') }} {{ $utils.getStatusTranslation(row.paid_status.replace('_', ' ')) }}
</sw-badge> </sw-badge>
</template> </template>
</sw-table-column> </sw-table-column>

View File

@ -301,7 +301,7 @@ export default {
set: function (newValue) { set: function (newValue) {
if (parseFloat(newValue) > 0) { if (parseFloat(newValue) > 0) {
this.item.price = Math.round(newValue * 100) this.item.price = Math.round(newValue * 100)
this.maxDiscount = this.item.price this.maxDiscount = this.item.price * this.item.quantity
} else { } else {
this.item.price = newValue this.item.price = newValue
} }

View File

@ -189,7 +189,7 @@
:font-size="$utils.getBadgeStatusColor(invoice.status).fontSize" :font-size="$utils.getBadgeStatusColor(invoice.status).fontSize"
class="px-1 text-xs" class="px-1 text-xs"
> >
{{ invoice.status }} {{ $utils.getStatusTranslation(invoice.status) }}
</sw-badge> </sw-badge>
</div> </div>

View File

@ -189,7 +189,7 @@
<span>{{ $t('items.unit') }}</span> <span>{{ $t('items.unit') }}</span>
<span> <span>
{{ row.unit_name ? row.unit_name : 'Not selected' }} {{ row.unit_name ? row.unit_name : $t('items.not_selected') }}
</span> </span>
</template> </template>
</sw-table-column> </sw-table-column>

View File

@ -202,7 +202,7 @@
<template slot-scope="row"> <template slot-scope="row">
<span>{{ $t('payments.payment_mode') }}</span> <span>{{ $t('payments.payment_mode') }}</span>
<span> <span>
{{ row.payment_mode ? row.payment_mode : 'Not selected' }} {{ row.payment_mode ? row.payment_mode : $t('payments.not_selected') }}
</span> </span>
</template> </template>
</sw-table-column> </sw-table-column>
@ -216,7 +216,7 @@
<template slot-scope="row"> <template slot-scope="row">
<span>{{ $t('invoices.invoice_number') }}</span> <span>{{ $t('invoices.invoice_number') }}</span>
<span> <span>
{{ row.invoice_number ? row.invoice_number : 'No Invoice' }} {{ row.invoice_number ? row.invoice_number : $t('payments.no_invoice') }}
</span> </span>
</template> </template>
</sw-table-column> </sw-table-column>

View File

@ -59,12 +59,15 @@ export default {
this.isRequestOnGoing = true this.isRequestOnGoing = true
let res = await this.fetchCompanySettings([ let res = await this.fetchCompanySettings([
'payment_auto_generate', 'payment_auto_generate',
'payment_email_attachment',
'payment_prefix', 'payment_prefix',
'payment_mail_body', 'payment_mail_body',
'invoice_auto_generate', 'invoice_auto_generate',
'invoice_email_attachment',
'invoice_prefix', 'invoice_prefix',
'invoice_mail_body', 'invoice_mail_body',
'estimate_auto_generate', 'estimate_auto_generate',
'estimate_email_attachment',
'estimate_prefix', 'estimate_prefix',
'estimate_mail_body', 'estimate_mail_body',
'invoice_billing_address_format', 'invoice_billing_address_format',

View File

@ -70,7 +70,7 @@
<sw-divider class="mt-6 mb-8" /> <sw-divider class="mt-6 mb-8" />
<div class="flex"> <div class="flex mt-3 mb-4">
<div class="relative w-12"> <div class="relative w-12">
<sw-switch <sw-switch
v-model="estimateAutogenerate" v-model="estimateAutogenerate"
@ -96,6 +96,32 @@
</p> </p>
</div> </div>
</div> </div>
<div class="flex mb-2">
<div class="relative w-12">
<sw-switch
v-model="estimateAsAttachment"
class="absolute"
style="top: -20px"
@change="setEstimateSetting"
/>
</div>
<div class="ml-4">
<p class="p-0 mb-1 text-base leading-snug text-black">
{{
$t('settings.customization.estimates.estimate_email_attachment')
}}
</p>
<p
class="p-0 m-0 text-xs leading-tight text-gray-500"
style="max-width: 480px"
>
{{
$t('settings.customization.estimates.estimate_email_attachment_setting_description')
}}
</p>
</div>
</div>
</div> </div>
</template> </template>
@ -115,6 +141,7 @@ export default {
data() { data() {
return { return {
estimateAutogenerate: false, estimateAutogenerate: false,
estimateAsAttachment: false,
estimates: { estimates: {
estimate_prefix: null, estimate_prefix: null,
@ -204,6 +231,14 @@ export default {
} else { } else {
this.estimateAutogenerate = false this.estimateAutogenerate = false
} }
this.estimate_email_attachment = val ? val.estimate_email_attachment : ''
if (this.estimate_email_attachment === 'YES') {
this.estimateAsAttachment = true
} else {
this.estimateAsAttachment = false
}
}, },
}, },
@ -214,6 +249,7 @@ export default {
let data = { let data = {
settings: { settings: {
estimate_auto_generate: this.estimateAutogenerate ? 'YES' : 'NO', estimate_auto_generate: this.estimateAutogenerate ? 'YES' : 'NO',
estimate_email_attachment: this.estimateAsAttachment ? 'YES' : 'NO',
}, },
} }
let response = await this.updateCompanySettings(data) let response = await this.updateCompanySettings(data)

View File

@ -74,7 +74,7 @@
<sw-divider class="mt-6 mb-8" /> <sw-divider class="mt-6 mb-8" />
<div class="flex"> <div class="flex mt-3 mb-4">
<div class="relative w-12"> <div class="relative w-12">
<sw-switch <sw-switch
v-model="invoiceAutogenerate" v-model="invoiceAutogenerate"
@ -101,6 +101,33 @@
</p> </p>
</div> </div>
</div> </div>
<div class="flex mb-2">
<div class="relative w-12">
<sw-switch
v-model="invoiceAsAttachment"
class="absolute"
style="top: -20px"
@change="setInvoiceSetting"
/>
</div>
<div class="ml-4">
<p class="p-0 mb-1 text-base leading-snug text-black">
{{
$t('settings.customization.invoices.invoice_email_attachment')
}}
</p>
<p
class="p-0 m-0 text-xs leading-tight text-gray-500"
style="max-width: 480px"
>
{{
$t('settings.customization.invoices.invoice_email_attachment_setting_description')
}}
</p>
</div>
</div>
</div> </div>
</template> </template>
@ -120,6 +147,7 @@ export default {
data() { data() {
return { return {
invoiceAutogenerate: false, invoiceAutogenerate: false,
invoiceAsAttachment: false,
invoices: { invoices: {
invoice_prefix: null, invoice_prefix: null,
@ -189,6 +217,14 @@ export default {
} else { } else {
this.invoiceAutogenerate = false this.invoiceAutogenerate = false
} }
this.invoice_email_attachment = val ? val.invoice_email_attachment : ''
if (this.invoice_email_attachment === 'YES') {
this.invoiceAsAttachment = true
} else {
this.invoiceAsAttachment = false
}
}, },
}, },
@ -209,6 +245,7 @@ export default {
let data = { let data = {
settings: { settings: {
invoice_auto_generate: this.invoiceAutogenerate ? 'YES' : 'NO', invoice_auto_generate: this.invoiceAutogenerate ? 'YES' : 'NO',
invoice_email_attachment: this.invoiceAsAttachment ? 'YES' : 'NO',
}, },
} }

View File

@ -63,7 +63,7 @@
<sw-divider class="mt-6 mb-8" /> <sw-divider class="mt-6 mb-8" />
<div class="flex"> <div class="flex mt-3 mb-4">
<div class="relative w-12"> <div class="relative w-12">
<sw-switch <sw-switch
v-model="paymentAutogenerate" v-model="paymentAutogenerate"
@ -90,6 +90,33 @@
</p> </p>
</div> </div>
</div> </div>
<div class="flex mb-2">
<div class="relative w-12">
<sw-switch
v-model="paymentAsAttachment"
class="absolute"
style="top: -20px"
@change="setPaymentSetting"
/>
</div>
<div class="ml-4">
<p class="p-0 mb-1 text-base leading-snug text-black">
{{
$t('settings.customization.payments.payment_email_attachment')
}}
</p>
<p
class="p-0 m-0 text-xs leading-tight text-gray-500"
style="max-width: 480px"
>
{{
$t('settings.customization.payments.payment_email_attachment_setting_description')
}}
</p>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
@ -108,6 +135,7 @@ export default {
data() { data() {
return { return {
paymentAutogenerate: false, paymentAutogenerate: false,
paymentAsAttachment: false,
payments: { payments: {
payment_prefix: null, payment_prefix: null,
@ -184,6 +212,14 @@ export default {
} else { } else {
this.paymentAutogenerate = false this.paymentAutogenerate = false
} }
this.payment_email_attachment = val ? val.payment_email_attachment : ''
if (this.payment_email_attachment === 'YES') {
this.paymentAsAttachment = true
} else {
this.paymentAsAttachment = false
}
}, },
}, },
@ -203,6 +239,7 @@ export default {
let data = { let data = {
settings: { settings: {
payment_auto_generate: this.paymentAutogenerate ? 'YES' : 'NO', payment_auto_generate: this.paymentAutogenerate ? 'YES' : 'NO',
payment_email_attachment: this.paymentAsAttachment ? 'YES' : 'NO',
}, },
} }
let response = await this.updateCompanySettings(data) let response = await this.updateCompanySettings(data)

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Estimate</title> <title>@lang('pdf_estimate_label') - {{$estimate->estimate_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Estimate</title> <title>@lang('pdf_estimate_label') - {{$estimate->estimate_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */ /* -- Base -- */

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Estimate</title> <title>@lang('pdf_estimate_label') - {{$estimate->estimate_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">

View File

@ -34,7 +34,7 @@
class="pr-20 text-right item-cell" class="pr-20 text-right item-cell"
style="vertical-align: top;" style="vertical-align: top;"
> >
{{$item->quantity}} {{$item->quantity}} @if($item->unit_name) {{$item->unit_name}} @endif
</td> </td>
<td <td
class="pr-20 text-right item-cell" class="pr-20 text-right item-cell"

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Invoice</title> <title>@lang('pdf_invoice_label') - {{$invoice->invoice_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
@ -69,7 +69,6 @@
padding-left: 30px; padding-left: 30px;
float: left; float: left;
width: 30%; width: 30%;
text-transform: capitalize;
margin-bottom: 2px; margin-bottom: 2px;
} }
@ -215,7 +214,6 @@
.total-display-table { .total-display-table {
border-top: none; border-top: none;
box-sizing: border-box;
page-break-inside: avoid; page-break-inside: avoid;
page-break-before: auto; page-break-before: auto;
page-break-after: auto; page-break-after: auto;

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Invoice</title> <title>@lang('pdf_invoice_label') - {{$invoice->invoice_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */ /* -- Base -- */
@ -256,7 +256,6 @@
} }
.total-display-table { .total-display-table {
box-sizing: border-box;
page-break-inside: avoid; page-break-inside: avoid;
page-break-before: auto; page-break-before: auto;
page-break-after: auto; page-break-after: auto;

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Invoice</title> <title>@lang('pdf_invoice_label') - {{$invoice->invoice_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
@ -42,7 +42,6 @@
} }
.company-address-container { .company-address-container {
width: 50%; width: 50%;
text-transform: capitalize;
padding-left: 80px; padding-left: 80px;
margin-bottom: 2px; margin-bottom: 2px;
} }
@ -185,7 +184,6 @@
.total-display-table { .total-display-table {
box-sizing: border-box;
page-break-inside: avoid; page-break-inside: avoid;
page-break-before: auto; page-break-before: auto;
page-break-after: auto; page-break-after: auto;

View File

@ -31,7 +31,7 @@
class="pr-20 text-right item-cell" class="pr-20 text-right item-cell"
style="vertical-align: top;" style="vertical-align: top;"
> >
{{$item->quantity}} {{$item->quantity}} @if($item->unit_name) {{$item->unit_name}} @endif
</td> </td>
<td <td
class="pr-20 text-right item-cell" class="pr-20 text-right item-cell"

View File

@ -1,7 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Payment</title> <title>@lang('pdf_estimate_label') - {{$payment->payment_number}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
@ -15,6 +16,7 @@
padding: 0px; padding: 0px;
margin-top: 50px; margin-top: 50px;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
@ -51,12 +53,14 @@
color: #817AE3; color: #817AE3;
padding-top: 0px; padding-top: 0px;
} }
.company-address-container { .company-address-container {
width: 50%; width: 50%;
text-transform: capitalize; text-transform: capitalize;
padding-left: 80px; padding-left: 80px;
margin-bottom: 2px; margin-bottom: 2px;
} }
/* .header-section-right { /* .header-section-right {
display:inline-block; display:inline-block;
position: absolute; position: absolute;
@ -258,7 +262,7 @@
color: #595959; color: #595959;
} }
.total-display-box span { .total-display-box .amount {
float: right; float: right;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
@ -268,6 +272,7 @@
} }
</style> </style>
</head> </head>
<body> <body>
<div class="header-container"> <div class="header-container">
<table width="100%"> <table width="100%">
@ -336,7 +341,8 @@
</div> </div>
<div class="total-display-box"> <div class="total-display-box">
<p class="total-display-label">@lang('pdf_payment_amount_received_label')</p> <p class="total-display-label">@lang('pdf_payment_amount_received_label')</p>
<span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span> <span class="amount">{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Expenses Report</title> <title>@lang('pdf_expense_report_label')</title>
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Profit & Loss Report</title> <title>@lang('pdf_profit_loss_label')</title>
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Sales Customer Report</title> <title>@lang('pdf_sales_customers_label')</title>
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Sales Item Report</title> <title>@lang('pdf_sales_items_label')</title>
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Tax Summary Report</title> <title>@lang('pdf_tax_summery_label')</title>
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";

View File

@ -17,9 +17,11 @@
@slot('subcopy') @slot('subcopy')
@component('mail::subcopy') @component('mail::subcopy')
{!! $data['body'] !!} {!! $data['body'] !!}
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])]) @component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
View Estimate View Estimate
@endcomponent @endcomponent
@endif
@endcomponent @endcomponent
@endslot @endslot

View File

@ -17,9 +17,11 @@
@slot('subcopy') @slot('subcopy')
@component('mail::subcopy') @component('mail::subcopy')
{!! $data['body'] !!} {!! $data['body'] !!}
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])]) @component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
View Invoice View Invoice
@endcomponent @endcomponent
@endif
@endcomponent @endcomponent
@endslot @endslot

View File

@ -17,9 +17,11 @@
@slot('subcopy') @slot('subcopy')
@component('mail::subcopy') @component('mail::subcopy')
{!! $data['body'] !!} {!! $data['body'] !!}
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])]) @component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])])
View Payment View Payment
@endcomponent @endcomponent
@endif
@endcomponent @endcomponent
@endslot @endslot