When trying to update a receipt that has been connected to a purchase order, i get the following error: "One or more lines contain unassigned location and/or lot/serial number" Sometimes it works, and sometimes it doesn't. {
lines: [
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.264',
quantity: 65,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 1,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.265',
quantity: 170,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 2,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.266',
quantity: 78,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 3,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.267',
quantity: 41,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 4,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.268',
quantity: 283.2,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 5,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.269',
quantity: 106.8,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 6,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.270',
quantity: 44,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 7,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
},
{
allocations: [
{
operation: 'Insert',
lineNbr: null,
location: null,
lotSerialNumber: '2000.271',
quantity: 26,
uom: null,
expirationDate: null
}
],
operation: 'Update',
lineNbr: 8,
lineType: null,
branchId: null,
branchNumber: null,
inventoryId: null,
warehouseId: null,
locationId: null,
transactionDescription: null,
uom: null,
receiptQty: null,
unitCost: null,
extCost: null,
discountPercent: null,
discountAmount: null,
manualDiscount: null,
discountCodeId: null,
amount: null,
taxCategoryId: null,
accountId: null,
accountDescription: null,
subaccount: null,
actualAccountId: null,
actualSubaccount: null,
projectId: null,
projectTaskId: null,
expirationDate: null,
lotSerialNumber: null,
poOrderType: null,
poOrderNbr: null,
poOrderLineNbr: null,
transferOrderType: null,
transferOrderNbr: null,
transferOrderLineNbr: null,
completePoLine: null
}
],
landedCost: null,
receiptType: null,
receiptNbr: '004044',
hold: false,
date: null,
postPeriod: null,
warehouseId: null,
supplierId: null,
locationId: null,
currency: null,
exchangeRate: null,
createBill: null,
supplierRef: null,
controlQty: null,
controlAmount: null,
branchNumber: null
}
... View more