예제 #1
0
        protected override void BaseSetup(Setup setup)
        {
            var vatRate0  = new VatRates(this.Session).Zero;
            var vatRate21 = new VatRates(this.Session).TwentyOne;

            var dutchLocale = new Locales(this.Session).DutchNetherlands;

            var merge         = this.Cache.Merger().Action();
            var localisedName = new LocalisedTextAccessor(this.Meta.LocalisedNames);

            merge(PrivatePersonId, v =>
            {
                v.Name = "Private Person";
                localisedName.Set(v, dutchLocale, "particulier");
                v.VatRate  = vatRate21;
                v.IsActive = true;
            });

            merge(AssessableId, v =>
            {
                v.Name = "VAT Assessable 21%";
                localisedName.Set(v, dutchLocale, "BTW-plichtig 21%");
                v.VatRate  = vatRate21;
                v.IsActive = true;
            });

            merge(ExportId, v =>
            {
                v.Name = "Export";
                localisedName.Set(v, dutchLocale, "Export");
                v.VatRate  = vatRate0;
                v.IsActive = true;
            });

            merge(IntraCommunautairId, v =>
            {
                v.Name = "Intracommunautair";
                localisedName.Set(v, dutchLocale, "Intracommunautair");
                v.VatRate   = vatRate0;
                v.VatClause = new VatClauses(this.Session).Intracommunautair;
                v.IsActive  = true;
            });

            merge(ServiceB2BId, v =>
            {
                v.Name = "Service B2B: Not VAT assessable";
                localisedName.Set(v, dutchLocale, "Service B2B: Niet BTW-plichtig");
                v.VatRate   = vatRate0;
                v.VatClause = new VatClauses(this.Session).ServiceB2B;
                v.IsActive  = true;
            });

            merge(ExemptId, v =>
            {
                v.Name = "Exempt";
                localisedName.Set(v, dutchLocale, "Vrijgesteld");
                v.VatRate  = vatRate0;
                v.IsActive = true;
            });
        }
예제 #2
0
        protected override void AppsSetup(Setup setup)
        {
            base.AppsSetup(setup);

            var vatRate0  = new VatRates(this.Session).FindBy(M.VatRate.Rate, 0);
            var vatRate21 = new VatRates(this.Session).FindBy(M.VatRate.Rate, 21);

            var dutchLocale = new Locales(this.Session).DutchNetherlands;

            new VatRegimeBuilder(this.Session)
            .WithName("Co-Contractor")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("Medecontractant").WithLocale(dutchLocale).Build())
            .WithVatRate(vatRate0)
            .WithUniqueId(CoContractorId)
            .WithIsActive(true)
            .Build();

            new VatRegimeBuilder(this.Session)
            .WithName("Private Person")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("particulier").WithLocale(dutchLocale).Build())
            .WithVatRate(vatRate0)
            .WithUniqueId(PrivatePersonId)
            .WithIsActive(true)
            .Build();

            new VatRegimeBuilder(this.Session)
            .WithName("VAT Assessable 21%")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("BTW-plichtig 21%").WithLocale(dutchLocale).Build())
            .WithVatRate(vatRate21)
            .WithUniqueId(AssessableId)
            .WithIsActive(true)
            .Build();

            new VatRegimeBuilder(this.Session)
            .WithName("Export")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("Export").WithLocale(dutchLocale).Build())
            .WithVatRate(vatRate0)
            .WithUniqueId(ExportId)
            .WithIsActive(true)
            .Build();

            new VatRegimeBuilder(this.Session)
            .WithName("Intracommunautair")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("Intracommunautair").WithLocale(dutchLocale).Build())
            .WithVatRate(vatRate0)
            .WithUniqueId(IntraCommunautairId)
            .WithIsActive(true)
            .Build();

            new VatRegimeBuilder(this.Session)
            .WithName("Not VAT assessable")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("Niet BTW-plichtig").WithLocale(dutchLocale).Build())
            .WithVatRate(vatRate0)
            .WithUniqueId(NotAssessableId)
            .WithIsActive(true)
            .Build();

            new VatRegimeBuilder(this.Session)
            .WithName("Exempt")
            .WithLocalisedName(new LocalisedTextBuilder(this.Session).WithText("Vrijgesteld").WithLocale(dutchLocale).Build())
            .WithUniqueId(ExemptId)
            .WithVatRate(vatRate0)
            .WithIsActive(true)
            .Build();
        }