updated the columns for transactions

This commit is contained in:
csawatzky 2025-04-08 14:39:24 -06:00
parent 97bbd41492
commit d3431f5559
4 changed files with 36 additions and 47 deletions

View file

@ -203,7 +203,6 @@ export default function GrainTransaction(props: Props) {
//create a transaction to enter into the table
const createTransaction = (finalVal: number) => {
console.log("create transaction")
let dest = selectedDestination;
let source = selectedSource;
let bpt = 1;
@ -249,16 +248,13 @@ export default function GrainTransaction(props: Props) {
grainTransaction.subtype = obj.subtype();
}
}
console.log(newTransaction)
transactionAPI.addTransaction(newTransaction, imageIDs).then(resp => {
console.log(resp)
newTransaction.key = resp.data.key;
closeDialogs(true, newTransaction);
});
};
const updateInventory = () => {
console.log("update inventory")
//this is the amount to add to the destination
let destinationAdd = Math.abs(
isNaN(parseFloat(grainChangeVal)) ? 1 : parseFloat(grainChangeVal)