aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/QTY.hs
blob: 9d8027ba9c70c8ccc9975b039104a2841596a6a5 (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
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D96A.Segments.QTY
  ( -- * Definition
    segmentQTY
    -- * Dependencies
  , compositeC186
  ) where

import           Text.Edifact.D96A.Composites (compositeC186)

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

-- | Derived from this specification:
--
-- >       QTY    QUANTITY
-- >
-- >       Function: To specify a pertinent quantity.
-- >
-- > 010   C186  QUANTITY DETAILS                               M
-- >       6063   Quantity qualifier                            M  an..3
-- >       6060   Quantity                                      M  n..15
-- >       6411   Measure unit qualifier                        C  an..3
--
-- Dependencies: 'compositeC186'.
segmentQTY :: Parser Value
segmentQTY =
  segment "QTY"
    [ "010" .@ mandatory compositeC186
    ]