2
我必須通過代碼設置InventLocation 地址。 通過代碼我知道如何找到InventLocation地址,但如果它不在那裏,我想創建它。如何通過代碼設置InventLocation地址?
我的代碼是這樣的:
InventLocation invLocationTable;
LogisticsPostalAddress logisticsPostalAddress;
invLocationTable = InventLocation::find(MYinvLocationId);
logisticsPostalAddress = LogisticsLocationEntity::findPostalAddress(invLocationTable, LogisticsLocationRoleType::None);
if (!logisticsPostalAddress)
{
// Here I want to create/set the InventLocation adress, but I don't know how to do it.
}
是否有可能創造呢?
嗨@Kevin Kabatra,謝謝。好方法! – ulisses