]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D96A/Segments/QVR.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D96A / Segments / QVR.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D96A.Segments.QVR
7 ( -- * Definition
8 segmentQVR
9 -- * Dependencies
10 , compositeC279
11 , compositeC960
12 , simple4221
13 ) where
14
15 import Text.Edifact.D96A.Composites (compositeC279, compositeC960)
16 import Text.Edifact.D96A.Simples (simple4221)
17
18 import Text.Edifact.Parsing
19 import Text.Edifact.Types (Value)
20
21 -- | Derived from this specification:
22 --
23 -- > QVR QUANTITY VARIANCES
24 -- >
25 -- > Function: To specify item details relating to quantity
26 -- > variances.
27 -- >
28 -- > Note: This segment replaces segment QVA (which has been
29 -- > deleted in this directory).
30 -- >
31 -- > 010 C279 QUANTITY DIFFERENCE INFORMATION C
32 -- > 6064 Quantity difference M n..15
33 -- > 6063 Quantity qualifier C an..3
34 -- >
35 -- > 020 4221 DISCREPANCY, CODED C an..3
36 -- >
37 -- > 030 C960 REASON FOR CHANGE C
38 -- > 4295 Change reason, coded C an..3
39 -- > 1131 Code list qualifier C an..3
40 -- > 3055 Code list responsible agency, coded C an..3
41 -- > 4294 Change reason C an..35
42 --
43 -- Dependencies: 'compositeC279', 'compositeC960', 'simple4221'.
44 segmentQVR :: Parser Value
45 segmentQVR =
46 segment "QVR"
47 [ "010" .@ optional compositeC279
48 , "020" .@ optional simple4221
49 , "030" .@ optional compositeC960
50 ]