@rangka-os/create 0.5.0-alpha.28 → 0.5.0-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/template/base/apps/jasa_proyek/app.rk +3 -0
  3. package/template/base/apps/pembukuan/app.rk +3 -0
  4. package/template/base/modules/accounting/flows/gl_asset_disposal_post.rk +68 -0
  5. package/template/base/modules/accounting/flows/gl_asset_disposal_reverse.rk +194 -0
  6. package/template/base/modules/accounting/flows/gl_depreciation_run_post.rk +43 -0
  7. package/template/base/modules/accounting/flows/gl_depreciation_run_reverse.rk +36 -0
  8. package/template/base/modules/accounting/flows/gl_fixed_asset_post.rk +51 -0
  9. package/template/base/modules/accounting/flows/gl_fixed_asset_reverse.rk +194 -0
  10. package/template/base/modules/accounting/flows/gl_vendor_bill_post.rk +2 -2
  11. package/template/base/modules/accounting/models/gl_entry.rk +2 -0
  12. package/template/base/modules/accounting/module.rk +2 -2
  13. package/template/base/modules/fixed_assets/flows/asset_disposal_on_cancel.rk +14 -0
  14. package/template/base/modules/fixed_assets/flows/asset_disposal_on_submit.rk +21 -0
  15. package/template/base/modules/fixed_assets/flows/asset_from_vendor_bill.rk +41 -0
  16. package/template/base/modules/fixed_assets/flows/depreciation_run_fill.rk +28 -0
  17. package/template/base/modules/fixed_assets/flows/depreciation_run_monthly.rk +36 -0
  18. package/template/base/modules/fixed_assets/flows/depreciation_run_on_cancel.rk +30 -0
  19. package/template/base/modules/fixed_assets/flows/depreciation_run_on_submit.rk +34 -0
  20. package/template/base/modules/fixed_assets/flows/fixed_asset_on_cancel.rk +24 -0
  21. package/template/base/modules/fixed_assets/flows/fixed_asset_on_submit.rk +69 -0
  22. package/template/base/modules/fixed_assets/flows/fixed_assets_setup.rk +29 -0
  23. package/template/base/modules/fixed_assets/flows/opening_balance_asset_guard.rk +15 -0
  24. package/template/base/modules/fixed_assets/flows/vendor_bill_asset_guard.rk +14 -0
  25. package/template/base/modules/fixed_assets/imports/asset_list.rk +22 -0
  26. package/template/base/modules/fixed_assets/models/asset_bill_line.rk +24 -0
  27. package/template/base/modules/fixed_assets/models/asset_book.rk +83 -0
  28. package/template/base/modules/fixed_assets/models/asset_category.rk +54 -0
  29. package/template/base/modules/fixed_assets/models/asset_disposal.rk +97 -0
  30. package/template/base/modules/fixed_assets/models/asset_guard.rk +90 -0
  31. package/template/base/modules/fixed_assets/models/depreciation_line.rk +13 -0
  32. package/template/base/modules/fixed_assets/models/depreciation_run.rk +65 -0
  33. package/template/base/modules/fixed_assets/models/fixed_asset.rk +165 -0
  34. package/template/base/modules/fixed_assets/models/fixed_asset_setting.rk +34 -0
  35. package/template/base/modules/fixed_assets/module.rk +30 -0
  36. package/template/base/modules/fixed_assets/print/fixed_asset_register.html +45 -0
  37. package/template/base/modules/fixed_assets/print/fixed_asset_register.rk +17 -0
  38. package/template/base/modules/procurement/models/vendor_bill.rk +7 -1
  39. package/template/base/modules/procurement/module.rk +2 -2
  40. package/template/base/modules/rental/models/rental_unit.rk +13 -3
  41. package/template/base/modules/rental/module.rk +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangka-os/create",
3
- "version": "0.5.0-alpha.28",
3
+ "version": "0.5.0-alpha.29",
4
4
  "description": "Start a Rangka OS project: npm create @rangka-os@latest my-shop",
5
5
  "license": "Elastic-2.0",
6
6
  "homepage": "https://rangka-os.github.io/rangka-os/guide/quick-start",
@@ -26,6 +26,7 @@ modules:
26
26
  bank_statement: ^1.0
27
27
  procurement: ^1.0
28
28
  payroll: ^2.0
29
+ fixed_assets: ^1.0
29
30
  dashboards: [jasa_overview, ar_aging, project_margin, absen_saya, rekap_absen]
30
31
  # field_worker and site_supervisor (field attendance, A2) have their role files in the projects module.
31
32
  roles: [sales_manager, finance_manager, purchasing_manager, project_admin, field_worker, site_supervisor]
@@ -51,6 +52,8 @@ menu:
51
52
  items: [purchase_request, purchase_order]
52
53
  - group: {id: Pembukuan}
53
54
  items: [financial_report, gl_entry, opening_balance, period_close]
55
+ - group: {id: Aset tetap}
56
+ items: [asset_book, fixed_asset, depreciation_run, asset_disposal, asset_category, fixed_asset_setting]
54
57
  - group: {id: Pajak}
55
58
  items: [tax_period]
56
59
  - group: {id: Data induk}
@@ -13,7 +13,10 @@ rangka: '>=0.5'
13
13
  modules:
14
14
  users: ^1.0
15
15
  accounting: ^1.0
16
+ fixed_assets: ^1.0
16
17
  roles: [head_office]
17
18
  menu:
18
19
  - group: {id: Pembukuan}
19
20
  items: [financial_report, gl_entry, opening_balance, period_close]
21
+ - group: {id: Aset tetap}
22
+ items: [asset_book, fixed_asset, depreciation_run, asset_disposal, asset_category, fixed_asset_setting]
@@ -0,0 +1,68 @@
1
+ # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
2
+ # Generated by scripts/gen_accounting_flows.py; edit POSTINGS there, not this file.
3
+ name: gl_asset_disposal_post
4
+ label: {id: Jurnal pelepasan aset tetap}
5
+ description: {id: 'Saat aset dijual atau dihapus, harga dan penyusutannya keluar dari buku, dan laba atau ruginya tercatat.'}
6
+ on: asset_disposal.submitted
7
+ steps:
8
+ - find_all: period_close
9
+ where: docstatus == 1
10
+ sort: -closed_until
11
+ limit: 1
12
+ as: locks
13
+ - create: gl_entry
14
+ if: "(event.accumulated_total) != 0"
15
+ set:
16
+ posting_date: "event.disposal_date"
17
+ account: "'12900'"
18
+ amount: "event.accumulated_total"
19
+ voucher_type: event.model
20
+ voucher: event.name
21
+ entry: "'post'"
22
+ line: "'1'"
23
+ outlet: "event.outlet"
24
+ project: "event.project"
25
+ party: "event.asset"
26
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
27
+ - create: gl_entry
28
+ if: "(event.proceeds) != 0"
29
+ set:
30
+ posting_date: "event.disposal_date"
31
+ account: "event.received_in == 'bank' ? '11200' : (event.received_in == 'receivable' ? '11300' : '11100')"
32
+ amount: "event.proceeds"
33
+ voucher_type: event.model
34
+ voucher: event.name
35
+ entry: "'post'"
36
+ line: "'2'"
37
+ outlet: "event.outlet"
38
+ project: "event.project"
39
+ party: "event.asset"
40
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
41
+ - create: gl_entry
42
+ if: "(0 - event.cost) != 0"
43
+ set:
44
+ posting_date: "event.disposal_date"
45
+ account: "'12100'"
46
+ amount: "0 - event.cost"
47
+ voucher_type: event.model
48
+ voucher: event.name
49
+ entry: "'post'"
50
+ line: "'3'"
51
+ outlet: "event.outlet"
52
+ project: "event.project"
53
+ party: "event.asset"
54
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
55
+ - create: gl_entry
56
+ if: "(0 - (event.proceeds - event.book_value)) != 0"
57
+ set:
58
+ posting_date: "event.disposal_date"
59
+ account: "'49300'"
60
+ amount: "0 - (event.proceeds - event.book_value)"
61
+ voucher_type: event.model
62
+ voucher: event.name
63
+ entry: "'post'"
64
+ line: "'4'"
65
+ outlet: "event.outlet"
66
+ project: "event.project"
67
+ party: "event.asset"
68
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
@@ -0,0 +1,194 @@
1
+ # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
2
+ # Generated by scripts/gen_accounting_flows.py; edit POSTINGS there, not this file.
3
+ # The opposite of every line the document posted, on the post's own date, so a cancelled document nets to 0
4
+ # in its period. A document submitted before the accounting module was installed posted nothing and is not
5
+ # reversed. Amending posts the new document again.
6
+ name: gl_asset_disposal_reverse
7
+ label: {id: Jurnal pelepasan aset tetap dibatalkan}
8
+ on: asset_disposal.cancelled
9
+ steps:
10
+ - find_all: gl_entry
11
+ where: voucher_type == event.model && voucher == event.name && entry == 'post'
12
+ sort: line
13
+ as: posts
14
+ - find_all: period_close
15
+ where: docstatus == 1
16
+ sort: -closed_until
17
+ limit: 1
18
+ as: locks
19
+ - create: gl_entry
20
+ if: posts.size() > 0
21
+ set:
22
+ posting_date: posts[0].posting_date
23
+ account: posts[0].account
24
+ amount: 0 - posts[0].amount
25
+ voucher_type: posts[0].voucher_type
26
+ voucher: posts[0].voucher
27
+ entry: "'reverse'"
28
+ line: posts[0].line
29
+ reverses: posts[0].name
30
+ outlet: posts[0].outlet
31
+ project: posts[0].project
32
+ party: posts[0].party
33
+ against: posts[0].against
34
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
35
+ - create: gl_entry
36
+ if: posts.size() > 1
37
+ set:
38
+ posting_date: posts[1].posting_date
39
+ account: posts[1].account
40
+ amount: 0 - posts[1].amount
41
+ voucher_type: posts[1].voucher_type
42
+ voucher: posts[1].voucher
43
+ entry: "'reverse'"
44
+ line: posts[1].line
45
+ reverses: posts[1].name
46
+ outlet: posts[1].outlet
47
+ project: posts[1].project
48
+ party: posts[1].party
49
+ against: posts[1].against
50
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
51
+ - create: gl_entry
52
+ if: posts.size() > 2
53
+ set:
54
+ posting_date: posts[2].posting_date
55
+ account: posts[2].account
56
+ amount: 0 - posts[2].amount
57
+ voucher_type: posts[2].voucher_type
58
+ voucher: posts[2].voucher
59
+ entry: "'reverse'"
60
+ line: posts[2].line
61
+ reverses: posts[2].name
62
+ outlet: posts[2].outlet
63
+ project: posts[2].project
64
+ party: posts[2].party
65
+ against: posts[2].against
66
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
67
+ - create: gl_entry
68
+ if: posts.size() > 3
69
+ set:
70
+ posting_date: posts[3].posting_date
71
+ account: posts[3].account
72
+ amount: 0 - posts[3].amount
73
+ voucher_type: posts[3].voucher_type
74
+ voucher: posts[3].voucher
75
+ entry: "'reverse'"
76
+ line: posts[3].line
77
+ reverses: posts[3].name
78
+ outlet: posts[3].outlet
79
+ project: posts[3].project
80
+ party: posts[3].party
81
+ against: posts[3].against
82
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
83
+ - create: gl_entry
84
+ if: posts.size() > 4
85
+ set:
86
+ posting_date: posts[4].posting_date
87
+ account: posts[4].account
88
+ amount: 0 - posts[4].amount
89
+ voucher_type: posts[4].voucher_type
90
+ voucher: posts[4].voucher
91
+ entry: "'reverse'"
92
+ line: posts[4].line
93
+ reverses: posts[4].name
94
+ outlet: posts[4].outlet
95
+ project: posts[4].project
96
+ party: posts[4].party
97
+ against: posts[4].against
98
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
99
+ - create: gl_entry
100
+ if: posts.size() > 5
101
+ set:
102
+ posting_date: posts[5].posting_date
103
+ account: posts[5].account
104
+ amount: 0 - posts[5].amount
105
+ voucher_type: posts[5].voucher_type
106
+ voucher: posts[5].voucher
107
+ entry: "'reverse'"
108
+ line: posts[5].line
109
+ reverses: posts[5].name
110
+ outlet: posts[5].outlet
111
+ project: posts[5].project
112
+ party: posts[5].party
113
+ against: posts[5].against
114
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
115
+ - create: gl_entry
116
+ if: posts.size() > 6
117
+ set:
118
+ posting_date: posts[6].posting_date
119
+ account: posts[6].account
120
+ amount: 0 - posts[6].amount
121
+ voucher_type: posts[6].voucher_type
122
+ voucher: posts[6].voucher
123
+ entry: "'reverse'"
124
+ line: posts[6].line
125
+ reverses: posts[6].name
126
+ outlet: posts[6].outlet
127
+ project: posts[6].project
128
+ party: posts[6].party
129
+ against: posts[6].against
130
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
131
+ - create: gl_entry
132
+ if: posts.size() > 7
133
+ set:
134
+ posting_date: posts[7].posting_date
135
+ account: posts[7].account
136
+ amount: 0 - posts[7].amount
137
+ voucher_type: posts[7].voucher_type
138
+ voucher: posts[7].voucher
139
+ entry: "'reverse'"
140
+ line: posts[7].line
141
+ reverses: posts[7].name
142
+ outlet: posts[7].outlet
143
+ project: posts[7].project
144
+ party: posts[7].party
145
+ against: posts[7].against
146
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
147
+ - create: gl_entry
148
+ if: posts.size() > 8
149
+ set:
150
+ posting_date: posts[8].posting_date
151
+ account: posts[8].account
152
+ amount: 0 - posts[8].amount
153
+ voucher_type: posts[8].voucher_type
154
+ voucher: posts[8].voucher
155
+ entry: "'reverse'"
156
+ line: posts[8].line
157
+ reverses: posts[8].name
158
+ outlet: posts[8].outlet
159
+ project: posts[8].project
160
+ party: posts[8].party
161
+ against: posts[8].against
162
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
163
+ - create: gl_entry
164
+ if: posts.size() > 9
165
+ set:
166
+ posting_date: posts[9].posting_date
167
+ account: posts[9].account
168
+ amount: 0 - posts[9].amount
169
+ voucher_type: posts[9].voucher_type
170
+ voucher: posts[9].voucher
171
+ entry: "'reverse'"
172
+ line: posts[9].line
173
+ reverses: posts[9].name
174
+ outlet: posts[9].outlet
175
+ project: posts[9].project
176
+ party: posts[9].party
177
+ against: posts[9].against
178
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
179
+ - create: gl_entry
180
+ if: posts.size() > 10
181
+ set:
182
+ posting_date: posts[10].posting_date
183
+ account: posts[10].account
184
+ amount: 0 - posts[10].amount
185
+ voucher_type: posts[10].voucher_type
186
+ voucher: posts[10].voucher
187
+ entry: "'reverse'"
188
+ line: posts[10].line
189
+ reverses: posts[10].name
190
+ outlet: posts[10].outlet
191
+ project: posts[10].project
192
+ party: posts[10].party
193
+ against: posts[10].against
194
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
@@ -0,0 +1,43 @@
1
+ # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
2
+ # Generated by scripts/gen_accounting_flows.py; edit POSTINGS there, not this file.
3
+ name: gl_depreciation_run_post
4
+ label: {id: Jurnal penyusutan bulanan}
5
+ description: {id: 'Saat penyusutan bulanan diajukan, beban penyusutan tiap aset masuk pembukuan di akhir bulan, per cabang.'}
6
+ on: depreciation_run.submitted
7
+ steps:
8
+ - find_all: period_close
9
+ where: docstatus == 1
10
+ sort: -closed_until
11
+ limit: 1
12
+ as: locks
13
+ - for_each: "event.lines"
14
+ as: l
15
+ do:
16
+ - create: gl_entry
17
+ if: "(l.amount) != 0"
18
+ set:
19
+ posting_date: "event.posting_date"
20
+ account: "'61950'"
21
+ amount: "l.amount"
22
+ voucher_type: event.model
23
+ voucher: event.name
24
+ entry: "'post'"
25
+ line: "'1-' + string(l.idx)"
26
+ outlet: "l.outlet"
27
+ project: "l.project"
28
+ party: "l.asset"
29
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
30
+ - create: gl_entry
31
+ if: "(0 - l.amount) != 0"
32
+ set:
33
+ posting_date: "event.posting_date"
34
+ account: "'12900'"
35
+ amount: "0 - l.amount"
36
+ voucher_type: event.model
37
+ voucher: event.name
38
+ entry: "'post'"
39
+ line: "'2-' + string(l.idx)"
40
+ outlet: "l.outlet"
41
+ project: "l.project"
42
+ party: "l.asset"
43
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
@@ -0,0 +1,36 @@
1
+ # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
2
+ # Generated by scripts/gen_accounting_flows.py; edit POSTINGS there, not this file.
3
+ # The opposite of every line the document posted, on the post's own date, so a cancelled document nets to 0
4
+ # in its period. A document submitted before the accounting module was installed posted nothing and is not
5
+ # reversed. Amending posts the new document again.
6
+ name: gl_depreciation_run_reverse
7
+ label: {id: Jurnal penyusutan bulanan dibatalkan}
8
+ on: depreciation_run.cancelled
9
+ steps:
10
+ - find_all: gl_entry
11
+ where: voucher_type == event.model && voucher == event.name && entry == 'post'
12
+ sort: line
13
+ as: posts
14
+ - find_all: period_close
15
+ where: docstatus == 1
16
+ sort: -closed_until
17
+ limit: 1
18
+ as: locks
19
+ - for_each: posts
20
+ as: p
21
+ do:
22
+ - create: gl_entry
23
+ set:
24
+ posting_date: p.posting_date
25
+ account: p.account
26
+ amount: 0 - p.amount
27
+ voucher_type: p.voucher_type
28
+ voucher: p.voucher
29
+ entry: "'reverse'"
30
+ line: p.line
31
+ reverses: p.name
32
+ outlet: p.outlet
33
+ project: p.project
34
+ party: p.party
35
+ against: p.against
36
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
@@ -0,0 +1,51 @@
1
+ # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
2
+ # Generated by scripts/gen_accounting_flows.py; edit POSTINGS there, not this file.
3
+ name: gl_fixed_asset_post
4
+ label: {id: Jurnal aset tetap}
5
+ on: fixed_asset.submitted
6
+ if: "event.source != 'vendor_bill'"
7
+ steps:
8
+ - find_all: period_close
9
+ where: docstatus == 1
10
+ sort: -closed_until
11
+ limit: 1
12
+ as: locks
13
+ - create: gl_entry
14
+ if: "(event.cost) != 0"
15
+ set:
16
+ posting_date: "event.book_date"
17
+ account: "'12100'"
18
+ amount: "event.cost"
19
+ voucher_type: event.model
20
+ voucher: event.name
21
+ entry: "'post'"
22
+ line: "'1'"
23
+ outlet: "event.outlet"
24
+ project: "event.project"
25
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
26
+ - create: gl_entry
27
+ if: "(0 - event.opening_accumulated) != 0"
28
+ set:
29
+ posting_date: "event.book_date"
30
+ account: "'12900'"
31
+ amount: "0 - event.opening_accumulated"
32
+ voucher_type: event.model
33
+ voucher: event.name
34
+ entry: "'post'"
35
+ line: "'2'"
36
+ outlet: "event.outlet"
37
+ project: "event.project"
38
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
39
+ - create: gl_entry
40
+ if: "(0 - (event.cost - event.opening_accumulated)) != 0"
41
+ set:
42
+ posting_date: "event.book_date"
43
+ account: "event.source == 'opening' ? '31900' : (event.paid_from == 'bank' ? '11200' : '11100')"
44
+ amount: "0 - (event.cost - event.opening_accumulated)"
45
+ voucher_type: event.model
46
+ voucher: event.name
47
+ entry: "'post'"
48
+ line: "'3'"
49
+ outlet: "event.outlet"
50
+ project: "event.project"
51
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
@@ -0,0 +1,194 @@
1
+ # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/flow.json
2
+ # Generated by scripts/gen_accounting_flows.py; edit POSTINGS there, not this file.
3
+ # The opposite of every line the document posted, on the post's own date, so a cancelled document nets to 0
4
+ # in its period. A document submitted before the accounting module was installed posted nothing and is not
5
+ # reversed. Amending posts the new document again.
6
+ name: gl_fixed_asset_reverse
7
+ label: {id: Jurnal aset tetap dibatalkan}
8
+ on: fixed_asset.cancelled
9
+ steps:
10
+ - find_all: gl_entry
11
+ where: voucher_type == event.model && voucher == event.name && entry == 'post'
12
+ sort: line
13
+ as: posts
14
+ - find_all: period_close
15
+ where: docstatus == 1
16
+ sort: -closed_until
17
+ limit: 1
18
+ as: locks
19
+ - create: gl_entry
20
+ if: posts.size() > 0
21
+ set:
22
+ posting_date: posts[0].posting_date
23
+ account: posts[0].account
24
+ amount: 0 - posts[0].amount
25
+ voucher_type: posts[0].voucher_type
26
+ voucher: posts[0].voucher
27
+ entry: "'reverse'"
28
+ line: posts[0].line
29
+ reverses: posts[0].name
30
+ outlet: posts[0].outlet
31
+ project: posts[0].project
32
+ party: posts[0].party
33
+ against: posts[0].against
34
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
35
+ - create: gl_entry
36
+ if: posts.size() > 1
37
+ set:
38
+ posting_date: posts[1].posting_date
39
+ account: posts[1].account
40
+ amount: 0 - posts[1].amount
41
+ voucher_type: posts[1].voucher_type
42
+ voucher: posts[1].voucher
43
+ entry: "'reverse'"
44
+ line: posts[1].line
45
+ reverses: posts[1].name
46
+ outlet: posts[1].outlet
47
+ project: posts[1].project
48
+ party: posts[1].party
49
+ against: posts[1].against
50
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
51
+ - create: gl_entry
52
+ if: posts.size() > 2
53
+ set:
54
+ posting_date: posts[2].posting_date
55
+ account: posts[2].account
56
+ amount: 0 - posts[2].amount
57
+ voucher_type: posts[2].voucher_type
58
+ voucher: posts[2].voucher
59
+ entry: "'reverse'"
60
+ line: posts[2].line
61
+ reverses: posts[2].name
62
+ outlet: posts[2].outlet
63
+ project: posts[2].project
64
+ party: posts[2].party
65
+ against: posts[2].against
66
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
67
+ - create: gl_entry
68
+ if: posts.size() > 3
69
+ set:
70
+ posting_date: posts[3].posting_date
71
+ account: posts[3].account
72
+ amount: 0 - posts[3].amount
73
+ voucher_type: posts[3].voucher_type
74
+ voucher: posts[3].voucher
75
+ entry: "'reverse'"
76
+ line: posts[3].line
77
+ reverses: posts[3].name
78
+ outlet: posts[3].outlet
79
+ project: posts[3].project
80
+ party: posts[3].party
81
+ against: posts[3].against
82
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
83
+ - create: gl_entry
84
+ if: posts.size() > 4
85
+ set:
86
+ posting_date: posts[4].posting_date
87
+ account: posts[4].account
88
+ amount: 0 - posts[4].amount
89
+ voucher_type: posts[4].voucher_type
90
+ voucher: posts[4].voucher
91
+ entry: "'reverse'"
92
+ line: posts[4].line
93
+ reverses: posts[4].name
94
+ outlet: posts[4].outlet
95
+ project: posts[4].project
96
+ party: posts[4].party
97
+ against: posts[4].against
98
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
99
+ - create: gl_entry
100
+ if: posts.size() > 5
101
+ set:
102
+ posting_date: posts[5].posting_date
103
+ account: posts[5].account
104
+ amount: 0 - posts[5].amount
105
+ voucher_type: posts[5].voucher_type
106
+ voucher: posts[5].voucher
107
+ entry: "'reverse'"
108
+ line: posts[5].line
109
+ reverses: posts[5].name
110
+ outlet: posts[5].outlet
111
+ project: posts[5].project
112
+ party: posts[5].party
113
+ against: posts[5].against
114
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
115
+ - create: gl_entry
116
+ if: posts.size() > 6
117
+ set:
118
+ posting_date: posts[6].posting_date
119
+ account: posts[6].account
120
+ amount: 0 - posts[6].amount
121
+ voucher_type: posts[6].voucher_type
122
+ voucher: posts[6].voucher
123
+ entry: "'reverse'"
124
+ line: posts[6].line
125
+ reverses: posts[6].name
126
+ outlet: posts[6].outlet
127
+ project: posts[6].project
128
+ party: posts[6].party
129
+ against: posts[6].against
130
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
131
+ - create: gl_entry
132
+ if: posts.size() > 7
133
+ set:
134
+ posting_date: posts[7].posting_date
135
+ account: posts[7].account
136
+ amount: 0 - posts[7].amount
137
+ voucher_type: posts[7].voucher_type
138
+ voucher: posts[7].voucher
139
+ entry: "'reverse'"
140
+ line: posts[7].line
141
+ reverses: posts[7].name
142
+ outlet: posts[7].outlet
143
+ project: posts[7].project
144
+ party: posts[7].party
145
+ against: posts[7].against
146
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
147
+ - create: gl_entry
148
+ if: posts.size() > 8
149
+ set:
150
+ posting_date: posts[8].posting_date
151
+ account: posts[8].account
152
+ amount: 0 - posts[8].amount
153
+ voucher_type: posts[8].voucher_type
154
+ voucher: posts[8].voucher
155
+ entry: "'reverse'"
156
+ line: posts[8].line
157
+ reverses: posts[8].name
158
+ outlet: posts[8].outlet
159
+ project: posts[8].project
160
+ party: posts[8].party
161
+ against: posts[8].against
162
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
163
+ - create: gl_entry
164
+ if: posts.size() > 9
165
+ set:
166
+ posting_date: posts[9].posting_date
167
+ account: posts[9].account
168
+ amount: 0 - posts[9].amount
169
+ voucher_type: posts[9].voucher_type
170
+ voucher: posts[9].voucher
171
+ entry: "'reverse'"
172
+ line: posts[9].line
173
+ reverses: posts[9].name
174
+ outlet: posts[9].outlet
175
+ project: posts[9].project
176
+ party: posts[9].party
177
+ against: posts[9].against
178
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
179
+ - create: gl_entry
180
+ if: posts.size() > 10
181
+ set:
182
+ posting_date: posts[10].posting_date
183
+ account: posts[10].account
184
+ amount: 0 - posts[10].amount
185
+ voucher_type: posts[10].voucher_type
186
+ voucher: posts[10].voucher
187
+ entry: "'reverse'"
188
+ line: posts[10].line
189
+ reverses: posts[10].name
190
+ outlet: posts[10].outlet
191
+ project: posts[10].project
192
+ party: posts[10].party
193
+ against: posts[10].against
194
+ lock_date: "locks.size() > 0 ? locks[0].closed_until : null"
@@ -13,7 +13,7 @@ steps:
13
13
  if: "(event.dpp) != 0"
14
14
  set:
15
15
  posting_date: "event.bill_date"
16
- account: "((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'project' ? '51400' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'stock' ? '21150' : (event.expense_account != null ? event.expense_account : '61900'))"
16
+ account: "((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'project' ? '51400' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'stock' ? '21150' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'asset' ? '12100' : (event.expense_account != null ? event.expense_account : '61900')))"
17
17
  amount: "event.dpp"
18
18
  voucher_type: event.model
19
19
  voucher: event.name
@@ -26,7 +26,7 @@ steps:
26
26
  if: "(event.ppn) != 0"
27
27
  set:
28
28
  posting_date: "event.bill_date"
29
- account: "tax.pkp ? '11500' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'stock' ? '51100' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'project' ? '51400' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'stock' ? '21150' : (event.expense_account != null ? event.expense_account : '61900'))))"
29
+ account: "tax.pkp ? '11500' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'stock' ? '51100' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'project' ? '51400' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'stock' ? '21150' : (((event.posting != null ? event.posting : (event.project != '' ? 'project' : ((event.goods_receipt != '' || event.purchase_order != '') && app_installed('stock') ? 'stock' : 'expense')))) == 'asset' ? '12100' : (event.expense_account != null ? event.expense_account : '61900')))))"
30
30
  amount: "event.ppn"
31
31
  voucher_type: event.model
32
32
  voucher: event.name
@@ -70,6 +70,7 @@ fields:
70
70
  - {value: '41200', label: {id: '4-1200 Retur penjualan'}}
71
71
  - {value: '49100', label: {id: '4-9100 Pendapatan lain-lain'}}
72
72
  - {value: '49200', label: {id: '4-9200 Pendapatan denda dan ganti rugi sewa'}}
73
+ - {value: '49300', label: {id: '4-9300 Laba (rugi) pelepasan aset tetap'}}
73
74
  - {value: '51100', label: {id: '5-1100 Harga pokok penjualan'}}
74
75
  - {value: '51200', label: {id: '5-1200 Selisih dan susut persediaan'}}
75
76
  - {value: '51300', label: {id: '5-1300 Upah langsung'}}
@@ -83,6 +84,7 @@ fields:
83
84
  - {value: '61700', label: {id: '6-1700 Beban pemasaran'}}
84
85
  - {value: '61800', label: {id: '6-1800 Beban perlengkapan dan perawatan'}}
85
86
  - {value: '61900', label: {id: '6-1900 Beban operasional lain'}}
87
+ - {value: '61950', label: {id: '6-1950 Beban penyusutan'}}
86
88
  - {value: '69100', label: {id: '6-9100 Beban pajak'}}
87
89
  # accounts:end
88
90
  # outlet staff and cashiers read the lines of their documents only because the posting flows run as them (a cancel
@@ -1,6 +1,6 @@
1
1
  # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/module.json
2
2
  name: accounting
3
- version: 1.3.3
3
+ version: 1.4.0
4
4
  title: {id: Akuntansi, en: Accounting}
5
5
  summary:
6
6
  id: Jurnal, saldo awal, tutup buku dan laporan keuangan dari transaksi yang sudah dicatat.
@@ -13,4 +13,4 @@ icon: book-2-line
13
13
  # date. Laporan keuangan (financial_report) sums the lines into a profit and loss, a balance sheet and a cash
14
14
  # summary (SAK EMKM). Tutup buku (period_close) locks every date up to closed_until.
15
15
  requires: {rangka: '>=0.5', users: ^1.2}
16
- optional: {contacts: ^1.0, outlets: ^1.0, invoicing: ^1.0, payments: ^1.0, procurement: ^1.0, stock: ^1.0, outlet_sales: ^1.0, projects: ^1.0, delivery: ^1.0, production: ^1.0, consignment: ^1.0, rental: ^1.0, pos: ^1.0}
16
+ optional: {contacts: ^1.0, outlets: ^1.0, invoicing: ^1.0, payments: ^1.0, procurement: ^1.0, stock: ^1.0, outlet_sales: ^1.0, projects: ^1.0, delivery: ^1.0, production: ^1.0, consignment: ^1.0, rental: ^1.0, pos: ^1.0, fixed_assets: ^1.0}