Changes for page Invoice Service

Last modified by Fredrik Köhler on 2018/12/07 12:59
From version 10.1
edited by Tore Aasebo
on 2018/02/20 14:21
To version 11.1
edited by Tore Aasebo
on 2018/02/20 16:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -202,6 +202,196 @@
202 202  
203 203  == Step 6 Invoices ==
204 204  
205 +{{tabs idsToLabels="Step6_Description=Description, Step6_Example=Example"/}}
206 +
207 +(% id="Step6_Description" %)
208 +(((
209 +In order to define the CustomerInfo per customer you need to do add the following child elements:
210 +Add {{code}}Name{{/code}}, {{code}}RegNo{{/code}}, {{code}}DistributionAddressInfo{{/code}}, {{code}}PaymentInfo{{/code}} and {{code}}DistributionInfo{{/code}} to the {{code}}CustomerInfo{{/code}} parent.
211 +
212 +
213 +You can read more about this [[here>>File Reference]].
214 +)))
215 +
216 +(% id="Step6_Example" %)
217 +(((
218 +{{code language="xml"}}
219 +
220 +<︖xml version="1.0" encoding="utf-8"︖>
221 +<CUSIN Version="2.0" CreatedDateTime="2017-12-07T14:54:55" CompanyName="Test Company" CompanyNo="9999">
222 + <DistributionDate>
223 + <AsSoonAsPossible />
224 + </DistributionDate>
225 + <CUSINInfo>
226 + <CustomerNo>1</CustomerNo>
227 + <CustomerInfo>
228 + <Name>Firstname Lastname</Name>
229 + <RegNo CountryCode="SE">400513-0564</RegNo>
230 + <DistributionAddressInfo>
231 + <Addresses>
232 + <Address AddressType="LegalAddress">
233 + <Addressee>Firstname Lastname</Addressee>
234 + <StreetAddress>Street 2</StreetAddress>
235 + <ZipCode>12345</ZipCode>
236 + <City>Big city</City>
237 + <CoAddress>CoAdress</CoAddress>
238 + <CountryCode>SE</CountryCode>
239 + </Address>
240 + <Address AddressType="BillingAddress">
241 + <Addressee>Firstname Lastname</Addressee>
242 + <StreetAddress>Another street 10</StreetAddress>
243 + <ZipCode>53214</ZipCode>
244 + <City>Big city</City>
245 + <CoAddress>CoAdress</CoAddress>
246 + <CountryCode>SE</CountryCode>
247 + </Address>
248 + </Addresses>
249 + <E-MailAddress>test@test.com</E-MailAddress>
250 + </DistributionAddressInfo>
251 + <PaymentInfo>
252 + <Set>
253 + <PaymentRules>
254 + <PaymentRule Rule="UseBGAGSE">
255 + <Value>1</Value>
256 + </PaymentRule>
257 + </PaymentRules>
258 + </Set>
259 + </PaymentInfo>
260 + <DistributionInfo>
261 + <Set>
262 + <BillTypes>
263 + <BillType DistributionBillType="I_Invoice">
264 + <DistributionType>PostalService</DistributionType>
265 + </BillType>
266 + </BillTypes>
267 + </Set>
268 + </DistributionInfo>
269 + </CustomerInfo>
270 + <Invoices>
271 + <InvoiceWithDistribution>
272 + <InvoiceNo>3210</InvoiceNo>
273 + <InvoiceDate>2017-12-07</InvoiceDate>
274 + <Amount Currency="SEK">
275 + <AmountExclVat>1000.00</AmountExclVat>
276 + <VatAmount>250.00</VatAmount>
277 + </Amount>
278 + <DistributionInfo>
279 + <InvoicePrintInfo>
280 + <InvoicePrintBlocks>
281 + <StandardPrintBlock>
282 + <BasePrintBlock>
283 + <SubOrderBlocks>
284 + <SubOrderBlock TableType="A7">
285 + <ColumnHeadLine>
286 + <Columns>
287 + <Column ColumnNo="1">
288 + <Text>Article</Text>
289 + </Column>
290 + <Column ColumnNo="2">
291 + <Text>Description</Text>
292 + </Column>
293 + <Column ColumnNo="3">
294 + <Text>Quantity</Text>
295 + </Column>
296 + <Column ColumnNo="4">
297 + <Text>Unit</Text>
298 + </Column>
299 + <Column ColumnNo="5">
300 + <Text>Unit Price</Text>
301 + </Column>
302 + <Column ColumnNo="6">
303 + <Text>Discount</Text>
304 + </Column>
305 + <Column ColumnNo="7">
306 + <Text>Amount</Text>
307 + </Column>
308 + </Columns>
309 + </ColumnHeadLine>
310 + <Rows>
311 + <Row>
312 + <Columns>
313 + <Column ColumnNo="1">
314 + <Text>231</Text>
315 + </Column>
316 + <Column ColumnNo="2">
317 + <Text>Monthly fee</Text>
318 + </Column>
319 + <Column ColumnNo="3">
320 + <Text>1.00</Text>
321 + </Column>
322 + <Column ColumnNo="4">
323 + <Text></Text>
324 + </Column>
325 + <Column ColumnNo="5">
326 + <Text>1000,00</Text>
327 + </Column>
328 + <Column ColumnNo="6">
329 + <Text></Text>
330 + </Column>
331 + <Column ColumnNo="7">
332 + <Text>1000,00</Text>
333 + </Column>
334 + </Columns>
335 + </Row>
336 + <Row>
337 + <Columns>
338 + <Column ColumnNo="1">
339 + <Text> </Text>
340 + </Column>
341 + </Columns>
342 + </Row>
343 + </Rows>
344 + </SubOrderBlock>
345 + <SubOrderBlock TableType="A3">
346 + <Rows>
347 + <Row>
348 + <Columns>
349 + <Column ColumnNo="2">
350 + <Text>Amount excl. VAT</Text>
351 + </Column>
352 + <Column ColumnNo="3">
353 + <Text>1000,00</Text>
354 + </Column>
355 + </Columns>
356 + </Row>
357 + <Row>
358 + <Columns>
359 + <Column ColumnNo="2">
360 + <Text>VAT</Text>
361 + </Column>
362 + <Column ColumnNo="3">
363 + <Text>250,00</Text>
364 + </Column>
365 + </Columns>
366 + </Row>
367 + <Row>
368 + <Columns>
369 + <Column ColumnNo="2">
370 + <Text>VAT 25%</Text>
371 + </Column>
372 + <Column ColumnNo="3">
373 + <Text>250,00 (1000,00)</Text>
374 + </Column>
375 + </Columns>
376 + </Row>
377 + </Rows>
378 + </SubOrderBlock>
379 + </SubOrderBlocks>
380 + </BasePrintBlock>
381 + </StandardPrintBlock>
382 + </InvoicePrintBlocks>
383 + </InvoicePrintInfo>
384 + </DistributionInfo>
385 + </InvoiceWithDistribution>
386 + </Invoices>
387 + </CUSINInfo>
388 +</CUSIN>
389 +
390 +{{/code}}
391 +)))
392 +
393 +
394 +
205 205  **Validation**
206 206  
207 207  The XML-file must be validated with the lastest XML Schema Definition (XSD).