public static void DeleteDetail(RIN1_ClientCreditNoteDetail selectedtDetail)
        {
            lock (Extensions.Locker)
            {
                var db = ContextFactory.GetDBContext();

                db.RIN1_ClientCreditNoteDetail.Remove(selectedtDetail);
            }
        }
示例#2
0
 public OINM_Transaction(ORIN_ClientCreditNotes obj, RIN1_ClientCreditNoteDetail detail)
 {
     this.TransNum   = obj.DocEntry;
     this.Comments   = obj.Comments;
     this.TransType  = int.Parse(obj.ObjType);
     this.DocDate    = obj.DocDate;
     this.DocDueDate = obj.DocDueDate;
     this.Ref1       = "";
     this.Ref2       = "";
     this.Comments   = obj.Comments;
     this.JrnMemo    = "";
     this.ItemCode   = string.IsNullOrEmpty(detail.ItemCode) ? null: detail.ItemCode;
     this.Dscription = detail.Dscription;
     this.InQty      = detail.Quantity ?? 0;
     this.OutQty1    = 0;
     this.Price      = detail.Price;
     this.SerialNum  = "";
     this.WareHouse  = detail.WhsCode;
 }