I think the reason is because the ‘ConvertToProject’ action in PMQuoteMaint manually sets those values:
public PXAction<PMQuote> convertToProject;
[PXUIField(DisplayName = "Convert to Project", MapEnableRights = PXCacheRights.Select)]
[PXButton(Category = Messages.Processing, DisplayOnMainToolbar = true, IsLockedOnToolbar = true)]
public IEnumerable ConvertToProject(PXAdapter adapter)
{
List<PMQuote> list = new List<PMQuote>(adapter.Get().Cast<PMQuote>());
this.Save.Press();
if (ConvertQuoteInfo.View.Answer == WebDialogResult.None)
{
ConvertQuoteInfo.Cache.Clear();
var settings = ConvertQuoteInfo.Cache.Insert() as ConvertToProjectFilter;
settings.CopyNotes = false;
settings.CopyFiles = false;
settings.MoveActivities = false;
settings.TaskCD = GetDefaultTaskCD();
}
bool failed = false;
foreach (PMQuote quote in list)
{
if (!ValidateQuoteBeforeConvertToProject(quote))
failed = true;
}
if (failed)
return list;
if (ConvertQuoteInfo.AskExt() != WebDialogResult.Yes)
return list;
}
Edit:
I’m not sure this is true after all. It looks like this would be happening only in the case of no dialog result.
@Chris Hackett I really need to be able to delete these posts 🤦🏻♂️
Edit again:
I think this is correct. The first section seems to be resetting the values to default for some reason, although I can’t explain why that would be needed. Seems unnecessary.
The actually dialog call is further down.
I’m afraid I don’t have any good methods to change this. Seems like you’d have to replace the whole action and I’m not going to recommend that.