Exemplo n.º 1
0
        private static bool UpdateTransaction(SALSalesReturnHeader sALSalesReturnHeader, SALSalesReturnLineCollection sALSalesReturnLineCollection, POS.DataLayer.SALSalesReturnHeader _sALSalesReturnHeader)
        {
            _sALSalesReturnHeader.IsVoid = false;
            _sALSalesReturnHeader.CreatedBy = GlobalVariables.CurrentUser.UserID;
            _sALSalesReturnHeader.CreateDate = DateTime.Now;
            _sALSalesReturnHeader.UpdatedBy = GlobalVariables.CurrentUser.UserID;
            _sALSalesReturnHeader.UpdateDate = DateTime.Now;
            _sALSalesReturnHeader.IsDeleted = false;
            _sALSalesReturnHeader.DeletedBy = null;
            _sALSalesReturnHeader.DeleteDate = null;
            _sALSalesReturnHeader.OriginalSalesHeadeID = sALSalesReturnHeader.OriginalSalesHeadeID;
            _sALSalesReturnHeader.ReturnDate = sALSalesReturnHeader.ReturnDate;
            _sALSalesReturnHeader.SlaesReturnHeaderID = sALSalesReturnHeader.SlaesReturnHeaderID;

            POS.DataLayer.SALSalesReturnLineCollection _sALSalesReturnLineCollection = new DataLayer.SALSalesReturnLineCollection();
            foreach (SALSalesReturnLine sALSalesReturnLine in sALSalesReturnLineCollection)
            {
                POS.DataLayer.SALSalesReturnLine _sALSalesReturnLine = new POS.DataLayer.SALSalesReturnLine();

                _sALSalesReturnLine.Qty = sALSalesReturnLine.Qty;
                _sALSalesReturnLine.BatchNumber = sALSalesReturnLine.BatchNumber;
                _sALSalesReturnLine.ExpiryDate = sALSalesReturnLine.ExpiryDate;
                _sALSalesReturnLine.OriginalSalesLineID = sALSalesReturnLine.OriginalSalesLineID;
                _sALSalesReturnLine.Reason = sALSalesReturnLine.Reason;

                _sALSalesReturnLineCollection.Add(_sALSalesReturnLine);
            }
            POS.DataLayer.SALSalesReturnLine sALSalesReturnLineObj = new DataLayer.SALSalesReturnLine();

            return sALSalesReturnLineObj.UpdateTransaction(_sALSalesReturnHeader, _sALSalesReturnLineCollection);
        }
Exemplo n.º 2
0
 public bool UpdateSALSalesOrder(SALSalesReturnHeader sALSalesReturnHeader, SALSalesReturnLineCollection sALSalesReturnLineCollection)
 {
     POS.DataLayer.SALSalesReturnHeader _sALSalesReturnHeader = new POS.DataLayer.SALSalesReturnHeader();
     _sALSalesReturnHeader.IsClosed = false;
     return UpdateTransaction(sALSalesReturnHeader, sALSalesReturnLineCollection, _sALSalesReturnHeader);
 }
Exemplo n.º 3
0
 public bool UpdateCloseSALSalesOrder(SALSalesReturnHeader sALSalesReturnHeader, SALSalesReturnLineCollection sALSalesReturnLineCollection)
 {
     POS.DataLayer.SALSalesReturnHeader _sALSalesReturnHeader = new POS.DataLayer.SALSalesReturnHeader();
     _sALSalesReturnHeader.IsClosed = true;
     return UpdateTransaction(sALSalesReturnHeader, sALSalesReturnLineCollection, _sALSalesReturnHeader);
 }
Exemplo n.º 4
0
 public int SaveCloseSALSalesReturnOrder(SALSalesReturnHeader sALSalesReturnHeader, SALSalesReturnLineCollection sALSalesReturnLineCollection)
 {
     POS.DataLayer.SALSalesReturnHeader _sALSalesReturnHeader = new POS.DataLayer.SALSalesReturnHeader();
     _sALSalesReturnHeader.IsClosed = true;
     return SaveTransaction(sALSalesReturnHeader, sALSalesReturnLineCollection, _sALSalesReturnHeader);
 }
Exemplo n.º 5
0
 public int SaveSALSalesReturnOrder(SALSalesReturnHeader sALSalesReturnHeader, SALSalesReturnLineCollection sALSalesReturnLineCollection)
 {
     POS.DataLayer.SALSalesReturnHeader _sALSalesReturnHeader = new POS.DataLayer.SALSalesReturnHeader();
     _sALSalesReturnHeader.IsClosed = false;
     return SaveTransaction(sALSalesReturnHeader, sALSalesReturnLineCollection, _sALSalesReturnHeader);
 }