修复bug
This commit is contained in:
@@ -181,7 +181,7 @@ export default {
|
|||||||
const assembledBatches = Array.from(batchMap.values());
|
const assembledBatches = Array.from(batchMap.values());
|
||||||
assembledBatches.forEach(batch => {
|
assembledBatches.forEach(batch => {
|
||||||
// Use currentTotalQuantity and currentTotalPigsInPens directly from the batch object
|
// Use currentTotalQuantity and currentTotalPigsInPens directly from the batch object
|
||||||
batch.unassigned_pig_count = (batch.currentTotalQuantity || 0) - (batch.currentTotalPigsInPens || 0);
|
batch.unassigned_pig_count = (batch.current_total_quantity || 0) - (batch.current_total_pigs_in_pens || 0);
|
||||||
});
|
});
|
||||||
return assembledBatches;
|
return assembledBatches;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user