Skip to content

Commit

Permalink
ACAS-696: Fix vendorID updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbolt committed Oct 24, 2023
1 parent d8b00d0 commit cd0ea3b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/labsynch/labseer/domain/Lot.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class Lot {

@Size(max = 255)
@Column(name = "vendorid")
private String vendorId;
private String vendorID;

@ManyToOne
@JoinColumn(name = "salt_form")
Expand Down Expand Up @@ -898,12 +898,12 @@ public void setVendor(Vendor vendor) {
this.vendor = vendor;
}

public String getVendorId() {
return this.vendorId;
public String getVendorID() {
return this.vendorID;
}

public void setVendorId(String vendorId) {
this.vendorId = vendorId;
public void setVendorID(String vendorID) {
this.vendorID = vendorID;
}

public Set<FileList> getFileLists() {
Expand Down Expand Up @@ -1074,7 +1074,7 @@ public void setLotAliases(Set<LotAlias> lotAliases) {
"registeredBy", "modifiedDate", "modifiedBy", "barcode", "color", "notebookPage", "amount", "amountUnits",
"solutionAmount", "solutionAmountUnits", "supplier", "supplierID", "purity", "purityOperator",
"purityMeasuredBy", "chemist", "percentEE", "comments", "isVirtual", "ignore", "physicalState", "vendor",
"vendorId", "saltForm", "fileLists", "retain", "retainUnits", "retainLocation", "meltingPoint",
"vendorID", "saltForm", "fileLists", "retain", "retainUnits", "retainLocation", "meltingPoint",
"boilingPoint", "supplierLot", "project", "parent", "bulkLoadFile", "lambda", "absorbance", "stockSolvent",
"stockLocation", "observedMassOne", "observedMassTwo", "tareWeight", "tareWeightUnits", "totalAmountStored",
"totalAmountStoredUnits", "lotAliases", "storageLocation");
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/labsynch/labseer/dto/LotDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.labsynch.labseer.domain.IsoSalt;
import com.labsynch.labseer.domain.Lot;
import com.labsynch.labseer.domain.LotAlias;
Expand Down Expand Up @@ -67,7 +68,7 @@ public class LotDTO {
private Double totalAmountStored;
private String totalAmountStoredUnitsCode;
private String vendorCode;
private String vendorId;
private String vendorID;
private String saltFormCorpName;
private String casNumber;
private String saltAbbrevs;
Expand Down Expand Up @@ -598,12 +599,12 @@ public void setVendorCode(String vendorCode) {
this.vendorCode = vendorCode;
}

public String getVendorId() {
return this.vendorId;
public String getVendorID() {
return this.vendorID;
}

public void setVendorId(String vendorId) {
this.vendorId = vendorId;
public void setVendorID(String vendorID) {
this.vendorID = vendorID;
}

public String getSaltFormCorpName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ public void writeRegisteredMol(int numRecordsRead, CmpdRegMolecule mol, MetalotR
((metalotReturn.getMetalot().getLot().getSupplierID() == null) ? ""
: metalotReturn.getMetalot().getLot().getSupplierID()));
mol.setProperty("Registered Lot Vendor ID",
((metalotReturn.getMetalot().getLot().getVendorId() == null) ? ""
: metalotReturn.getMetalot().getLot().getVendorId()));
((metalotReturn.getMetalot().getLot().getVendorID() == null) ? ""
: metalotReturn.getMetalot().getLot().getVendorID()));
if (!parentAliasList.isEmpty()) {
for (String alias : parentAliasList) {
if (allParentAliases.length() == 0)
Expand Down Expand Up @@ -1384,7 +1384,7 @@ public Lot createLot(CmpdRegMolecule mol, int recordNumber, Collection<BulkLoadP
lot.setColor(getStringValueFromMappings(mol, "Lot Color", mappings, results, recordNumber));
lot.setSupplier(getStringValueFromMappings(mol, "Lot Supplier", mappings, results, recordNumber));
lot.setSupplierID(getStringValueFromMappings(mol, "Lot Supplier ID", mappings, results, recordNumber));
lot.setVendorId(getStringValueFromMappings(mol, "Lot Vendor ID", mappings, results, recordNumber));
lot.setVendorID(getStringValueFromMappings(mol, "Lot Vendor ID", mappings, results, recordNumber));
lot.setComments(getStringValueFromMappings(mol, "Lot Comments", mappings, results, recordNumber));
lot.setSupplierLot(getStringValueFromMappings(mol, "Lot Supplier Lot", mappings, results, recordNumber));
lot.setMeltingPoint(getNumericValueFromMappings(mol, "Lot Melting Point", mappings, results, recordNumber));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ private int writeLotsToSDF(String exportSDFFileName, Collection<LotDTO> lotDTOs)
mol.setProperty("Supplier", lotDTO.getSupplier());
if (lotDTO.getSupplierID() != null)
mol.setProperty("Supplier ID", lotDTO.getSupplierID());
if (lotDTO.getVendorId() != null)
mol.setProperty("Vendor ID", lotDTO.getVendorId());
if (lotDTO.getVendorID() != null)
mol.setProperty("Vendor ID", lotDTO.getVendorID());
if (lotDTO.getSupplierLot() != null)
mol.setProperty("Supplier Lot", lotDTO.getSupplierLot());
if (lotDTO.getSynthesisDate() != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public MetalotReturn processAndSave(Metalot metaLot, MetalotReturn mr, ArrayList
//
oldLot.setObservedMassOne(lot.getObservedMassOne());
oldLot.setObservedMassTwo(lot.getObservedMassTwo());
oldLot.setVendorId(lot.getVendorId());
oldLot.setVendorID(lot.getVendorID());
oldLot.setTareWeight(lot.getTareWeight());
oldLot.setTareWeightUnits(lot.getTareWeightUnits());
oldLot.setTotalAmountStored(lot.getTotalAmountStored());
Expand Down

0 comments on commit cd0ea3b

Please sign in to comment.