Compare commits

...

17 Commits
3.1.0 ... 3.1.1

Author SHA1 Message Date
2e5cb58c39 build 311 2020-06-01 16:11:29 +05:30
db622e7458 Merge branch 'refactor-new-issues' into 'master'
Refactor issues

See merge request mohit.panjvani/crater-web!241
2020-05-30 16:07:53 +00:00
09bbf98e61 Merge branch 'master' into refactor-new-issues 2020-05-30 21:36:49 +05:30
ca90ff2767 Merge branch 'master' 2020-05-30 21:10:43 +05:30
368dd16c9b Merge branch 'wizard-refactor' into 'master'
refactor checkValidUrl method

See merge request mohit.panjvani/crater-web!248
2020-05-30 15:39:31 +00:00
251648f53c fix email layout on mobile 2020-05-30 20:30:09 +05:30
ffa5b6b2ad refactor checkValidUrl method 2020-05-28 21:02:11 +05:30
bd9beaa343 Merge master branch 2020-05-28 19:34:47 +05:30
3e4decdfb9 update nginx port 2020-05-27 20:56:54 +05:30
165907d144 fix docker errors 2020-05-27 16:01:37 +05:30
6278417423 refactor docker setup 2020-05-27 14:18:29 +05:30
dc37f565c4 add credit to akaunting 2020-05-21 15:01:47 +05:30
532196a9b4 Merge branch 'master' of https://github.com/bytefury/crater 2020-05-21 14:53:42 +05:30
6a4009e13a add credit to akaunting 2020-05-21 14:53:27 +05:30
a8f98e51bb Update readme 2020-05-21 14:31:30 +05:30
98d15143c2 refactor language problem 2020-05-13 21:16:37 +05:30
96187870b4 refactoe issues 2020-05-12 21:11:36 +05:30
42 changed files with 345 additions and 181 deletions

2
.gitignore vendored
View File

@ -11,5 +11,3 @@ Homestead.yaml
.rnd
/.expo
/.vscode
docker-compose.yml
docker-compose.yaml

View File

@ -1,53 +1,39 @@
##### STAGE 1 #####
FROM php:7.4-fpm
FROM composer as composer
# Arguments defined in docker-compose.yml
ARG user
ARG uid
# Copy composer files from project root into composer container's working dir
COPY composer.* /app/
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip \
libzip-dev \
libmagickwand-dev
# Copy database directory for autoloader optimization
COPY database /app/database
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Run composer to build dependencies in vendor folder
RUN composer install --no-scripts --no-suggest --no-interaction --prefer-dist --optimize-autoloader
RUN pecl install imagick \
&& docker-php-ext-enable imagick
# Copy everything from project root into composer container's working dir
COPY . /app
RUN composer dump-autoload --optimize --classmap-authoritative
# Install PHP extensions
RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl bcmath gd
##### STAGE 2 #####
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
FROM php:7.3.12-fpm-alpine
# Create system user to run Composer and Artisan Commands
RUN useradd -G www-data,root -u $uid -d /home/$user $user
RUN mkdir -p /home/$user/.composer && \
chown -R $user:$user /home/$user
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# Set working directory
WORKDIR /var/www
RUN apk add --no-cache libpng-dev libxml2-dev oniguruma-dev libzip-dev gnu-libiconv && \
docker-php-ext-install bcmath ctype json gd mbstring pdo pdo_mysql tokenizer xml zip
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
# Set container's working dir
WORKDIR /app
# Copy everything from project root into php container's working dir
COPY . /app
# Copy vendor folder from composer container into php container
COPY --from=composer /app/vendor /app/vendor
RUN touch database/database.sqlite && \
cp .env.example .env && \
php artisan config:cache && \
php artisan passport:keys && \
php artisan key:generate && \
chown -R www-data:www-data . && \
chmod -R 755 . && \
chmod -R 775 storage/framework/ && \
chmod -R 775 storage/logs/ && \
chmod -R 775 bootstrap/cache/
EXPOSE 9000
CMD ["php-fpm", "--nodaemonize"]
USER $user

View File

@ -6,6 +6,7 @@ use Illuminate\Console\Command;
use Crater\Space\Updater;
use Crater\Setting;
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
class UpdateCommand extends Command
{
public $installed;

View File

@ -2,6 +2,7 @@
namespace Crater\Listeners\Updates;
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
class Listener
{
const VERSION = '';

View File

@ -0,0 +1,32 @@
<?php
namespace Crater\Listeners\Updates\v3;
use Crater\Listeners\Updates\Listener;
use Crater\Events\UpdateFinished;
use Crater\Setting;
use Crater\Currency;
use Artisan;
class Version311 extends Listener
{
const VERSION = '3.1.1';
/**
* Handle the event.
*
* @param UpdateFinished $event
* @return void
*/
public function handle(UpdateFinished $event)
{
if ($this->isListenerFired($event)) {
return;
}
Artisan::call('migrate', ['--force' => true]);
// Update Crater app version
Setting::setSetting('version', static::VERSION);
}
}

View File

@ -13,6 +13,7 @@ use Crater\Listeners\Updates\v2\Version202;
use Crater\Listeners\Updates\v2\Version210;
use Crater\Listeners\Updates\v3\Version300;
use Crater\Listeners\Updates\v3\Version310;
use Crater\Listeners\Updates\v3\Version311;
class EventServiceProvider extends ServiceProvider
{
@ -30,6 +31,7 @@ class EventServiceProvider extends ServiceProvider
Version210::class,
Version300::class,
Version310::class,
Version311::class,
],
Registered::class => [
SendEmailVerificationNotification::class,

View File

@ -6,6 +6,7 @@ use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use Crater\Setting;
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
trait SiteApi
{

View File

@ -7,6 +7,7 @@ use GuzzleHttp\Exception\RequestException;
use Crater\Events\UpdateFinished;
use ZipArchive;
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
class Updater
{
use SiteApi;

View File

@ -54,20 +54,11 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"initial-setup": [
"test -f .env || (cp .env.example .env; php artisan key:generate 2>/dev/null; exit 0)"
],
"pre-install-cmd": [
"@initial-setup"
],
"pre-update-cmd": [
"@initial-setup"
],
"post-root-package-install": [
"@initial-setup"
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@initial-setup"
"php artisan key:generate --ansi"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",

View File

@ -9,6 +9,6 @@ return [
|
*/
'version' => '3.1.0',
'version' => '3.1.1',
];

View File

@ -1,40 +0,0 @@
version: '3.1'
services:
web:
image: nginx
depends_on:
- php
ports:
- 8080:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- app:/app
restart: always
php:
build: .
depends_on:
- db
expose:
- 9000
volumes:
- app:/app
restart: always
db:
image: mariadb
restart: always
volumes:
- db:/var/lib/mysql
environment:
MYSQL_USER: crater
MYSQL_PASSWORD: crater
MYSQL_DATABASE: crater
MYSQL_ROOT_PASSWORD: crater
volumes:
app:
db:

50
docker-compose.yml Normal file
View File

@ -0,0 +1,50 @@
version: '3.7'
services:
app:
build:
args:
user: crater-user
uid: 1000
context: ./
dockerfile: Dockerfile
image: crater-php
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- crater
db:
image: mariadb
restart: always
volumes:
- db:/var/lib/mysql
environment:
MYSQL_USER: crater
MYSQL_PASSWORD: crater
MYSQL_DATABASE: crater
MYSQL_ROOT_PASSWORD: crater
ports:
- '33006:3306'
networks:
- crater
nginx:
image: nginx:1.17-alpine
restart: unless-stopped
ports:
- 80:80
volumes:
- ./:/var/www
- ./docker-compose/nginx:/etc/nginx/conf.d/
networks:
- crater
volumes:
db:
networks:
crater:
driver: bridge

View File

@ -0,0 +1,20 @@
server {
listen 80;
index index.php index.html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/public;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
}

7
docker-compose/setup.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
docker-compose exec app composer install --no-interaction --prefer-dist --optimize-autoloader
docker-compose exec app php artisan storage:link || true
docker-compose exec app php artisan key:generate
docker-compose exec app php artisan passport:keys || true

View File

@ -1,53 +0,0 @@
worker_processes 8;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80 default_server;
root /app/public;
index index.php;
charset utf-8;
access_log off;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header Content-Security-Policy "frame-ancestors 'self'";
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
}

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,4 +1,4 @@
{
"/assets/js/app.js": "/assets/js/app.js?id=2521d0dcc4cb4e4975a5",
"/assets/css/crater.css": "/assets/css/crater.css?id=84a4eeb53b0e6a937e44"
"/assets/js/app.js": "/assets/js/app.js?id=3c9e7bf904dd1bcdf67f",
"/assets/css/crater.css": "/assets/css/crater.css?id=f5a1617422acad8e44a1"
}

View File

@ -63,6 +63,7 @@ Crater is a product of [Bytefury](https://bytefury.com)
**Special thanks to:**
* [Birkhoff Lee](https://github.com/BirkhoffLee)
* [Hassan A. Ba Abdullah](https://github.com/hsnapps)
* [Akaunting](https://github.com/akaunting/akaunting)
## Translate
Help us translate or suggest changes to existing languages if you find any mistakes by creating a new PR.

View File

@ -9,7 +9,7 @@
:readonly="readOnly"
:name="name"
:tabindex="tabIndex"
:class="[{'input-field-left-icon': icon && isAlignLeftIcon ,'input-field-right-icon': icon && !isAlignLeftIcon ,'invalid': isFieldValid, 'disabled': disabled, 'small-input': small}, inputClass]"
:class="[{ 'input-field-left-icon': icon && isAlignLeftIcon, 'input-field-right-icon': (icon && !isAlignLeftIcon) || isInputGroup, invalid: isFieldValid, disabled: disabled, 'small-input': small}, inputClass]"
:placeholder="placeholder"
:autocomplete="autocomplete"
class="input-field"
@ -23,6 +23,9 @@
<font-awesome-icon :icon="!showPass ?'eye': 'eye-slash'" class="right-icon" />
</div>
<font-awesome-icon v-if="icon && !isAlignLeftIcon" :icon="icon" class="right-icon" />
<span v-if="isInputGroup" class="right-input-group-text">
{{ inputGroupText }}
</span>
</div>
</template>
@ -84,6 +87,14 @@ export default {
showPassword: {
type: Boolean,
default: false
},
isInputGroup: {
type: Boolean,
default: false,
},
inputGroupText: {
type: String,
default: null,
}
},
data () {

View File

@ -128,6 +128,14 @@ export default {
},
checkValidUrl(url) {
if (
url.includes('http://localhost') ||
url.includes('http://127.0.0.1') ||
url.includes('https://localhost') ||
url.includes('https://127.0.0.1')
) {
return true
}
let pattern = new RegExp(
'^(https?:\\/\\/)?' + // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name

View File

@ -22,6 +22,11 @@
"to_date": "إلى تاريخ",
"from": "من",
"to": "إلى",
"sort_by": "ترتيب حسب",
"ascending": "تصاعدي",
"descending": "تنازلي",
"subject": "موضوع",
"message": "رسالة",
"go_back": "إلى الخلف",
"back_to_login": "العودة إلى تسجيل الدخول؟",
"home": "الرئيسية",
@ -112,8 +117,8 @@
"tax_types": {
"name": "الاسم",
"description": "الوصف",
"percent": "Percent",
"compound_tax": "Compound Tax"
"percent": "نسبه مئويه",
"compound_tax": "الضريبة المركبة"
},
"customers": {
"title": "العملاء",
@ -329,6 +334,9 @@
"no_matching_invoices": "لا يوجد فواتير مطابقة!",
"mark_as_sent_successfully": "تم تحديد الفاتورة كمرسلة بنجاح",
"send_invoice_successfully": "تم إرسال الفاتورة بنجاح",
"cloned_successfully": "تم استنساخ الفاتورة بنجاح",
"clone_invoice": "استنساخ الفاتورة",
"confirm_clone": "سيتم استنساخ هذه الفاتورة في فاتورة جديدة",
"item": {
"title": "اسم الصنف",
"description": "الوصف",
@ -660,7 +668,29 @@
"autogenerate_payment_number": "ترقيم آلي للمدفوعات",
"payment_setting_description": "تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الدفعة تلقائيًا في كل مرة تقوم فيها بإنشاء دفعة جديدة.",
"enter_payment_prefix": "أدخل بادئة رقم الدفعة",
"payment_setting_updated": "تم تحديث إعدادات الدفعة بنجاح"
"payment_setting_updated": "تم تحديث إعدادات الدفعة بنجاح",
"payment_mode": "طريقة الدفع",
"add_payment_mode": "أضف وضع الدفع",
"edit_payment_mode": "تحرير وضع الدفع",
"mode_name": "اسم الوضع",
"payment_mode_added": "تمت إضافة وضع الدفع",
"payment_mode_updated": "تم تحديث وضع الدفع",
"payment_mode_confirm_delete": "لن تتمكن من استعادة وضع الدفع هذا",
"already_in_use": "وضع الدفع قيد الاستخدام بالفعل",
"deleted_message": "تم حذف وضع الدفع بنجاح"
},
"items": {
"title": "العناصر",
"units": "الوحدات",
"add_item_unit": "إضافة وحدة عنصر",
"edit_item_unit": "تحرير وحدة العناصر",
"unit_name": "إسم الوحدة",
"item_unit_added": "تمت إضافة وحدة العنصر",
"item_unit_updated": "تم تحديث وحدة العنصر",
"item_unit_confirm_delete": "لن تتمكن من استرداد وحدة العنصر هذه",
"already_in_use": "وحدة العنصر قيد الاستخدام بالفعل",
"deleted_message": "تم حذف وحدة العنصر بنجاح"
}
},
"account_settings": {
@ -695,6 +725,7 @@
"tax_types": {
"title": "أنواع الضرائب",
"add_tax": "أضف ضريبة",
"edit_tax": "تحرير الضريبة",
"description": "يمكنك إضافة أو إزالة الضرائب كما يحلو لك. النظام يدعم الضرائب على العناصر الفردية وكذلك على الفاتورة.",
"add_new_tax": "إضافة ضريبة جديدة",
"tax_settings": "إعدادات الضريبة",
@ -715,6 +746,8 @@
"action": "إجراء",
"description": "الفئات مطلوبة لإضافة إدخالات النفقات. يمكنك إضافة أو إزالة هذه الفئات وفقًا لتفضيلاتك.",
"add_new_category": "إضافة فئة جديدة",
"add_category": "إضافة فئة",
"edit_category": "تحرير الفئة",
"category_name": "اسم الفئة",
"category_description": "الوصف",
"created_message": "تم إنشاء نوع النفقات بنجاح",

View File

@ -424,6 +424,7 @@
"expenses_list": "Liste der Ausgaben",
"expense_title": "Titel",
"contact": "Kontakt",
"customer": "Kundin",
"category": "Kategorie",
"from_date": "Von Datum",
"to_date": "bis Datum",
@ -668,6 +669,7 @@
"payment_setting_updated": "Zahlungseinstellung erfolgreich aktualisiert",
"payment_mode": "Zahlungsmethode",
"add_payment_mode": "Zahlungsmethode hinzufügen",
"edit_payment_mode": "Zahlungsmodus bearbeiten",
"mode_name": "Methodenname",
"payment_mode_added": "Zahlungsmethode hinzugefügt",
"payment_mode_updated": "Zahlungsmethode aktualisiert",
@ -679,6 +681,7 @@
"title": "Artikel",
"units": "Einheiten",
"add_item_unit": "Artikeleinheit hinzufügen",
"edit_item_unit": "Elementeinheit bearbeiten",
"unit_name": "Einheitname",
"item_unit_added": "Artikeleinheit hinzugefügt",
"item_unit_updated": "Artikeleinheit aktualisiert",
@ -719,6 +722,7 @@
"tax_types": {
"title": "Steuersätze",
"add_tax": "Steuersätze hinzufügen",
"edit_tax": "Steuer bearbeiten",
"description": "Sie können Steuern nach Belieben hinzufügen oder entfernen. Crater unterstützt Steuern auf einzelne Artikel sowie auf die Rechnung.",
"add_new_tax": "Neuen Steuersatz hinzufügen",
"tax_settings": "Einstellungen Steuersatz",
@ -739,6 +743,8 @@
"action": "Aktion",
"description": "Für das Hinzufügen von Ausgabeneinträgen sind Kategorien erforderlich. Sie können diese Kategorien nach Ihren Wünschen hinzufügen oder entfernen.",
"add_new_category": "Neue Kategorie hinzufügen",
"add_category": "Kategorie hinzufügen",
"edit_category": "Kategorie bearbeiten",
"category_name": "Kategorie Name",
"category_description": "Beschreibung",
"created_message": "Ausgabenkategorie erfolgreich erstellt",

View File

@ -681,6 +681,7 @@
"payment_setting_updated": "Payment Setting updated successfully",
"payment_mode": "Payment Mode",
"add_payment_mode": "Add Payment Mode",
"edit_payment_mode": "Edit Payment Mode",
"mode_name": "Mode Name",
"payment_mode_added": "Payment Mode Added",
"payment_mode_updated": "Payment Mode Updated",
@ -693,6 +694,7 @@
"title": "Items",
"units": "units",
"add_item_unit": "Add Item Unit",
"edit_item_unit": "Edit Item Unit",
"unit_name": "Unit Name",
"item_unit_added": "Item Unit Added",
"item_unit_updated": "Item Unit Updated",
@ -733,6 +735,7 @@
"tax_types": {
"title": "Tax Types",
"add_tax": "Add Tax",
"edit_tax": "Edit Tax",
"description": "You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.",
"add_new_tax": "Add New Tax",
"tax_settings": "Tax Settings",
@ -753,6 +756,8 @@
"action": "Action",
"description": "Categories are required for adding expense entries. You can Add or Remove these categories according to your preference.",
"add_new_category": "Add New Category",
"add_category": "Add Category",
"edit_category": "Edit Category",
"category_name": "Category Name",
"category_description": "Description",
"created_message": "Expense Category created successfully",

View File

@ -22,6 +22,11 @@
"to_date": "Hasta la fecha",
"from": "De",
"to": "A",
"sort_by": "Ordenar por",
"ascending": "Ascendente",
"descending": "Descendente",
"subject": "Sujeta",
"message": "Mensaje",
"go_back": "Volver",
"back_to_login": "¿Volver al inicio de sesión?",
"home": "Inicio",
@ -62,6 +67,8 @@
"four_zero_four": "404",
"you_got_lost": "Whoops! ¡Te perdiste!",
"go_home": "Volver al Inicio",
"test_mail_conf": "Probar configuración de correo",
"send_mail_successfully": "El correo enviado con éxito",
"setting_updated": "Configuración actualizada con éxito",
"select_state": "Seleccionar estado",
"select_country": "Seleccionar país",
@ -180,7 +187,7 @@
"no_items": "¡Aún no hay artículos!",
"list_of_items": "Esta sección contendrá la lista de artículos.",
"select_a_unit": "seleccionar unidad",
"taxes": "Impuestos",
"item_attached_message": "No se puede eliminar un elemento que ya está en uso.",
"confirm_delete": "No podrá recuperar este artículo | No podrás recuperar estos elementos",
"created_message": "Artículo creado con éxito",
@ -329,6 +336,9 @@
"no_matching_invoices": "¡No hay facturas coincidentes con la selección!",
"mark_as_sent_successfully": "Factura marcada como enviada con éxito",
"send_invoice_successfully": "Factura enviada exitosamente",
"cloned_successfully": "Factura clonada exitosamente",
"clone_invoice": "Factura de clonación",
"confirm_clone": "Esta factura se clonará en una nueva factura.",
"item": {
"title": "Título del artículo",
"description": "Descripción",
@ -393,6 +403,7 @@
"edit_payment": "Editar pago",
"view_payment": "Ver pago",
"add_new_payment": "Agregar nuevo pago",
"send_payment_receipt": "Enviar recibo de pago",
"save_payment": "Guardar pago",
"update_payment": "Actualizar pago",
"payment": "Pago | Pagos",
@ -653,13 +664,35 @@
},
"payments": {
"title": "Payments",
"title": "Pagos",
"payment_prefix": "Prefijo de los pagos",
"payment_settings": "Ajustes de pagos",
"autogenerate_payment_number": "Autogenerar número de pago",
"payment_setting_description": "Desactive esto, si no desea generar automáticamente números de pago cada vez que cree un nuevo pago.",
"enter_payment_prefix": "Introduzca el prefijo de pago",
"payment_setting_updated": "Configuración de pagos actualizada correctamente"
"payment_setting_updated": "Configuración de pagos actualizada correctamente",
"payment_mode": "Modo de pago",
"add_payment_mode": "Agregar modo de pago",
"edit_payment_mode": "Editar modo de pago",
"mode_name": "Nombre del modo",
"payment_mode_added": "Modo de pago agregado",
"payment_mode_updated": "Modo de pago actualizado",
"payment_mode_confirm_delete": "No podrá recuperar este modo de pago",
"already_in_use": "El modo de pago ya está en uso",
"deleted_message": "Modo de pago eliminado correctamente"
},
"items": {
"title": "Artículos",
"units": "unidades",
"add_item_unit": "Agregar unidad de artículo",
"edit_item_unit": "Editar unidad de artículo",
"unit_name": "Nombre de la unidad",
"item_unit_added": "Unidad de artículo agregada",
"item_unit_updated": "Unidad de artículo actualizada",
"item_unit_confirm_delete": "No podrás recuperar esta unidad de artículo",
"already_in_use": "Unidad de artículo ya está en uso",
"deleted_message": "Unidad de elemento eliminada correctamente"
}
},
"account_settings": {
@ -694,6 +727,7 @@
"tax_types": {
"title": "Tipos de impuestos",
"add_tax": "Agregar impuesto",
"edit_tax": "Editar impuesto",
"description": "Puede agregar o eliminar impuestos a su gusto. Crater admite impuestos sobre artículos individuales, así como sobre la factura.",
"add_new_tax": "Agregar nuevo impuesto",
"tax_settings": "Configuraciones de impuestos",
@ -714,6 +748,8 @@
"action": "Acción",
"description": "Se requieren categorías para agregar entradas de gastos. Puede Agregar o Eliminar estas categorías según su preferencia.",
"add_new_category": "Añadir nueva categoria",
"add_category": "Añadir categoría",
"edit_category": "Editar categoria",
"category_name": "nombre de la categoría",
"category_description": "Descripción",
"created_message": "Categoría de gastos creada con éxito",

View File

@ -193,7 +193,7 @@
"no_items": "Aucun article pour le moment!",
"list_of_items": "Cette section contiendra la liste des éléments.",
"select_a_unit": "Sélectionnez l'unité",
"taxes": "Les taxes",
"item_attached_message": "Impossible de supprimer un élément déjà utilisé",
"confirm_delete": "Vous ne pourrez pas récupérer cet article | Vous ne pourrez pas récupérer ces objets",
"created_message": "Article créé avec succès",
@ -683,6 +683,7 @@
"payment_setting_updated": "Les paramètres de paiement ont bien été mis à jour",
"payment_mode": "Mode de paiement",
"add_payment_mode": "Ajouter un mode de paiement",
"edit_payment_mode": "Modifier le mode de paiement",
"mode_name": "Nom",
"payment_mode_added": "Mode de paiement ajouté",
"payment_mode_updated": "Mode de paiement mis à jour",
@ -695,6 +696,7 @@
"title": "Articles",
"units": "Unités",
"add_item_unit": "Ajouter une unité",
"edit_item_unit": "Modifier l'unité d'élément",
"unit_name": "Nom",
"item_unit_added": "Unité ajouté",
"item_unit_updated": "Unité mis à jour",
@ -737,6 +739,7 @@
"tax_types": {
"title": "Types de taxe",
"add_tax": "Ajouter une taxe",
"edit_tax": "Modifier la taxe",
"description": "Vous pouvez ajouter ou supprimer des taxes à votre guise. Crater prend en charge les taxes sur les articles individuels ainsi que sur la facture.",
"add_new_tax": "Ajouter une nouvelle taxe",
"tax_settings": "Paramètres de taxe",
@ -757,6 +760,8 @@
"action": "action",
"description": "Des catégories sont requises pour ajouter des entrées de dépenses. Vous pouvez ajouter ou supprimer ces catégories selon vos préférences.",
"add_new_category": "Ajouter une nouvelle catégorie",
"add_category": "Adicionar categoria",
"edit_category": "Editar categoria",
"category_name": "Nom de catégorie",
"category_description": "Description",
"created_message": "Catégorie de dépenses créée avec succès",

View File

@ -430,6 +430,7 @@
"expense_title": "Titolo",
"contact": "Contatto",
"category": "Categoria",
"customer": "Cliente",
"from_date": "Dalla Data",
"to_date": "Alla Data",
"expense_date": "Data",
@ -677,6 +678,7 @@
"payment_setting_updated": "Impostazioni di pagamento aggiornate con successo",
"payment_mode": "Modalità di pagamento",
"add_payment_mode": "Aggiungi modalità di pagamento",
"edit_payment_mode": "Modifica modalità di pagamento",
"mode_name": "Nome modalità",
"payment_mode_added": "Modalità di pagamento aggiunta",
"payment_mode_updated": "Modalità di pagamento aggiornata",
@ -689,6 +691,7 @@
"title": "Items",
"units": "unità",
"add_item_unit": "Aggiungi Unità Item",
"edit_item_unit": "Modifica unità articolo",
"unit_name": "Nome",
"item_unit_added": "Unità aggiunta",
"item_unit_updated": "Unità aggiornata",
@ -729,6 +732,7 @@
"tax_types": {
"title": "Tipi di Imposta",
"add_tax": "Aggiungi Imposta",
"edit_tax": "Modifica imposta",
"description": "Puoi aggiongere e rimuovere imposte a piacimento. Vengono supportate Tasse differenti per prodotti/servizi specifici esattamento come per le fatture.",
"add_new_tax": "Aggiungi nuova imposta",
"tax_settings": "Impostazioni Imposte",
@ -749,6 +753,8 @@
"action": "Azione",
"description": "Le categorie sono necessarie per aggiungere delle voci di spesa. Puoi aggiungere o eliminare queste categorie in base alle tue preferenze.",
"add_new_category": "Aggiungi nuova categoria",
"add_category": "Aggiungi categoria",
"edit_category": "Modifica categoria",
"category_name": "Nome Categoria",
"category_description": "Descrizione",
"created_message": "Categoria di spesa creata con successo",

View File

@ -17,11 +17,17 @@
"save": "Salvar",
"cancel": "Cancelar",
"update": "Atualizar",
"deselect": "Desmarcar",
"download": "Baixar",
"from_date": "A partir da Data",
"to_date": "Até a Data",
"from": "De",
"to": "Para",
"sort_by": "Ordenar por",
"ascending": "Crescente",
"descending": "Descendente",
"subject": "Sujeita",
"message": "Mensagem",
"go_back": "Voltar",
"back_to_login": "Voltar ao Login",
"home": "Home",
@ -62,6 +68,8 @@
"four_zero_four": "404",
"you_got_lost": "Ops! Se perdeu!",
"go_home": "Ir para Home",
"test_mail_conf": "Testar configuração de email",
"send_mail_successfully": "Correio enviado com sucesso",
"setting_updated": "Configuração atualizada com sucesso",
"select_state": "Selecione Estado",
"select_country": "Selecionar pais",
@ -180,7 +188,7 @@
"no_items": "Ainda não existe itens",
"list_of_items": "Esta seção conterá a lista de itens.",
"select_a_unit": "Seleciona unidade",
"taxes": "Impostos",
"item_attached_message": "Não é possível excluir um item que já está em uso.",
"confirm_delete": "Você não poderá recuperar este item | Você não poderá recuperar esses itens",
"created_message": "Item criado com sucesso",
@ -329,6 +337,9 @@
"no_matching_invoices": "Não há faturas correspondentes!",
"mark_as_sent_successfully": "Fatura marcada como enviada com sucesso",
"send_invoice_successfully": "Fatura enviada com sucesso",
"cloned_successfully": "Fatura clonada com sucesso",
"clone_invoice": "Clonar fatura",
"confirm_clone": "Esta fatura será clonada em uma nova fatura",
"item": {
"title": "Titulo do Item",
"description": "Descrição",
@ -394,6 +405,7 @@
"edit_payment": "Editar Pagamento",
"view_payment": "Ver Pagamento",
"add_new_payment": "Adicionar novo Pagamento",
"send_payment_receipt": "Enviar recibo de pagamento",
"save_payment": "Salvar Pagamento",
"update_payment": "Atualizar Pagamento",
"payment": "Pagamento | Pagamentos",
@ -659,7 +671,28 @@
"autogenerate_payment_number": "Gerar automaticamente número do Pagamento",
"payment_setting_description": "Desative isso, se você não deseja gerar automaticamente números do Pagamento sempre que criar um novo.",
"enter_payment_prefix": "Digite o Prefixo do Pagamento",
"payment_setting_updated": "Configurações de Pagamento atualizada com sucesso"
"payment_setting_updated": "Configurações de Pagamento atualizada com sucesso",
"payment_mode": "Modo de pagamento",
"add_payment_mode": "Adicionar modo de pagamento",
"edit_payment_mode": "Editar modo de pagamento",
"mode_name": "Nome do modo",
"payment_mode_added": "Modo de pagamento adicionado",
"payment_mode_updated": "Modo de pagamento atualizado",
"payment_mode_confirm_delete": "Você não poderá recuperar este modo de pagamento",
"already_in_use": "O modo de pagamento já está em uso",
"deleted_message": "Modo de pagamento excluído com sucesso"
},
"items": {
"title": "Itens",
"units": "unidades",
"add_item_unit": "Adicionar unidade de item",
"edit_item_unit": "Editar unidade de item",
"unit_name": "Nome da unidade",
"item_unit_added": "Item Unit Added",
"item_unit_updated": "Item Unit Updated",
"item_unit_confirm_delete": "Você não poderá recuperar esta unidade de item",
"already_in_use": "A unidade do item já está em uso",
"deleted_message": "Unidade de item excluída com sucesso"
}
},
"account_settings": {
@ -694,6 +727,7 @@
"tax_types": {
"title": "Tipos de Impostos",
"add_tax": "Adicionar Imposto",
"edit_tax": "Editar imposto",
"description": "Você pode adicionar ou remover impostos conforme desejar. O Crater suporta impostos sobre itens individuais e também na Fatura.",
"add_new_tax": "Adicionar Novo Imposto",
"tax_settings": "Configurações de Impostos",
@ -714,6 +748,8 @@
"action": "Ação",
"description": "As Categorias são necessárias para adicionar entradas de Despesas. Você pode adicionar ou remover essas Categorias de acordo com sua preferência.",
"add_new_category": "Adicionar Nova Categoria",
"add_category": "Adicionar categoria",
"edit_category": "Editar categoria",
"category_name": "Nome da Categoria",
"category_description": "Descrição",
"created_message": "Categoria de Despesa criada com sucesso",

View File

@ -38,6 +38,8 @@
<base-input
v-model="item.quantity"
:invalid="$v.item.quantity.$error"
:is-input-group="!!item.unit_name"
:input-group-text="item.unit_name"
type="text"
small
@keyup="updateItem"
@ -378,6 +380,7 @@ export default {
this.item.price = item.price
this.item.item_id = item.id
this.item.description = item.description
this.item.unit_name = item.unit_name
if (this.taxPerItem === 'YES' && item.taxes) {
let index = 0
item.taxes.forEach(tax => {

View File

@ -138,7 +138,7 @@ export default {
openItemModal () {
this.$emit('onSelectItem')
this.openModal({
'title': 'Add Item',
'title': this.$t('items.add_item'),
'componentName': 'ItemModal',
'data': {taxPerItem: this.taxPerItem, taxes: this.taxes}
})

View File

@ -38,6 +38,8 @@
<base-input
v-model="item.quantity"
:invalid="$v.item.quantity.$error"
:is-input-group="!!item.unit_name"
:input-group-text="item.unit_name"
type="text"
small
@keyup="updateItem"
@ -379,6 +381,7 @@ export default {
this.item.price = item.price
this.item.item_id = item.id
this.item.description = item.description
this.item.unit_name = item.unit_name
if (this.taxPerItem === 'YES' && item.taxes) {
let index = 0
item.taxes.forEach(tax => {

View File

@ -127,7 +127,7 @@ export default {
openItemModal () {
this.$emit('onSelectItem')
this.openModal({
'title': 'Add Item',
'title': this.$t('items.add_item'),
'componentName': 'ItemModal',
'data': {taxPerItem: this.taxPerItem, taxes: this.taxes}
})

View File

@ -266,7 +266,7 @@ export default {
},
async addItemUnit () {
this.openModal({
'title': 'Add Item Unit',
'title': this.$t('settings.customization.items.add_item_unit'),
'componentName': 'ItemUnit'
})
}

View File

@ -305,7 +305,7 @@ export default {
},
async addPaymentMode () {
this.openModal({
'title': 'Add Payment Mode',
'title': this.$t('settings.customization.payments.add_payment_mode'),
'componentName': 'PaymentMode'
})
},

View File

@ -403,14 +403,14 @@ export default {
},
async addItemUnit () {
this.openModal({
'title': 'Add Item Unit',
'title': this.$t('settings.customization.items.add_item_unit'),
'componentName': 'ItemUnit'
})
this.$refs.itemTable.refresh()
},
async editItemUnit (data) {
this.openModal({
'title': 'Edit Item Unit',
'title': this.$t('settings.customization.items.edit_item_unit'),
'componentName': 'ItemUnit',
'id': data.id,
'data': data
@ -439,14 +439,14 @@ export default {
},
async addPaymentMode () {
this.openModal({
'title': 'Add Payment Mode',
'title': this.$t('settings.customization.payments.add_payment_mode'),
'componentName': 'PaymentMode'
})
this.$refs.table.refresh()
},
async editPaymentMode (data) {
this.openModal({
'title': 'Edit Payment Mode',
'title': this.$t('settings.customization.payments.edit_payment_mode'),
'componentName': 'PaymentMode',
'id': data.id,
'data': data

View File

@ -121,7 +121,7 @@ export default {
},
openCategoryModal () {
this.openModal({
'title': 'Add Category',
'title': this.$t('settings.expense_category.add_category'),
'componentName': 'CategoryModal'
})
this.$refs.table.refresh()
@ -129,7 +129,7 @@ export default {
async EditCategory (id) {
let response = await this.fetchCategory(id)
this.openModal({
'title': 'Edit Category',
'title': this.$t('settings.expense_category.edit_category'),
'componentName': 'CategoryModal',
'id': id,
'data': response.data.category

View File

@ -183,7 +183,7 @@ export default {
async EditTax (id) {
let response = await this.fetchTaxType(id)
this.openModal({
'title': 'Edit Tax',
'title': this.$t('settings.tax_types.edit_tax'),
'componentName': 'TaxTypeModal',
'id': id,
'data': response.data.taxType

View File

@ -18,6 +18,22 @@
transform: translate(-50%,-50%);
}
.right-input-group-text {
position: absolute;
width: 13px;
height: 18px;
min-width: 18px;
color: $ls-color-gray;
font-style: normal;
font-weight: 900;
font-size: 14px;
line-height: 16px;
top: 50%;
right: 0px;
z-index: 1;
transform: translate(-50%, -50%);
}
.right-icon {
position: absolute;
width: 13px;

View File

@ -16,7 +16,7 @@
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
You have received a new estimate from <span class="company-name">{{$data['company']['name']}}</span>
You have received a new estimate from <b>{{$data['company']['name']}}</b>
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
View Estimate
@endcomponent

View File

@ -16,7 +16,7 @@
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
You have received a new invoice from <span class="company-name">{{$data['company']['name']}}</span>
You have received a new invoice from <b>{{$data['company']['name']}}</b>
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
View Invoice
@endcomponent

View File

@ -16,7 +16,7 @@
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
You have received a new payment from <span class="company-name">{{$data['company']['name']}}</span>
You have received a new payment from <b>{{$data['company']['name']}}</b>
@component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])])
View Payment
@endcomponent

View File

@ -158,8 +158,6 @@ img {
}
.subcopy p {
display: flex;
justify-content: center;
text-align: center;
font-size: 20px;
}