mirror of
https://github.com/frappe/books.git
synced 2024-09-20 11:29:00 +00:00
Changes in events, payment modal and date in registers (#92)
* changes in events, payment modal and date in registers * Remove window.datatable
This commit is contained in:
parent
231b36a51b
commit
e5a4464167
@ -11,13 +11,13 @@ module.exports = {
|
|||||||
label: "Date Format",
|
label: "Date Format",
|
||||||
fieldtype: "Select",
|
fieldtype: "Select",
|
||||||
options: [
|
options: [
|
||||||
"dd/mm/yyyy",
|
"dd/MM/yyyy",
|
||||||
"mm/dd/yyyy",
|
"MM/dd/yyyy",
|
||||||
"dd-mm-yyyy",
|
"dd-MM-yyyy",
|
||||||
"mm-dd-yyyy",
|
"MM-dd-yyyy",
|
||||||
"yyyy-mm-dd"
|
"yyyy-MM-dd"
|
||||||
],
|
],
|
||||||
default: "yyyy-mm-dd",
|
default: "yyyy-MM-dd",
|
||||||
required: 1
|
required: 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
>
|
>
|
||||||
<label class="custom-control-label" :for="id"></label>
|
<label class="custom-control-label" :for="id"></label>
|
||||||
</div>
|
</div>
|
||||||
<slot></slot>
|
<div @click="$emit('clickItem')">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -18,7 +18,7 @@ module.exports = {
|
|||||||
} else if (field.fieldtype === 'Date') {
|
} else if (field.fieldtype === 'Date') {
|
||||||
let dateFormat;
|
let dateFormat;
|
||||||
if (!frappe.SystemSettings) {
|
if (!frappe.SystemSettings) {
|
||||||
dateFormat = 'yyyy-mm-dd';
|
dateFormat = 'yyyy-MM-dd';
|
||||||
} else {
|
} else {
|
||||||
dateFormat = frappe.SystemSettings.dateFormat;
|
dateFormat = frappe.SystemSettings.dateFormat;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user