fix: DocType not found
This commit is contained in:
parent
0b009da122
commit
c6acb0d200
@ -563,9 +563,16 @@ class SerialandBatchBundle(Document):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def child_table(self):
|
def child_table(self):
|
||||||
|
parent_child_map = {
|
||||||
|
"Asset Capitalization": "Asset Capitalization Stock Item",
|
||||||
|
"Asset Repair": "Asset Repair Consumed Item",
|
||||||
|
"Quotation": "Packed Item",
|
||||||
|
"Stock Entry": "Stock Entry Detail",
|
||||||
|
}
|
||||||
|
|
||||||
table = f"{self.voucher_type} Item"
|
table = f"{self.voucher_type} Item"
|
||||||
if self.voucher_type == "Stock Entry":
|
if self.voucher_type in parent_child_map:
|
||||||
table = f"{self.voucher_type} Detail"
|
table = parent_child_map[self.voucher_type]
|
||||||
|
|
||||||
return table
|
return table
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user