aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Simples/S5125.hs
blob: ee612b9ab62a666f5d06af80b23a9905dc94868d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{-# LANGUAGE OverloadedStrings #-}

---- Machine generated code.
---- Output of edi-parser-scaffolder

module Text.Edifact.D01B.Simples.S5125
  ( simple5125
  ) where

import           Text.Edifact.Parsing
import           Text.Edifact.Types   (Value)

-- | Derived from this specification:
--
-- >      5125  Price code qualifier                                    [C]
-- >
-- >      Desc: Code qualifying a price.
-- >
-- >      Repr: an..3
-- >
-- >      AAA   Calculation net
-- >               The price stated is the net price including allowances/
-- >               charges. Allowances/charges may be stated for
-- >               information only.
-- >
-- >      AAB   Calculation gross
-- >               The price stated is the gross price to which allowances/
-- >               charges must be applied.
-- >
-- >      AAC   Allowances and charges not included, tax included
-- >               The price does not include the allowances and charges,
-- >               but includes the taxes.
-- >
-- >      AAD   Average selling price
-- >               Average selling price of a product.
-- >
-- >      AAE   Information price, excluding allowances or charges,
-- >            including taxes
-- >               The price stated is for information purposes only and
-- >               excludes all allowances and charges. Taxes however are
-- >               included in the price.
-- >
-- >      AAF   Information price, excluding allowances or charges, and
-- >            taxes
-- >               The price stated is for information purposes only and
-- >               excludes all allowances, charges and taxes.
-- >
-- >      AAG   Additive unit price component
-- >               A code to indicate that the price described is an
-- >               additive component of the total price.
-- >
-- >      CAL   Calculation price
-- >               The price stated is the price for the calculation of the
-- >               line item amount.
-- >
-- >      INF   Information
-- >               The price is provided for information.
-- >
-- >      INV   Invoice price
-- >               Referenced price taken from an invoice.
simple5125 :: Parser Value
simple5125 = simple "5125" (alphaNumeric `upTo` 3)