Skip to content

Commit

Permalink
Se corrige problema con espacios en blanco para nombres de proveedores
Browse files Browse the repository at this point in the history
en TXT de Bancaribe
  • Loading branch information
yamelsenih committed Nov 2, 2022
1 parent aa4659b commit f323eb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ public int exportToFile(List<MPaySelectionCheck> checks, File file, StringBuffer
// Process Account Name
String businessPartnerName = processValue(businessPartnerAccount.getA_Name());
if(Optional.ofNullable(businessPartnerName).isPresent()) {
businessPartnerName = rightPadding(businessPartnerName, 64, "", false);
businessPartnerName = businessPartnerName.trim();
if(businessPartnerName.length() > 64) {
businessPartnerName = businessPartnerName.substring(0, 64);
}
} else {
addError(Msg.parseTranslation(Env.getCtx(), "@A_Name@ @NotFound@: " + businessPartner.getValue() + " - " + businessPartner.getName()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ public int exportToFile(List<MPaySelectionCheck> checks, File file, StringBuffer
// Process Account Name
String businessPartnerName = processValue(businessPartnerAccount.getA_Name());
if(Optional.ofNullable(businessPartnerName).isPresent()) {
businessPartnerName = rightPadding(businessPartnerName, 64, "", false);
businessPartnerName = businessPartnerName.trim();
if(businessPartnerName.length() > 64) {
businessPartnerName = businessPartnerName.substring(0, 64);
}
} else {
addError(Msg.parseTranslation(Env.getCtx(), "@A_Name@ @NotFound@: " + businessPartner.getValue() + " - " + businessPartner.getName()));
}
Expand Down

0 comments on commit f323eb4

Please sign in to comment.