Ver a proveniência

Merge pull request #1380 from saurabh6790/hr

[enhancement] added year_start and year_end
version-14
Rushabh Mehta há 9 anos
ascendente
cometimento
d2bdd6cf54
1 ficheiros alterados com 9 adições e 1 eliminações
  1. +9
    -1
      frappe/public/js/frappe/misc/datetime.js

+ 9
- 1
frappe/public/js/frappe/misc/datetime.js Ver ficheiro

@@ -79,7 +79,15 @@ $.extend(frappe.datetime, {
month_end: function() { month_end: function() {
return moment().endOf("month").format(); return moment().endOf("month").format();
}, },

year_start: function(){
return moment().startOf("year").format();
},
year_end: function(){
return moment().endOf("year").format();
},
get_user_fmt: function() { get_user_fmt: function() {
return sys_defaults.date_format || "yyyy-mm-dd"; return sys_defaults.date_format || "yyyy-mm-dd";
}, },


Carregando…
Cancelar
Guardar