In Purchase order there is a generate confirmation which brings up a form, and there is a Confirm button under the Action group which just confirm and doesn't bring up the PurchEditLines form.
SalesOrder doesn't have this feature. So I have created a confirmation that doesn't bring up the SalesEditLines form. However, when I run this confirm first and then the generate confirmation, I have to clear my usage data before the Generate confirmation brings up the SalesEditLines form again.
I can call the below logic, but it clears all usage data for the current user:
SysLastValue lastValue;
userId userId = curUserId();
ttsbegin;
delete_from lastValue
where lastValue.UserId == userId;
ttscommit;
I don't see the "SysLastValue" table in the AOT in Visual Studio to see if it has other fields to use in the criteria.
Purchase Order must do it somewhere because I can flip between the action confirm and the Generate Confirmation with Generate Confirmation always showing the form. I cannot see where it is doing it though because it also runs purchformLetter.forceSaleLast(), same as SalesFormLetter.
Does anyone know what I'm missing? Thanks.