diff --git a/src/main/java/net/nikr/eve/jeveasset/gui/tabs/stockpile/StockpileDialog.java b/src/main/java/net/nikr/eve/jeveasset/gui/tabs/stockpile/StockpileDialog.java index 1fa640a1d..3ff11118e 100644 --- a/src/main/java/net/nikr/eve/jeveasset/gui/tabs/stockpile/StockpileDialog.java +++ b/src/main/java/net/nikr/eve/jeveasset/gui/tabs/stockpile/StockpileDialog.java @@ -554,6 +554,9 @@ void updateData() { myLocations.add(asset.getLocation().getRegion()); } for (MyIndustryJob industryJob : program.getIndustryJobsList()) { + if (!industryJob.isNotDeliveredToAssets()) { + continue; //Only open industry jobs + } myLocations.add(industryJob.getLocation().getLocation()); myLocations.add(industryJob.getLocation().getSystem()); myLocations.add(industryJob.getLocation().getConstellation()); diff --git a/src/main/java/net/nikr/eve/jeveasset/gui/tabs/values/DataSetCreator.java b/src/main/java/net/nikr/eve/jeveasset/gui/tabs/values/DataSetCreator.java index bb5307aec..5870cb3d9 100644 --- a/src/main/java/net/nikr/eve/jeveasset/gui/tabs/values/DataSetCreator.java +++ b/src/main/java/net/nikr/eve/jeveasset/gui/tabs/values/DataSetCreator.java @@ -250,7 +250,7 @@ protected void addContracts(List contractItems, Map v //Transporting cargo (will get collateral back) if (acceptor != null) { //Not Done & Balance Updated = Add Collateral - //If ballance is not updated, there is nothing to counter... + //If balance is not updated, there is nothing to counter... if (balanceUpdated(contract.getDateIssued(), acceptor) && contract.isInProgress()) { addContractCollateral(contract, values, total, date, acceptor.getOwnerName()); //OK } @@ -260,14 +260,14 @@ protected void addContracts(List contractItems, Map v if (issuer != null) { //Issuer if (contract.isOpen()) { //Not Completed //Not Done & Balance Updated = Add Reward (We still own the isk, until the contract is completed) - //If ballance is not updated, there is nothing to counter... + //If balance is not updated, there is nothing to counter... if (balanceUpdated(contract.getDateIssued(), issuer)) { //Buying: +Reward addContractValue(values, total, date, issuer.getOwnerName(), contract.getReward()); //OK } // else: Selling: we do not own the price isk, until the contract is completed } else if (contract.isCompletedSuccessful()) { //Completed - //Done & Ballance not updated yet = Add Price + Remove Reward (Contract completed, update with the current values) - //If ballance is updated, so are all the values + //Done & Balance not updated yet = Add Price + Remove Reward (Contract completed, update with the current values) + //If balance is updated, so are all the values if (balanceNotUpdated(contract.getDateCompleted(), issuer)) { //NOT TESTED //Sold: +Price addContractValue(values, total, date, issuer.getOwnerName(), contract.getPrice()); @@ -277,8 +277,8 @@ protected void addContracts(List contractItems, Map v } } if (acceptor != null && contract.isCompletedSuccessful()) { //Completed - //Done & Ballance not updated yet = Remove Price & Add Reward (Contract completed, update with the current values) - //If ballance is updated, so are all the values + //Done & Balance not updated yet = Remove Price & Add Reward (Contract completed, update with the current values) + //If balance is updated, so are all the values if (balanceNotUpdated(contract.getDateCompleted(), acceptor)) { //NOT TESTED //Bought: -Price addContractValue(values, total, date, acceptor.getOwnerName(), -contract.getPrice());