中性化库存凭据类型

This commit is contained in:
yml
2026-05-25 22:11:30 +08:00
parent 8ce16d9a36
commit 2103416c7b
14 changed files with 42 additions and 28 deletions
@@ -46,7 +46,7 @@ const INVENTORY_ITEM_SELECT = `
export async function findFirstAvailableInventoryItemBySkuCode(
skuCode: string,
credentialType = 'tencent_code',
credentialType = 'claim_code',
inventoryGroupCodes: InventoryGroupCodesInput = null,
): Promise<InventoryItemRow | null> {
const normalizedInventoryGroupCodes = normalizeInventoryGroupCodes(inventoryGroupCodes)
@@ -360,7 +360,7 @@ export async function createInventoryItems(rows: InventoryCreateItemInput[]): Pr
[
row.batchNo || '',
row.skuCode,
row.credentialType || 'tencent_code',
row.credentialType || 'claim_code',
inventoryGroupCode,
displayValue,
payloadJson,