private void dataInvoiceDataGridView_DoubleClick(object sender, EventArgs e)
        {
            if (dataInvoiceDataGridView.Rows.Count <= 0)
            {
                return;
            }

            int             rowSelectedIndex = dataInvoiceDataGridView.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = dataInvoiceDataGridView.Rows[rowSelectedIndex];

            if (selectedRow.Cells["STATUS BAYAR"].Value.ToString() == "LUNAS" && originModuleID == globalConstants.PEMBAYARAN_PIUTANG)
            {
                return;
            }

            selectedSO = selectedRow.Cells["NO INVOICE"].Value.ToString();

            switch (originModuleID)
            {
            case globalConstants.PEMBAYARAN_PIUTANG:
                pembayaranPiutangForm pembayaranForm = new pembayaranPiutangForm(selectedSO);
                pembayaranForm.ShowDialog(this);
                break;

            case globalConstants.RETUR_PENJUALAN:
                dataReturPenjualanForm displayedForm = new dataReturPenjualanForm(originModuleID, selectedSO);
                displayedForm.ShowDialog(this);
                break;
            }
        }
        private void dataPelangganDataGridView_DoubleClick(object sender, EventArgs e)
        {
            if (dataPelangganDataGridView.Rows.Count <= 0)
            {
                return;
            }

            int selectedrowindex = dataPelangganDataGridView.SelectedCells[0].RowIndex;

            DataGridViewRow selectedRow = dataPelangganDataGridView.Rows[selectedrowindex];

            selectedCustomerID = Convert.ToInt32(selectedRow.Cells["CUSTOMER_ID"].Value);

            if (originModuleID == globalConstants.CASHIER_MODULE)
            {
                parentForm.setCustomerID(selectedCustomerID);
                this.Close();
            }
            else if (originModuleID == globalConstants.RETUR_PENJUALAN_STOCK_ADJUSTMENT)
            {
                dataReturPenjualanForm displayedReturForm = new dataReturPenjualanForm(originModuleID, "", selectedCustomerID);
                displayedReturForm.ShowDialog(this);
            }
            else if (originModuleID == globalConstants.PEMBAYARAN_PIUTANG)
            {
                pembayaranLumpSumForm pembayaranForm = new pembayaranLumpSumForm(originModuleID, selectedCustomerID);
                pembayaranForm.ShowDialog(this);
            }
            else
            {
                dataPelangganDetailForm displayedForm = new dataPelangganDetailForm(globalConstants.EDIT_CUSTOMER, selectedCustomerID);
                displayedForm.ShowDialog(this);
            }
        }
        private void unknownCustomerButton_Click(object sender, EventArgs e)
        {
            dataReturPenjualanForm displayedReturForm = new dataReturPenjualanForm(originModuleID, "", 0);

            displayedReturForm.ShowDialog(this);
        }