Hello.
When I close a Quote as won and then select the "Close associated opportunity". The close opportunity dialog only gives me the options for closing the opportunity as lost, and the actual revenue is always 0. it should get the value from the quote and surely, the opportunity status should also be set as Won, not Lost. Is this a bug or am I doing something wrong here?
Checking the dlg_close.apx I find this row:
var oUrl = Mscrm.CrmUri.create("/sfa/opps/dlg_closeopp.aspx?pId=<%= Microsoft.Crm.CrmEncodeDecode.CrmJavaScriptEncodeNoQuotes(Microsoft.Crm.CrmEncodeDecode.CrmUrlEncode(_quoteId)) %>&pType=<%= Util.Quote.ToString(System.Globalization.CultureInfo.InvariantCulture) %>&won=false")
Now, as you see at the end won=false, will always be true since there are no checks performed in the code. If i simply change this to won=true, then the close opportunity dialog will show the opportunity as Won. Though, since this is always true I cant implement this since if I close the quote as lost, then the opportunity can't be Won.
And still, the actual revenue is always 0... I guess that the Quote status value is the oResult var so i could set up an if/else statement, however I have NO idea what value oResult will hold when status = won (I have tried a few...).
The environment is Dynamics CRM 2015 0.1. I might add that this is an installation that has been migrated from 2011, in case the aspx files are different...
i would greatly appreciate any suggestions on how to get these two issues sorted out (status not reflected in close opp and revenue value not forwarding).


Thanks,
Emil