Есть две формы с разными кнопками, при нажатии на одной форме - оставлять логирование, при другой - отменить. Думаю добавить в if условие:
X++:
checkLog = this.name() != classStr(, );
Но так не получается.
X++:
if (salesParameters::find().LogCustPackingSlipPrinting)
{
SalesDeliveryProcessLog::createLogFromSalesTable(_salesTable,
this.InRouteType(
SalesDeliveryGoodsInRouteType::Print)
,CancelReasonType::Empty
,RolloutId
,salesLineRemainPrePostMap
,_BusinessUnit);
}