-
-
Notifications
You must be signed in to change notification settings - Fork 473
Closed
Labels
domain: backendChanges or discussions relating to the backend serverChanges or discussions relating to the backend serverstatus: needs investigationAn issue that needs to be investigated. Typically involves identifying the source of a bugAn issue that needs to be investigated. Typically involves identifying the source of a bugtype: bugAddresses unintended behaviours of the appAddresses unintended behaviours of the app
Description
URI
/openboxes/product/createProductSnapshot/2c938084975398ce01975751713a00ee
Class
groovy.lang.MissingPropertyException
Message
No such property: comments for class: org.pih.warehouse.inventory.BinLocationItem
def recordStock(Location location, List lineItems) {
if (!location || !location.inventory) {
throw new IllegalArgumentException("Record stock transactions require a location")
}
Transaction transaction = new Transaction()
transaction.transactionDate = new Date()
transaction.inventory = location.inventory
transaction.transactionNumber = generateTransactionNumber(transaction)
transaction.transactionType = TransactionType.get(Constants.PRODUCT_INVENTORY_TRANSACTION_TYPE_ID)
lineItems.each { lineItem ->
// Add transaction entry to transaction
TransactionEntry transactionEntry = new TransactionEntry()
transactionEntry.binLocation = lineItem.binLocation
transactionEntry.inventoryItem = lineItem.inventoryItem
transactionEntry.quantity = lineItem.quantity
transactionEntry.comments = lineItem.comments <----------------------------- Please consider this line. Thank you.
transaction.addToTransactionEntries(transactionEntry)
}
if (!transaction.hasErrors() && transaction.save()) {
log.info("Transaction saved: " + transaction)
}
return transaction
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
domain: backendChanges or discussions relating to the backend serverChanges or discussions relating to the backend serverstatus: needs investigationAn issue that needs to be investigated. Typically involves identifying the source of a bugAn issue that needs to be investigated. Typically involves identifying the source of a bugtype: bugAddresses unintended behaviours of the appAddresses unintended behaviours of the app