Esempio n. 1
0
 private void dtpInvoiceDate_ValueChanged(object sender, EventArgs e)
 {
     if (invoiceData.Id == 0)
     {
         txtInvoiceNo.Text = InvoiceImplementation.GenerateInvoiceNo(dtpInvoiceDate.Value.GetFinancialYear());
     }
 }
Esempio 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();
            }
        }