erp_txns_and_accts 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,7 @@ module ErpTxnsAndAccts
40
40
  end
41
41
 
42
42
  def initialize_biz_txn_account
43
- if (self.biz_txn_acct_root.nil?)
43
+ if self.new_record? and self.biz_txn_acct_root.nil?
44
44
  t = BizTxnAcctRoot.new
45
45
  self.biz_txn_acct_root = t
46
46
  t.biz_txn_acct = self
@@ -56,7 +56,7 @@ module ErpTxnsAndAccts
56
56
  end
57
57
 
58
58
  def initialize_biz_txn_event
59
- if (self.biz_txn_event.nil?)
59
+ if self.new_record? and self.biz_txn_event.nil?
60
60
  t = BizTxnEvent.new
61
61
  self.biz_txn_event = t
62
62
  t.biz_txn_record = self
@@ -49,7 +49,7 @@ module ErpTxnsAndAccts
49
49
  module InstanceMethods
50
50
 
51
51
  def initialize_financial_txn_account
52
- if (self.financial_txn_account.nil?)
52
+ if self.new_record? and self.financial_txn_account.nil?
53
53
  f = FinancialTxnAccount.new
54
54
  self.financial_txn_account = f
55
55
  f.financial_account = self
@@ -2,7 +2,7 @@ module ErpTxnsAndAccts
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_txns_and_accts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_agreements
16
- requirement: &70353011488360 !ruby/object:Gem::Requirement
16
+ requirement: &70219055112640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70353011488360
24
+ version_requirements: *70219055112640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erp_dev_svcs
27
- requirement: &70353011486060 !ruby/object:Gem::Requirement
27
+ requirement: &70219055112140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70353011486060
35
+ version_requirements: *70219055112140
36
36
  description: ! 'The Transactions and Accounts Engine implements the root classes for
37
37
  adding business transactions and accounts to parties. The key marker interface classes
38
38
  here are BizTxnEvent, which represents a common interface for all manner of management