Skip to content

Commit 5d4b050

Browse files
authored
Merge pull request #409 from efeone/aumms_fix2
Fix:Added files to hooks.py
2 parents 3ecd47b + a69b421 commit 5d4b050

File tree

4 files changed

+2330
-1
lines changed

4 files changed

+2330
-1
lines changed

aumms/aumms/doctype/aumms_item/aumms_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def create_or_update_item(self, item=None):
107107

108108
if not item:
109109
# Case of new Item
110-
# item_doc.insert(ignore_permissions = True)
110+
item_doc.insert(ignore_permissions = True)
111111
# Set Item Group link to AuMMS Item Group
112112
frappe.db.set_value('AuMMS Item', self.name, 'item', item_doc.name)
113113
elif frappe.db.exists("Item", item):

aumms/fixtures/item_type.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"docstatus": 0,
4+
"doctype": "Item Type",
5+
"is_purity_item": 1,
6+
"item_type": "Diamond",
7+
"modified": "2024-05-10 13:26:16.577821",
8+
"name": "Diamond"
9+
},
10+
{
11+
"docstatus": 0,
12+
"doctype": "Item Type",
13+
"is_purity_item": 1,
14+
"item_type": "Gold",
15+
"modified": "2024-05-07 17:02:21.803577",
16+
"name": "Gold"
17+
}
18+
]

aumms/fixtures/purity.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[
2+
{
3+
"amended_from": null,
4+
"docstatus": 1,
5+
"doctype": "Purity",
6+
"modified": "2024-05-10 13:28:07.968079",
7+
"name": "24k",
8+
"purity": "24k",
9+
"purity_percentage": 99.0
10+
},
11+
{
12+
"amended_from": null,
13+
"docstatus": 1,
14+
"doctype": "Purity",
15+
"modified": "2024-05-29 14:42:49.826941",
16+
"name": "18k",
17+
"purity": "18k",
18+
"purity_percentage": 75.0
19+
},
20+
{
21+
"amended_from": null,
22+
"docstatus": 1,
23+
"doctype": "Purity",
24+
"modified": "2024-05-29 14:41:50.330455",
25+
"name": "22k",
26+
"purity": "22k",
27+
"purity_percentage": 91.67
28+
}
29+
]

0 commit comments

Comments
 (0)