Exemple #1
0
 private void LoadData(Creditnote obj)
 {
     vId = obj.Creditnote_id;
     txt_order_id.Text     = obj.Order_id;
     txt_invoice_no.Text   = obj.Creditnote_no.ToString();
     txt_invoice_date.Text = obj.Creditnote_date;
     txt_party_id.Text     = obj.Party_id;
     txt_taxtype_id.Text   = obj.Taxtype_id;
     SetTaxtype();
     txt_salestype_id.Text = obj.Salestype_id;
     txt_total_qty.Text    = obj.Total_qty.ToString();
     //txt_total_taxable_amount.Text = obj.Total_taxable_amount;
     txt_gsttotal.Text   = obj.Gsttotal.ToString();
     txt_ledger_id.Text  = CLedger_exten.GetName_Id(obj.Ledger_id);
     txt_additional.Text = obj.Additional.ToString();
     txt_grandtotal.Text = obj.Grandtotal.ToString();
     txt_balance.Text    = CCreditnote_exten.GetBalance(CParty_exten.GetId_Name(txt_party_id.Text)).ToString();
     txt_notes.Text      = obj.Notes;
     Core.Stative        = obj.Active_id;
     Setactives();
 }
Exemple #2
0
 private void Txt_party_id_TextChanged(object sender, EventArgs e)
 {
     txt_balance.Text = CCreditnote_exten.GetBalance(CParty_exten.GetId_Name(txt_party_id.Text)).ToString();
 }