mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: add sublabel in loyalty program
This commit is contained in:
@@ -10,8 +10,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "collectionFactor",
|
"fieldname": "collectionFactor",
|
||||||
"label": "Collection Factor (=1 LP)",
|
"label": "Collection Factor",
|
||||||
"fieldtype": "Float"
|
"fieldtype": "Float",
|
||||||
|
"sub_label": "Sale 100→ 100 (1), 50 (0.5)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "minimumTotalSpent",
|
"fieldname": "minimumTotalSpent",
|
||||||
|
|||||||
@@ -43,7 +43,8 @@
|
|||||||
"label": "Conversion Factor",
|
"label": "Conversion Factor",
|
||||||
"fieldtype": "Float",
|
"fieldtype": "Float",
|
||||||
"default": 1,
|
"default": 1,
|
||||||
"required": true
|
"required": true,
|
||||||
|
"sub_label": "100 Points → 100 (Factor 1), 50 (Factor 0.5)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "expiryDuration",
|
"fieldname": "expiryDuration",
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export interface BaseField {
|
|||||||
tab?: string; // UI Facing config, for grouping by tabs
|
tab?: string; // UI Facing config, for grouping by tabs
|
||||||
abstract?: string; // Used to mark the location of a field in an Abstract schema
|
abstract?: string; // Used to mark the location of a field in an Abstract schema
|
||||||
isCustom?: boolean; // Whether the field is a custom field
|
isCustom?: boolean; // Whether the field is a custom field
|
||||||
|
sub_label?: string;
|
||||||
filters?: Record<string, string>;
|
filters?: Record<string, string>;
|
||||||
getOptions?: () => Promise<{ label: string; value: string }[]>;
|
getOptions?: () => Promise<{ label: string; value: string }[]>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,9 @@
|
|||||||
@input="(e) => !isReadOnly && $emit('input', e)"
|
@input="(e) => !isReadOnly && $emit('input', e)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="showLabel" :class="labelClasses">
|
||||||
|
{{ df?.sub_label }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<div
|
<div
|
||||||
v-for="df in tableFields"
|
v-for="df in tableFields"
|
||||||
:key="df.fieldname"
|
:key="df.fieldname"
|
||||||
class="items-center flex px-2 h-row-mid"
|
class="items-center px-2 h-row-mid"
|
||||||
:class="{
|
:class="{
|
||||||
'ms-auto': isNumeric(df),
|
'ms-auto': isNumeric(df),
|
||||||
}"
|
}"
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ df.label }}
|
{{ df.label }}
|
||||||
|
<p class="text-xs">{{ df.sub_label }}</p>
|
||||||
</div>
|
</div>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user