Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenGnu committed Oct 6, 2024
2 parents c3455b3 + 105a5ea commit cd6ff14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ protected void configure(Separator<?> separator) {
jBatchSize.setVisible(false);
}
//Color
if (material.getTotal().isSell()) {
if (material.isGrandTotal()) {
ColorSettings.config(jColor, ColorEntry.REPROCESSED_EQUAL);
} else if (material.getTotal().isSell()) {
ColorSettings.config(jColor, ColorEntry.REPROCESSED_SELL);
} else if (material.getTotal().isReprocess()) {
ColorSettings.config(jColor, ColorEntry.REPROCESSED_REPROCESS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public String getTypeName() {
}

public double getValue() {
return getSellPrice() * getPortionSize();
return getSellPrice() * count;
}

public boolean isSell() {
Expand Down

0 comments on commit cd6ff14

Please sign in to comment.