pais_legacy 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8866673f710fe24ed37fba33310b0ef52a4b993df47563b5e486a6def70a1de
4
- data.tar.gz: 0e343557c33830ad43c40e386247f7e3a2e1b8b286df9b66cf7afeeb0b4e3325
3
+ metadata.gz: 5b496387ce9501c23013c41290109066221001c3552ab3dd0a62c44d9a945525
4
+ data.tar.gz: e2e21539c7880bff7dd7ebf65ba8d6f54887a9964e709f268069ece43cf6ae24
5
5
  SHA512:
6
- metadata.gz: cc45e153a1f3587e7bf97e9021637bf68bed0a5f33e57ecc5c7faf66b71fca9726f0bf25576b55699d7c1cbb40851e085265da9a4649947058a89f56a2b45ae0
7
- data.tar.gz: c862728f4489682e8170c234c2b39913baeb1c5d233cd7ad442749c35c7590cd6fa4a9afc467c63f681b420ef529e691e4758aa78e6075e834affef1df9bd71a
6
+ metadata.gz: 3816b70e9ec64b3850fe97a114f4764a6dcaeda784128cdf21fc0aa7514a0e505f40111ee27c2d5c02e5635422d05b5277155f155faa6551bbd1e65faeaa58fc
7
+ data.tar.gz: e79d5face0e97c1cf1a3de8c2897b64c8ef1893968af61286c6b6e78fe3bc2534183a7906522e7c596fdc2918c7c5e847e70a0654bc11cce2ffa5c856bcb5860
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pais_legacy (0.7.1)
4
+ pais_legacy (0.7.3)
5
5
  byebug (~> 11.0)
6
6
  minitest (~> 5.0)
7
7
  mocha (~> 1.0)
@@ -13,32 +13,34 @@ GEM
13
13
  specs:
14
14
  ast (2.4.2)
15
15
  byebug (11.1.3)
16
+ json (2.6.2)
16
17
  minitest (5.16.3)
17
- mocha (1.16.0)
18
- parallel (1.21.0)
19
- parser (3.1.0.0)
18
+ mocha (1.16.1)
19
+ parallel (1.22.1)
20
+ parser (3.1.2.1)
20
21
  ast (~> 2.4.1)
21
22
  pastel (0.8.0)
22
23
  tty-color (~> 0.5)
23
24
  rainbow (3.1.1)
24
25
  rake (13.0.6)
25
- regexp_parser (2.5.0)
26
+ regexp_parser (2.6.1)
26
27
  rexml (3.2.5)
27
- rubocop (1.25.1)
28
+ rubocop (1.39.0)
29
+ json (~> 2.3)
28
30
  parallel (~> 1.10)
29
- parser (>= 3.1.0.0)
31
+ parser (>= 3.1.2.1)
30
32
  rainbow (>= 2.2.2, < 4.0)
31
33
  regexp_parser (>= 1.8, < 3.0)
32
- rexml
33
- rubocop-ast (>= 1.15.1, < 2.0)
34
+ rexml (>= 3.2.5, < 4.0)
35
+ rubocop-ast (>= 1.23.0, < 2.0)
34
36
  ruby-progressbar (~> 1.7)
35
37
  unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.15.2)
37
- parser (>= 3.0.1.1)
38
+ rubocop-ast (1.23.0)
39
+ parser (>= 3.1.1.0)
38
40
  ruby-progressbar (1.11.0)
39
41
  timecop (0.9.5)
40
42
  tty-color (0.6.0)
41
- unicode-display_width (2.1.0)
43
+ unicode-display_width (2.3.0)
42
44
 
43
45
  PLATFORMS
44
46
  x86_64-linux
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaisLegacy
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.3"
5
5
  end
data/lib/pais_legacy.rb CHANGED
@@ -51,7 +51,7 @@ module PaisLegacy
51
51
  # --------------------------------------------------------------------------------
52
52
  # Trial Balance
53
53
  # --------------------------------------------------------------------------------
54
- def self.get_trial_balance(ledger = "1", date_to = "30/06/2021", from=nil,to=nil)
54
+ def self.get_trial_balance(ledger = "1", date_to = "30/06/2021", from=1,to=9999)
55
55
  cmd=rptrun(ledger,date_to,from,to)
56
56
  out,_,_=Open3.capture2(cmd)
57
57
 
@@ -66,6 +66,12 @@ module PaisLegacy
66
66
  out.split("\n")
67
67
  end
68
68
 
69
+ # Get the accounts using the trial balance
70
+ def self.get_trial_balance_accounts(ledger = "1", date_to = "30/06/2021", from=1,to=9999)
71
+ report = get_trial_balance(ledger,date_to,from,to)
72
+ tb = PaisLegacy::TrialBalance.new(report)
73
+ tb.accounts_from_trial_balance
74
+ end
69
75
 
70
76
  # --------------------------------------------------------------------------------
71
77
  # General Journals
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pais_legacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Pope
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug