]>
Commit | Line | Data |
---|---|---|
a9d77a20 FM |
1 | {-# LANGUAGE OverloadedStrings #-} |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D01B.Segments.PRI | |
7 | ( -- * Definition | |
8 | segmentPRI | |
9 | -- * Dependencies | |
10 | , compositeC509 | |
11 | , simple5213 | |
12 | ) where | |
13 | ||
14 | import Text.Edifact.D01B.Composites (compositeC509) | |
15 | import Text.Edifact.D01B.Simples (simple5213) | |
16 | ||
17 | import Text.Edifact.Parsing | |
18 | import Text.Edifact.Types (Value) | |
19 | ||
20 | -- | Derived from this specification: | |
21 | -- | |
22 | -- > PRI PRICE DETAILS | |
23 | -- > | |
24 | -- > Function: To specify price information. | |
25 | -- > | |
26 | -- > 010 C509 PRICE INFORMATION C 1 | |
27 | -- > 5125 Price code qualifier M an..3 | |
28 | -- > 5118 Price amount C n..15 | |
29 | -- > 5375 Price type code C an..3 | |
30 | -- > 5387 Price specification code C an..3 | |
31 | -- > 5284 Unit price basis value C n..9 | |
32 | -- > 6411 Measurement unit code C an..3 | |
33 | -- > | |
34 | -- > 020 5213 SUB-LINE ITEM PRICE CHANGE OPERATION CODE C 1 an..3 | |
35 | -- | |
36 | -- Dependencies: 'compositeC509', 'simple5213'. | |
37 | segmentPRI :: Parser Value | |
38 | segmentPRI = | |
39 | segment "PRI" | |
40 | [ "010" .@ optional compositeC509 | |
41 | , "020" .@ optional simple5213 | |
42 | ] |