当前位置: 首页>>代码示例>>C#>>正文


C# Trade.setDelivery方法代码示例

本文整理汇总了C#中Trade.setDelivery方法的典型用法代码示例。如果您正苦于以下问题:C# Trade.setDelivery方法的具体用法?C# Trade.setDelivery怎么用?C# Trade.setDelivery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Trade的用法示例。


在下文中一共展示了Trade.setDelivery方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: createInvoice

		public static Invoice createInvoice ()
		{

			ZfDate today = new ZfDateDay ();
			ZfDate nextMonth = new ZfDateMonth (DateUtils.addMonths (today, 1));

			Invoice invoice = new Invoice (ConformanceLevel.BASIC);    // <1>
			invoice.setHeader(new Header()
				.setInvoiceNumber("20131122-42")
				.setCode(DocumentCode._380)
				.setIssued(today)
				.addNote(new Note("MFG"))
				.setName ("Rechnung"));

			Trade trade = new Trade ();
			trade.setAgreement (new Agreement ()    // <2>
				.setSeller (new TradeParty ()
					.setName ("Seller Inc.")
					.setAddress (new Address ("80331", "Marienplatz 1", "München", Country.DE))
					.addTaxRegistrations (new TaxRegistration ("DE122...", Reference.FC)))
				.setBuyer (new TradeParty ()
					.setName ("Buyer Inc.")
					.setAddress (new Address ("50667", "Domkloster 4", "Köln", Country.DE))
					.addTaxRegistrations (new TaxRegistration ("DE123...", Reference.FC))));

			trade.setDelivery (new Delivery (nextMonth));

			trade.setSettlement (new Settlement ()
				.setPaymentReference ("20131122-42")
				.setCurrency (Currency.EUR)
				.addPaymentMeans (new PaymentMeans ()
					.setPayeeAccount (new CreditorFinancialAccount ("DE01234.."))
					.setPayeeInstitution (new FinancialInstitution ("GENO...")))
				.setMonetarySummation (new MonetarySummation ()
					.setLineTotal (new Amount (100, Currency.EUR))
					.setChargeTotal (new Amount (0, Currency.EUR))
					.setAllowanceTotal (new Amount (0, Currency.EUR))
					.setTaxBasisTotal (new Amount (100, Currency.EUR))
					.setTaxTotal (new Amount (19, Currency.EUR))               
					.setGrandTotal (new Amount (119, Currency.EUR))));

			trade.addItem (new Item ()
				.setProduct (new Product ().setName ("Saddle"))
				.setDelivery (new SpecifiedDelivery (new Quantity (1, UnitOfMeasurement.UNIT))));
			invoice.setTrade (trade);

			return invoice;
		}
开发者ID:Politicon,项目名称:ZUGFeRD.NET-Example,代码行数:48,代码来源:NetExampleInvoice.cs


注:本文中的Trade.setDelivery方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。