I am using the BO to try and void an order and specific lines of the order. I have been able to cancel the order and LIne 1 only. How do I tell it which line I want to void as well?
private void CallSalesOrdHedDtlAdapterGetByIDMethod()
{
try
{
var orderNum = (int) edvGS_Order_Detail_DataView.dataView[edvGS_Order_Detail_DataView.Row]["OrderDtl_OrderNum"];
var orderLine = (int) edvGS_Order_Detail_DataView.dataView[edvGS_Order_Detail_DataView.Row]["OrderDtl_OrderLine"];
SalesOrdHedDtlAdapter adapterSalesOrdHedDtl = new SalesOrdHedDtlAdapter(this.oTrans);
adapterSalesOrdHedDtl.BOConnect();
adapterSalesOrdHedDtl.GetByID(orderNum);
adapterSalesOrdHedDtl.SalesOrdHedDtlData.OrderDtl[0].VoidLine = true;
adapterSalesOrdHedDtl.SalesOrdHedDtlData.OrderDtl[0].RowMod="U";
// Cleanup Adapter Reference
adapterSalesOrdHedDtl.Dispose();
} catch (System.Exception ex)
{
ExceptionBox.Show(ex);
}
}
}