mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +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",
|
||||
fieldtype: "Select",
|
||||
options: [
|
||||
"dd/mm/yyyy",
|
||||
"mm/dd/yyyy",
|
||||
"dd-mm-yyyy",
|
||||
"mm-dd-yyyy",
|
||||
"yyyy-mm-dd"
|
||||
"dd/MM/yyyy",
|
||||
"MM/dd/yyyy",
|
||||
"dd-MM-yyyy",
|
||||
"MM-dd-yyyy",
|
||||
"yyyy-MM-dd"
|
||||
],
|
||||
default: "yyyy-mm-dd",
|
||||
default: "yyyy-MM-dd",
|
||||
required: 1
|
||||
}
|
||||
]
|
||||
|
@ -6,8 +6,10 @@
|
||||
>
|
||||
<label class="custom-control-label" :for="id"></label>
|
||||
</div>
|
||||
<div @click="$emit('clickItem')">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
@ -18,7 +18,7 @@ module.exports = {
|
||||
} else if (field.fieldtype === 'Date') {
|
||||
let dateFormat;
|
||||
if (!frappe.SystemSettings) {
|
||||
dateFormat = 'yyyy-mm-dd';
|
||||
dateFormat = 'yyyy-MM-dd';
|
||||
} else {
|
||||
dateFormat = frappe.SystemSettings.dateFormat;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user