Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: capture module charges in cargo #503

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,15 @@ private void exportEFT() {
count = 0L;
}
cargo.put(asset.getTypeName(), count + asset.getCount());
} else {
} else if (asset.getItem().getCategory().equals("Charge")){
Long count = cargo.get(asset.getTypeName());
if (count == null) {
count = 0L;
}
cargo.put(asset.getTypeName(), count + asset.getCount());
}

else {
String flag = asset.getFlag().replaceAll("\\d", "");
int index;
try {
Expand Down Expand Up @@ -455,6 +463,7 @@ private void writeCount(StringBuilder builder, Map<String, Long> modules) {
builder.append("\r\n");
} else {
builder.append(entry.getKey());
builder.append("\r\n");
}
}
}
Expand Down
Loading