Exemplo n.º 1
0
 private void dtpInvoiceDate_ValueChanged(object sender, EventArgs e)
 {
     if (invoiceData.Id == 0)
     {
         txtInvoiceNo.Text = InvoiceImplementation.GenerateInvoiceNo(dtpInvoiceDate.Value.GetFinancialYear());
     }
 }
Exemplo n.º 2
0
        private void frmSales_New_Load(object sender, EventArgs e)
        {
            setAutoSuggestControl();

            if (opertationType == OperationType.New)
            {
                txtInvoiceNo.Text = InvoiceImplementation.GenerateInvoiceNo(dtpInvoiceDate.Value.GetFinancialYear());
            }
            else
            {
                LoadOldData();
            }
        }