-
Notifications
You must be signed in to change notification settings - Fork 0
/
purchase_order_detail.go
69 lines (59 loc) · 2.41 KB
/
purchase_order_detail.go
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
63
64
65
66
67
68
69
package cbl
import "encoding/xml"
type ListOfOrderDetail struct {
XMLName xml.Name `xml:"ListOfOrderDetail"`
OrderDetail []OrderDetail `xml:"OrderDetail"`
}
type OrderDetail struct {
XMLName xml.Name `xml:"OrderDetail"`
BaseItemDetail BaseItemDetail `xml:"BaseItemDetail"`
SpecialHandlingNote string `xml:"SpecialHandlingNote,omitempty"`
RequestedDeliveryDate string `xml:"RequestedDeliveryDate,omitempty"`
Tax *Tax `xml:"Tax"`
BuyerExpectedUnitPrice BuyerExpectedUnitPrice `xml:"BuyerExpectedUnitPrice"`
}
type BaseItemDetail struct {
XMLName xml.Name `xml:"BaseItemDetail"`
LineItemNum int `xml:"LineItemNum"`
SupplierPartNum SupplierPartNum `xml:"SupplierPartNum"`
CommodityCode string `xml:"CommodityCode"`
ItemDescription string `xml:"ItemDescription"`
Quantity Quantity `xml:"Quantity"`
FinalRecipient FinalRecipient `xml:"FinalRecipient"`
OffCatalogFlag bool `xml:"OffCatalogFlag"`
CostCenter string `xml:"CostCenter"`
CostType string `xml:"CostType"`
SpecialDeprecationFlag bool `xml:"SpecialDeprecationFlag"`
LowValueAssetFlag bool `xml:"LowValueAssetFlag"`
SpecialHandlingFlag bool `xml:"SpecialHandlingFlag"`
}
type SupplierPartNum struct {
XMLName xml.Name `xml:"SupplierPartNum"`
PartID string `xml:"PartID"`
}
type Quantity struct {
XMLName xml.Name `xml:"Quantity"`
Qty float64 `xml:"Qty"`
UnitOfMeasure string `xml:"UnitOfMeasure"`
}
type FinalRecipient struct {
XMLName xml.Name `xml:"FinalRecipient"`
NameAddress NameAddress `xml:"NameAddress"`
ReceivingContact ReceivingContact `xml:"ReceivingContact"`
}
type ReceivingContact struct {
XMLName xml.Name `xml:"ReceivingContact"`
ContactName string `xml:"ContactName"`
Telephone string `xml:"Telephone"`
Email string `xml:"Email"`
}
type Tax struct {
XMLName xml.Name `xml:"Tax"`
TaxPercent float64 `xml:"TaxPercent"`
TaxAmount float64 `xml:"TaxAmount"`
TaxableAmount float64 `xml:"TaxableAmount"`
}
type BuyerExpectedUnitPrice struct {
XMLName xml.Name `xml:"BuyerExpectedUnitPrice"`
UnitPrice float64 `xml:"UnitPrice"`
}