efo_nelfo 1.6.2 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/lib/efo_nelfo/v40/dh.rb +64 -0
- data/lib/efo_nelfo/v40/dl.rb +38 -0
- data/lib/efo_nelfo/v40/dt.rb +12 -0
- data/lib/efo_nelfo/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8777c92a161eb0ef875faa69898385685ce1e718
|
4
|
+
data.tar.gz: 259e64becf90e2065d6fb4a75a32b29f34a482e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb40a65642af4bda5def075117b1ce46835b469d8b09f7e3ec6a8619427e026b5a95dea882b300111b662764c9c8a90079b2f682091f3065f9d1af32284789a0
|
7
|
+
data.tar.gz: a73cd60a7ec7bc67e0f7c245cb3369fb6dee937a232d9cd5301c850117991b5099ceca1b5484be6bfc670c70549ddd8aee667a2522b47dfc27286a046cb183e0
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# EfoNelfo
|
2
2
|
|
3
|
-
[![Codeship Status for rorkjop/efonelfo](https://codeship.com/projects/2f24e110-26db-0133-3264-3e76e843c90e/status?branch=master)](https://codeship.com/projects/97199)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/rorkjop/efonelfo/badges/gpa.svg)](https://codeclimate.com/github/rorkjop/efonelfo)
|
5
|
-
|
6
3
|
Gem for parsing and writing EfoNelfo documents.
|
7
4
|
|
8
5
|
Supported EfoNelfo versions:
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module EfoNelfo
|
2
|
+
module V40
|
3
|
+
class DH < EfoNelfo::PostType
|
4
|
+
include PostHeadType
|
5
|
+
|
6
|
+
# It's important to list the property in the same order as specified in the specs
|
7
|
+
property :seller_id, alias: :SelgersId, limit: 14, required: true
|
8
|
+
property :buyer_id, alias: :KjøpersId, limit: 14
|
9
|
+
property :production_date, alias: :ProdDato, limit: 8, required: true, type: :date
|
10
|
+
property :confirmation_number, alias: :BekreftelseNr, limit: 13, required: true
|
11
|
+
property :seller_order_number, alias: :SOrdNr, limit: 10
|
12
|
+
property :order_number, alias: :BestNr, limit: 10
|
13
|
+
property :customer_id, alias: :KundeNr, limit: 10, required: true
|
14
|
+
property :contract_type, alias: :AvtaleIDMrk, limit: 1
|
15
|
+
property :contract_id, alias: :AvtaleID, limit: 10
|
16
|
+
property :buyer_order_number, alias: :KOrdNr, limit: 10
|
17
|
+
property :buyer_customer_id, alias: :KundAvd, limit: 10
|
18
|
+
property :project_id, alias: :ProsjektNr, limit: 10
|
19
|
+
property :buyer_warehouse_location, alias: :KLagerMrk, limit: 1
|
20
|
+
property :buyer_warehouse, alias: :KLager, limit: 14
|
21
|
+
property :external_ref, alias: :EksternRef, limit: 10
|
22
|
+
property :buyer_ref, alias: :KjøpersRef, limit: 25
|
23
|
+
property :seller_ref, alias: :SelgersRef, limit: 25
|
24
|
+
property :label, alias: :Merket, limit: 25
|
25
|
+
property :transport_type, alias: :TransportMåte, limit: 25
|
26
|
+
property :transport_msg, alias: :Melding, limit: 25
|
27
|
+
property :delivery_date, alias: :LevDato, type: :date
|
28
|
+
property :origin, alias: :BestOpp, limit: 2
|
29
|
+
|
30
|
+
property :receiver_delivery_location, alias: :LAdrLok, limit: 14
|
31
|
+
property :receiver_name, alias: :LFirmaNavn, limit: 35
|
32
|
+
property :receiver_address1, alias: :LAdr1, limit: 35
|
33
|
+
property :receiver_address2, alias: :LAdr2, limit: 35
|
34
|
+
property :receiver_zip, alias: :LPostNr, limit: 9
|
35
|
+
property :receiver_office, alias: :LPostSted, limit: 35
|
36
|
+
property :receiver_country, alias: :LLandK, limit: 2
|
37
|
+
|
38
|
+
property :buyer_company_name, alias: :KFirmaNavn, limit: 35
|
39
|
+
property :buyer_address1, alias: :KAdr1, limit: 35
|
40
|
+
property :buyer_address2, alias: :KAdr2, limit: 35
|
41
|
+
property :buyer_zip, alias: :KPostNr, limit: 9
|
42
|
+
property :buyer_office, alias: :KPostSted, limit: 35
|
43
|
+
property :buyer_country, alias: :KLandK, limit: 2
|
44
|
+
property :buyer_name, alias: :KNavn, limit: 35
|
45
|
+
|
46
|
+
property :billing_company_name, alias: :FFirmaNavn, limit: 35
|
47
|
+
property :billing_address1, alias: :FAdr1, limit: 35
|
48
|
+
property :billing_address2, alias: :FAdr2, limit: 35
|
49
|
+
property :billing_zip, alias: :FPostNr, limit: 9
|
50
|
+
property :billing_office, alias: :FPostSted, limit: 35
|
51
|
+
property :billing_country, alias: :FLandK, limit: 2
|
52
|
+
|
53
|
+
property :seller_company_name, alias: :SFirmaNavn, limit: 35
|
54
|
+
property :seller_address1, alias: :SAdr1, limit: 35
|
55
|
+
property :seller_address2, alias: :SAdr2, limit: 35
|
56
|
+
property :seller_zip, alias: :SPostNr, limit: 9
|
57
|
+
property :seller_office, alias: :SPostSted, limit: 35
|
58
|
+
property :seller_country, alias: :SLandK, limit: 2
|
59
|
+
property :currency, alias: :Valuta, limit: 3
|
60
|
+
|
61
|
+
has_many :lines, post_type: "DL"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module EfoNelfo
|
2
|
+
module V40
|
3
|
+
class DL < EfoNelfo::PostType
|
4
|
+
|
5
|
+
# It's important to list the property in the same order as specified in the specs
|
6
|
+
property :post_type, alias: :PostType, limit: 2, default: post_type, required: true
|
7
|
+
property :index_seller, alias: :LinjeNrBekr, limit: 4, type: :integer
|
8
|
+
property :index_buyer, alias: :LinjeNrBe, limit: 4, type: :integer
|
9
|
+
property :item_type, alias: :VareMrk, limit: 1, required: true, type: :integer
|
10
|
+
property :item_number, alias: :VareNr, limit: 14, required: true
|
11
|
+
property :item_name, alias: :VaBetg, limit: 30, required: true
|
12
|
+
property :item_description, alias: :VaBetg2, limit: 30
|
13
|
+
property :item_quantity, alias: :Ant, limit: 9, required: true, type: :integer
|
14
|
+
property :item_delivered, alias: :Lev, limit: 9, required: true, type: :integer
|
15
|
+
property :item_remainder, alias: :Rest, limit: 9, required: true, type: :integer
|
16
|
+
property :price_unit, alias: :PrisEnhet, limit: 3, required: true
|
17
|
+
property :buyer_item_number, alias: :KVareNr, limit: 25
|
18
|
+
property :buyer_quantity, alias: :KAnt, limit: 9, type: :integer
|
19
|
+
property :delivery_date, alias: :LevDato, type: :date
|
20
|
+
property :delivery_date_remainder, alias: :RLevDato, type: :date
|
21
|
+
property :unit_price, alias: :EnhetsPris, type: :integer, limit: 10
|
22
|
+
property :discount_percentage1, alias: :Rab1P, type: :integer, limit: 4
|
23
|
+
property :discount_amount1, alias: :Rab1Bel, type: :integer, limit: 11
|
24
|
+
property :discount_percentage2, alias: :Rab2P, type: :integer, limit: 4
|
25
|
+
property :discount_amount2, alias: :Rab2Bel, type: :integer, limit: 11
|
26
|
+
property :addition_percentage, alias: :TilleggP, type: :integer, limit: 4
|
27
|
+
property :addition_amount, alias: :TilleggBel, type: :integer, limit: 11
|
28
|
+
property :tax_percentage, alias: :AvgiftP, type: :integer, limit: 4
|
29
|
+
property :tax_amount, alias: :AvgiftBel, type: :integer, limit: 11
|
30
|
+
property :amount, alias: :Beløp, type: :integer, limit: 11
|
31
|
+
property :buyers_ref, alias: :KjøpersRef, limit: 25
|
32
|
+
property :seller_warehouse_location, alias: :SLagerMrk, limit: 1
|
33
|
+
property :seller_warehouse, alias: :SLager, limit: 14
|
34
|
+
|
35
|
+
has_many :text, post_type: "DT"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/efo_nelfo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: efo_nelfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gudleik Rasch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -194,6 +194,9 @@ files:
|
|
194
194
|
- lib/efo_nelfo/v40/ch.rb
|
195
195
|
- lib/efo_nelfo/v40/cl.rb
|
196
196
|
- lib/efo_nelfo/v40/ct.rb
|
197
|
+
- lib/efo_nelfo/v40/dh.rb
|
198
|
+
- lib/efo_nelfo/v40/dl.rb
|
199
|
+
- lib/efo_nelfo/v40/dt.rb
|
197
200
|
- lib/efo_nelfo/v40/rh.rb
|
198
201
|
- lib/efo_nelfo/v40/rl.rb
|
199
202
|
- lib/efo_nelfo/v40/va.rb
|