public void pre_paid()
    {
        int i, count = 1;
        get_date();
        if(!Paid_MaSP.isEmpty() && Money_count_Items != 0)
        {
            normal_mode(true);
            ComboBox_history.setEnabled(false);
            Vector Final_paid_SelectSP = new Vector<>();
            for( i =0; i < Paid_MaSP.size(); i++)
            {
                Final_paid_SelectSP.add(bang_HoaDon.getValueAt(i, 7));
            }
            clear_table(dm_hoa_don);
            clear_table(dm_info_SP);

            for( i = 0; i < Paid_MaSP.size(); i++)
            {
                System.out.println(i + "--" + Final_paid_SelectSP.get(i));
                Vector data_row = new Vector();
                data_row.add(Paid_MaSP.get(i));
                data_row.add(Paid_TenSP.get(i));
                data_row.add(Paid_GiaSSP.get(i));
                data_row.add(Paid_GiaLSP.get(i));
                data_row.add(Paid_SoLuongSP.get(i));
                if((boolean)Final_paid_SelectSP.get(i)) //add row to pay table
                {
                    data_row.add(0,count++);
                    data_row.add(Paid_TongGiaSP.get(i));
                    data_row.add(Boolean.TRUE);
                    dm_hoa_don.addRow(data_row);
                }
                else    //add row to info table
                {
                    data_row.add(Boolean.TRUE);
                    New_MaSP.add(Paid_MaSP.get(i));
                    remove_element_paylist(i);
                    Final_paid_SelectSP.removeElementAt(i);
                    i--;
                    dm_info_SP.addRow(data_row);
                }
                display_text_paylist();
                dm_hoa_don.fireTableDataChanged();
            }
            add_Paid_row();
        }
        else
        {
            thongbao_text("Không có sản phẩm để thanh toán!", Color.BLUE);
        }
        
        field_price_other.setText("0.0");
        field_return_money.setText("0.0");
        barCode_grabFocus();
    }