private void cmdPayment_Click(object sender, RoutedEventArgs e)
        {
            WinAddEditPayment w = new WinAddEditPayment(vw.CashReceiptAmt, vw, dt == AccountDocumentType.AcctDocMiscRevenue);

            w.ShowDialog();

            if (w.IsOK)
            {
                vw.CalculateReceiveAndChange();
                vw.IsModified = true;
            }
        }
        private void cmdPayment_Click(object sender, RoutedEventArgs e)
        {
            WinAddEditPayment w = new WinAddEditPayment(vw.CashReceiptAmt, vw, false);

            w.ShowDialog();

            if (w.IsOK)
            {
                vw.CalculateReceiveAndChange();
                vw.IsModified = true;
            }
        }