private void btnEdit_Click(object sender, EventArgs e) { //Get order CustomerOrderTransaction cot = SalesOrderActions.GetCustomerOrder(this.SelectedSalesOrderId, this.SelectedOrderType, LSRetailPosis.Transaction.CustomerOrderMode.Edit); SalesOrderActions.ShowOrderDetails(cot, OrderDetailsSelection.ViewDetails); SetSelectedOrderAndClose(cot); }
private void btnReturn_Click(object sender, EventArgs e) { //Get the order from the grid CustomerOrderTransaction cot = SalesOrderActions.GetCustomerOrder(this.SelectedSalesOrderId, this.SelectedOrderType, LSRetailPosis.Transaction.CustomerOrderMode.Edit); //Now get an invoice from the order cot = SalesOrderActions.ReturnOrderInvoices(cot); SetSelectedOrderAndClose(cot); }
private void btnPickUp_Click(object sender, EventArgs e) { //Get order //set Mode = Pickup CustomerOrderTransaction cot = SalesOrderActions.GetCustomerOrder(this.SelectedSalesOrderId, this.SelectedOrderType, LSRetailPosis.Transaction.CustomerOrderMode.Pickup); SalesOrderActions.ShowOrderDetails(cot, OrderDetailsSelection.PickupOrder); SetSelectedOrderAndClose(cot); }
private void btnCancelOrder_Click(object sender, EventArgs e) { //Get order //set Mode = Cancel CustomerOrderTransaction cot = SalesOrderActions.GetCustomerOrder(this.SelectedSalesOrderId, this.SelectedOrderType, LSRetailPosis.Transaction.CustomerOrderMode.Cancel); if (cot.OrderStatus == SalesStatus.Processing) { //Order cannot be cancelled at this time from POS SalesOrder.InternalApplication.Services.Dialog.ShowMessage(56237, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } SalesOrderActions.ShowOrderDetails(cot, OrderDetailsSelection.CancelOrder); SetSelectedOrderAndClose(cot); }