public int m_TestMetot2()
        {
            StockTrackingDataContext = new L_StockTrackingERPDataContext();
            var LastCurrentReceiptRecord = StockTrackingDataContext.p_CurrentAccountingNo(5, "M");

            return(LastCurrentReceiptRecord);
        }
        public void m_CurrentReceiptAdd(DateTime vrCurrentReceiptDate, string vrCurrentReceiptType, int vrCurrentCustomerID, int vrDocumentNo, DateTime vrDocumentDate, double vrCurrentTotalAmount, string vrReceiptExchange, double vrCurrentTLAmount, string vrExplanation, string vrApplicationCode, string vrReceivableDebit)
        {
            StockTrackingDataContext = new L_StockTrackingERPDataContext();
            CurrentReceipt currentReceipt = new CurrentReceipt();

            currentReceipt.ReceiptDate     = vrCurrentReceiptDate;
            currentReceipt.ReceiptType     = vrCurrentReceiptType;
            currentReceipt.CustomerNo      = vrCurrentCustomerID;
            currentReceipt.DocumentNo      = vrDocumentNo;
            currentReceipt.DocumentDate    = vrDocumentDate;
            currentReceipt.TotalAmount     = decimal.Parse(vrCurrentTotalAmount.ToString());
            currentReceipt.ReceiptExchange = vrReceiptExchange;
            currentReceipt.TLAmount        = decimal.Parse(vrCurrentTLAmount.ToString());
            currentReceipt.Explanation     = vrExplanation;
            currentReceipt.ApplicationCode = vrApplicationCode;
            currentReceipt.ReceivableDebit = vrReceivableDebit;
            StockTrackingDataContext.CurrentReceipts.InsertOnSubmit(currentReceipt);
            StockTrackingDataContext.SubmitChanges();


            m_AccountingReceiptAdd(vrCurrentReceiptDate, vrCurrentReceiptType, vrDocumentNo, vrDocumentDate, vrCurrentTotalAmount, vrReceiptExchange, vrCurrentTLAmount, vrExplanation, vrApplicationCode, vrReceivableDebit);

            StockTrackingDataContext = new L_StockTrackingERPDataContext();
            var LastAccountingReceiptRecord = StockTrackingDataContext.p_CurrentAccountingNo(vrCurrentCustomerID, "M");

            vrLastAccountingReceiptRecord = LastAccountingReceiptRecord;


            StockTrackingDataContext = new L_StockTrackingERPDataContext();
            var LastCurrentReceiptRecord = StockTrackingDataContext.p_CurrentAccountingNo(vrCurrentCustomerID, "C");

            vrLastCurrentReceiptRecord = LastCurrentReceiptRecord;

            StockTrackingDataContext = new L_StockTrackingERPDataContext();
            var UpdateCurrentAccounting = StockTrackingDataContext.CurrentReceipts.Single(d_CurrentReceiptUpdate => d_CurrentReceiptUpdate.ReceiptNo == vrLastCurrentReceiptRecord);

            UpdateCurrentAccounting.AccountingReceipt = vrLastAccountingReceiptRecord;
            StockTrackingDataContext.SubmitChanges();
            MessageBox.Show("Cari Fiş Ekleme İşlemi Gerçekleştirildi.", "Cari Fiş Ekle", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }