在POLine的InventoryID查找上添加属性文件

时间:2018-08-13 03:49:21

标签: acumatica

我想在POLine的InventoryID查找上添加属性。我编写了以下代码,并在InventoryId查找上添加了列。我想使属性字段可过滤。我不确定该怎么做。谁能帮我这个忙吗?而且我还想在采购订单屏幕上的添加项查找中为InventoryId添加相同的过滤条件。

Traceback (most recent call last):
File "dapp_bdb.py", line 134, in <module>
main()
File "dapp_bdb.py", line 112, in main
blockchain = LevelDBBlockchain(settings.chain_leveldb_path)
File "/home/ubuntu/.local/lib/python3.6/site-packages/neo/Implementations/Blockchains/LevelDB/LevelDBBlockchain.py", line 190, in __init__
self.Persist(Blockchain.GenesisBlock())
File "/home/ubuntu/.local/lib/python3.6/site-packages/neo/Implementations/Blockchains/LevelDB/LevelDBBlockchain.py", line 691, in Persist
account = accounts.GetAndChange(output.AddressBytes, AccountState(output.ScriptHash))
File "/home/ubuntu/.local/lib/python3.6/site-packages/neo/Core/TX/Transaction.py", line 121, in AddressBytes
return bytes(self.Address, encoding='utf-8')
File "/home/ubuntu/.local/lib/python3.6/site-packages/neo/Core/TX/Transaction.py", line 111, in Address
return Crypto.ToAddress(self.ScriptHash)
File "/home/ubuntu/.local/lib/python3.6/site-packages/neocore/Cryptography/Crypto.py", line 103, in ToAddress
return scripthash_to_address(script_hash.Data)
File "/home/ubuntu/.local/lib/python3.6/site-packages/neocore/Cryptography/Helper.py", line 78, in scripthash_to_address
return base58.b58encode(bytes(outb)).decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'

1 个答案:

答案 0 :(得分:0)

您可以为POLine网格设置FastFilterFields属性,以使属性列可过滤。

示例:FastFilterFields =“ COLOR_ItemAttributes”

这应该允许您基于InventoryID查找中的属性列来过滤网格。