Ejemplo n.º 1
0
        /// <summary>
        /// Finishes the clearing through customs procedure.
        /// </summary>
        /// <param name="good">The good.</param>
        public void FinishClearingThroughCustoms(SADGood good)
        {
            Clearence2SadGoodID = good;
            SADDocumentType sadDocument = good.SADDocumentIndex;

            DocumentNo      = sadDocument.DocumentNumber;
            ReferenceNumber = sadDocument.ReferenceNumber;
            SPStatus        = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Clears through customs.
        /// </summary>
        /// <param name="entities">The entities.</param>
        /// <param name="trace">The trace action.</param>
        public void FinishClearingThroughCustoms(Entities entities, NamedTraceLogger.TraceAction trace)
        {
            trace("Entering Clearence.FinishClearingThroughCustoms", 47, TraceSeverity.Verbose);
            SADDocumentType sadDocument = Clearence2SadGoodID.SADDocumentIndex;

            DocumentNo      = sadDocument.DocumentNumber;
            ReferenceNumber = sadDocument.ReferenceNumber;
            SPStatus        = true;
            foreach (Disposal _disposal in this.Disposal(entities))
            {
                _disposal.FinishClearingThroughCustoms(entities, Clearence2SadGoodID, trace);
            }
            UpdateTitle(entities);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IPR" /> class.
 /// </summary>
 /// <param name="entities">The entities.</param>
 /// <param name="iprdata">The _iprdata.</param>
 /// <param name="clearence">The clearence.</param>
 /// <param name="declaration">The declaration.</param>
 public IPR(Entities entities, CWInterconnection.IPRAccountData iprdata, Clearence clearence, SADDocumentType declaration)
     : this()
 {
     Linq.Consent _consentLookup = GetAtIndex <Consent>(entities.Consent, iprdata.ConsentLookup);
     AccountClosed       = false;
     AccountBalance      = iprdata.NetMass;
     Archival            = false;
     Batch               = iprdata.BatchId;
     Cartons             = iprdata.CartonsMass;
     ClearenceIndex      = clearence;
     ClosingDate         = CAS.SharePoint.Extensions.SPMinimum;
     ConsentPeriod       = _consentLookup.ConsentPeriod;
     Currency            = declaration.Currency;
     CustomsDebtDate     = iprdata.CustomsDebtDate;
     DocumentNo          = clearence.DocumentNo;
     Duty                = iprdata.Duty;
     DutyName            = iprdata.DutyName;
     Grade               = iprdata.GradeName;
     GrossMass           = iprdata.GrossMass;
     InvoiceNo           = iprdata.Invoice;
     IPRDutyPerUnit      = iprdata.DutyPerUnit;
     IPRLibraryIndex     = null;
     IPR2ConsentTitle    = _consentLookup;
     IPR2PCNPCN          = GetAtIndex <PCNCode>(entities.PCNCode, iprdata.PCNTariffCodeLookup);
     IPRUnitPrice        = iprdata.UnitPrice;
     IPRVATPerUnit       = iprdata.VATPerUnit;
     this.IPR2JSOXIndex  = null;
     NetMass             = iprdata.NetMass;
     OGLValidTo          = iprdata.ValidToDate;
     ProductivityRateMax = _consentLookup.ProductivityRateMax;
     ProductivityRateMin = _consentLookup.ProductivityRateMin;
     SKU                 = iprdata.SKU;
     TobaccoName         = iprdata.TobaccoName;
     TobaccoNotAllocated = iprdata.NetMass;
     Title               = "-- creating -- ";
     Value               = iprdata.Value;
     VATName             = iprdata.VATName;
     VAT                 = iprdata.VAT;
     ValidFromDate       = _consentLookup.ValidFromDate;
     ValidToDate         = _consentLookup.ValidToDate;
     if (iprdata.CartonsMass > 0)
     {
         AddDisposal(entities, Convert.ToDecimal(iprdata.CartonsMass));
     }
 }