![]() |
#3 |
Участник
|
function calculate(){
if (Xrm.Page.getAttribute("data_nachalo").getValue() != null && Xrm.Page.getAttribute("chasi").getValue() != null){ var dd = Xrm.Page.getAttribute("data_nachalo").getValue(); dd.setDate(dd.getDate() + Math.ceil(Xrm.Page.getAttribute("chasi").getValue() * 2 / 8)); Xrm.Page.getAttribute("data_zavershenija").setValue(dd); }else{ Xrm.Page.getAttribute("data_zavershenija").setValue(null); } } |
|
|
|