public Modul_Penjualan_PembayaranPiutang(Modul_Penjualan_DaftarPiutang daftarPiutang, DataGridViewRow dgvRow)
        {
            /*kodesupplier
            namasupplier
            faktur
            tanggal faktur
            saldo hutang
            */

            InitializeComponent();
            this.daftarPiutang = daftarPiutang;
            this.dgvRow = dgvRow;
            fakturTxt.Text = dgvRow.Cells[2].Value.ToString();
            kodeCustomerTextBox.Text = dgvRow.Cells[0].Value.ToString();
            namaCustomerTextBox.Text = dgvRow.Cells[1].Value.ToString();
            pembayaranTxt.Text = "0" ;
            sisaPiutangTxt.Text = allfunc.digit_separated(dgvRow.Cells[3].Value.ToString());
            SqlDataReader sdr = dbo.get_single_data(new string[]{"NO_Bukti","TJT"},"FAKTUR",dgvRow.Cells[2].Value.ToString()+"' AND LOWER(posisiperkiraan) = 'debit","piutang");
            while(sdr.Read())
            {
                tJTDateTimePicker.Value = (DateTime)sdr["TJT"];
                noBuktiTxt.Text = (string)sdr["NO_Bukti"];
            }
            DbObject db1 = new DbObject();
            SqlDataReader sdr1 = db1.get_single_data(new string[] { "JumlahPenjualan" }, "nobon", fakturTxt.Text, "jual");
            while (sdr1.Read())
            {
                nominalTextBox.Text = allfunc.digit_separated(Convert.ToString((double)sdr1["JumlahPenjualan"]));
            }
            if(sisaPiutangTxt.Text.CompareTo("0")==0)
            {
                bayarBtn.Enabled = false;
            }
        }
 private void toolStripButton10_Click(object sender, EventArgs e)
 {
     Modul_Penjualan_DaftarPiutang bayarPiutang = new Modul_Penjualan_DaftarPiutang(this);
     bayarPiutang.Show();
     disable_Main_Form();
 }