diff --git a/public/css/app.css b/public/css/app.css index 0a9db28fa..1bb099ec0 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -62577,6 +62577,11 @@ body{ background-color: rgb(101 99 140 / var(--tw-bg-opacity)); } +.hover\:bg-purple-100:hover{ + --tw-bg-opacity: 1; + background-color: rgb(238 238 243 / var(--tw-bg-opacity)); +} + .hover\:bg-opacity-100:hover{ --tw-bg-opacity: 1; } @@ -63827,6 +63832,10 @@ body{ padding-right: 1.5rem; } +:is([dir="ltr"] .ltr\:pr-9){ + padding-right: 2.25rem; +} + :is([dir="ltr"] .ltr\:text-left){ text-align: left; } @@ -65608,6 +65617,10 @@ body{ border-bottom-width: calc(0px * var(--tw-divide-y-reverse)); } + .lg\:overflow-hidden{ + overflow: hidden; + } + .lg\:overflow-x-hidden{ overflow-x: hidden; } diff --git a/resources/assets/js/mixins/global.js b/resources/assets/js/mixins/global.js index d2d111dbe..a53060ba5 100644 --- a/resources/assets/js/mixins/global.js +++ b/resources/assets/js/mixins/global.js @@ -1296,30 +1296,59 @@ export default { }, settingsInvoice() { + if (this.form.item_name == 'custom') { this.item_name_input = true; + this.onSmallWidthColumn("item_name"); } else { this.item_name_input = false; + this.onFullWidthColumn("item_name"); } if (this.form.price_name == 'custom') { this.price_name_input = true; + this.onSmallWidthColumn("price_name"); } else { this.price_name_input = false; + this.onFullWidthColumn("price_name"); } if (this.form.quantity_name == 'custom') { this.quantity_name_input = true; + this.onSmallWidthColumn("quantity_name"); } else { this.quantity_name_input = false; + this.onFullWidthColumn("quantity_name"); } - + + if (this.form.item_name == 'hide' && this.form.hide_item_description === 1) { + this.form.hide_item_description = 0; + + let type = 'warning'; + + if (this.$notifications.state != undefined && this.$notifications.state.length > 0) { + this.$notifications.state.forEach((item, index) => { + if (item.message == this.form.item_name_or_description_required) { + return; + } + }, this); + } + + this.$notify({ + verticalAlign: 'bottom', + horizontalAlign: 'left', + message: this.form.message_name_or_description_required, + timeout: 8000, + icon: 'error_outline', + type + }); + } }, // set minimum date for date component diff --git a/resources/lang/en-GB/invoices.php b/resources/lang/en-GB/invoices.php index 99040dc6a..450ee3b34 100644 --- a/resources/lang/en-GB/invoices.php +++ b/resources/lang/en-GB/invoices.php @@ -65,6 +65,8 @@ return [ 'await' => 'Awaiting payment', ], ], + + 'name_or_description_required' => 'Your invoice must show at least one of the :name or :description.', ], 'slider' => [ diff --git a/resources/views/components/form/group/toggle.blade.php b/resources/views/components/form/group/toggle.blade.php index ee43b789c..33a2234a1 100644 --- a/resources/views/components/form/group/toggle.blade.php +++ b/resources/views/components/form/group/toggle.blade.php @@ -7,11 +7,13 @@ v-if="{{ $attributes['show'] }}" @endif > - {!! $label !!} + + {!! $label !!} +
@if (empty($attributes['disabled'])) -
diff --git a/resources/views/settings/invoice/edit.blade.php b/resources/views/settings/invoice/edit.blade.php index 028ef7d37..ba867fda5 100644 --- a/resources/views/settings/invoice/edit.blade.php +++ b/resources/views/settings/invoice/edit.blade.php @@ -132,7 +132,7 @@
- +
@@ -149,6 +149,7 @@ +