2
0
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:
sahil28297 2018-09-20 18:09:21 +05:30 committed by Faris Ansari
parent 231b36a51b
commit e5a4464167
4 changed files with 13 additions and 11 deletions

View File

@ -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
}
]

View File

@ -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 {

View File

@ -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;
}