added credit max in configuration

This commit is contained in:
Prashant Singh 2019-06-13 01:05:29 +05:30
parent 9a41904364
commit ec27ed4c8d
3 changed files with 25 additions and 4 deletions

View File

@ -65,13 +65,13 @@ return [
[
'name' => 'subscription',
'title' => 'admin::app.admin.system.newsletter-subscription',
'type' => 'boolean'
'type' => 'boolean',
]
],
], [
'key' => 'customer.settings.email',
'name' => 'admin::app.admin.system.email',
'sort' => 2,
'sort' => 3,
'fields' => [
[
'name' => 'verification',
@ -79,6 +79,24 @@ return [
'type' => 'boolean'
]
],
], [
'key' => 'customer.settings.credit-max',
'name' => 'admin::app.admin.system.credit-max',
'sort' => 4,
'fields' => [
[
'name' => 'Use Credit Max',
'title' => 'admin::app.admin.system.use-credit-max',
'type' => 'boolean',
'channel_based' => true
], [
'name' => 'Credit Max Value',
'title' => 'admin::app.admin.system.credit-max-value',
'type' => 'text',
'validation' => 'decimal',
'channel_based' => true
]
],
], [
'key' => 'general',
'name' => 'admin::app.admin.system.general',

View File

@ -997,7 +997,10 @@ return [
'weight-unit' => 'Weight Unit',
'design' => 'Design',
'admin-logo' => 'Admin Logo',
'logo-image' => 'Logo Image'
'logo-image' => 'Logo Image',
'credit-max' => 'Customer Credit Max',
'credit-max-value' => 'Credit Max Value',
'use-credit-max' => 'Use Credit Max'
]
]
];

View File

@ -353,7 +353,7 @@
<accordian :active="false" title="labels">
<div slot="body">
<div class="control-group" :class="[errors.has('label') ? 'has-error' : '']" v-if="dedicated_label">
<label for="label" class="required">Global Label</label>
<label for="label">Global Label</label>
<input type="text" class="control" name="label[global]" v-model="label.global" data-vv-as="&quot;label&quot;">