Added invoice states

This commit is contained in:
Glenn Hermans 2021-05-04 05:22:33 +02:00
parent 3a307a8371
commit 794c166082
11 changed files with 65 additions and 35 deletions

View File

@ -89,11 +89,11 @@ class CustomersInvoicesDataGrid extends DataGrid
'filterable' => true,
'wrapper' => function ($value) {
if ($value->state == 'paid') {
return '<span class="badge badge-md badge-success">Paid</span>';
} elseif ($value->state == 'pending') {
return '<span class="badge badge-md badge-warning">Pending</span>';
} elseif ($value->state == 'pending_payment') {
return '<span class="badge badge-md badge-warning">Pending payment</span>';
return '<span class="badge badge-md badge-success">' . trans('admin::app.sales.invoices.status-paid') . '</span>';
} elseif ($value->state == 'pending' || $value->state == 'pending_payment') {
return '<span class="badge badge-md badge-warning">' . trans('admin::app.sales.invoices.status-pending') . '</span>';
} elseif ($value->state == 'overdue') {
return '<span class="badge badge-md badge-info">' . trans('admin::app.sales.invoices.status-overdue') . '</span>';
} else {
return $value->state;
}

View File

@ -420,7 +420,10 @@ return [
'print' => 'اطبع',
'order-date' => 'تاريخ الطلب',
'creation-error' => 'لا يسمح بإنشاء الفواتير.',
'product-error' => 'ولا يمكن إعداد الفاتورة بدون منتجات.'
'product-error' => 'ولا يمكن إعداد الفاتورة بدون منتجات.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -416,6 +416,9 @@ return [
'order-date' => 'Bestell-Datum',
'creation-error' => 'Die Erstellung einer Bestellrechnung ist nicht zulässig.',
'product-error' => 'Eine Rechnung kann nicht ohne Produkte erstellt werden.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' =>
[

View File

@ -409,28 +409,31 @@ return [
],
'invoices' => [
'title' => 'Invoices',
'id' => 'Id',
'invoice' => 'Invoice',
'invoice-id' => 'Invoice Id',
'date' => 'Invoice Date',
'order-id' => 'Order Id',
'customer-name' => 'Customer Name',
'status' => 'Status',
'amount' => 'Amount',
'action' => 'Action',
'add-title' => 'Create Invoice',
'save-btn-title' => 'Save Invoice',
'qty' => 'Qty',
'qty-ordered' => 'Qty Ordered',
'qty-to-invoice' => 'Qty to Invoice',
'view-title' => 'Invoice #:invoice_id',
'bill-to' => 'Bill to',
'ship-to' => 'Ship to',
'print' => 'Print',
'order-date' => 'Order Date',
'creation-error' => 'Order invoice creation is not allowed.',
'product-error' => 'Invoice can not be created without products.'
'title' => 'Invoices',
'id' => 'Id',
'invoice' => 'Invoice',
'invoice-id' => 'Invoice Id',
'date' => 'Invoice Date',
'order-id' => 'Order Id',
'customer-name' => 'Customer Name',
'status' => 'Status',
'amount' => 'Amount',
'action' => 'Action',
'add-title' => 'Create Invoice',
'save-btn-title' => 'Save Invoice',
'qty' => 'Qty',
'qty-ordered' => 'Qty Ordered',
'qty-to-invoice' => 'Qty to Invoice',
'view-title' => 'Invoice #:invoice_id',
'bill-to' => 'Bill to',
'ship-to' => 'Ship to',
'print' => 'Print',
'order-date' => 'Order Date',
'creation-error' => 'Order invoice creation is not allowed.',
'product-error' => 'Invoice can not be created without products.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -430,7 +430,10 @@ return [
'print' => 'Imprimir',
'order-date' => 'Fecha del pedido',
'creation-error' => 'La creación de facturas al pedido no está permitida.',
'product-error' => 'La factura no puede ser creada sin productos.'
'product-error' => 'La factura no puede ser creada sin productos.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -418,7 +418,10 @@ return [
'print' => 'چاپ',
'order-date' => 'تاریخ سفارش',
'creation-error' => 'ایجاد فاکتور سفارش مجاز نیست.',
'product-error' => 'بدون محصولات نمی توان فاکتور ایجاد کرد.'
'product-error' => 'بدون محصولات نمی توان فاکتور ایجاد کرد.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -421,7 +421,10 @@ return [
'print' => 'Stampa',
'order-date' => 'Data Ordine',
'creation-error' => 'La creazione della fattura dell\'Ordine non è consentita.',
'product-error' => 'La fattura non può essere creata senza prodotti.'
'product-error' => 'La fattura non può essere creata senza prodotti.',
'status-overdue' => 'Pending',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -417,7 +417,10 @@ return [
'print' => 'Print',
'order-date' => 'Besteldatum',
'creation-error' => 'De bestelling staat niet toe dat er een factuur wordt aangemaakt.',
'product-error' => 'Zonder producten kan er geen factuur worden aangemaakt.'
'product-error' => 'Zonder producten kan er geen factuur worden aangemaakt.',
'status-overdue' => 'Verlopen',
'status-pending' => 'Wachten op betaling',
'status-paid' => 'Betaald',
],
'shipments' => [

View File

@ -419,7 +419,10 @@ return [
'print' => 'Drukuj',
'order-date' => 'Data zamówienia',
'creation-error' => 'Tworzenie faktury za zamówienie jest niedozwolone.',
'product-error' => 'Faktury nie można utworzyć bez produktów.'
'product-error' => 'Faktury nie można utworzyć bez produktów.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -418,7 +418,10 @@ return [
'print' => 'Imprimir',
'order-date' => 'Data do Pedido',
'creation-error' => 'A criação de fatura de pedido não é permitida.',
'product-error' => 'A fatura não pode ser criada sem produtos.'
'product-error' => 'A fatura não pode ser criada sem produtos.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [

View File

@ -417,7 +417,10 @@ return [
'print' => 'Yazdır',
'order-date' => 'Sipariş Tarihi',
'creation-error' => 'Fatura oluşturulmasına izin verilmedi.',
'product-error' => 'Fatura oluşturulması için ürün ekleyiniz.'
'product-error' => 'Fatura oluşturulması için ürün ekleyiniz.',
'status-overdue' => 'Overdue',
'status-pending' => 'Pending Payment',
'status-paid' => 'Paid',
],
'shipments' => [