Merge branch 'master' into feature/RefactoringGestioneColli
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -43,7 +43,7 @@ public class DocumentRules extends QueryRules {
|
|||||||
public static String getCodPagaDocV(DtbDoct dtbDoct) {
|
public static String getCodPagaDocV(DtbDoct dtbDoct) {
|
||||||
if (!UtilityString.isNullOrEmpty(dtbDoct.getDtbTipi().getCodPaga())) {
|
if (!UtilityString.isNullOrEmpty(dtbDoct.getDtbTipi().getCodPaga())) {
|
||||||
return dtbDoct.getDtbTipi().getCodPaga();
|
return dtbDoct.getDtbTipi().getCodPaga();
|
||||||
} else if (UtilityString.isNullOrEmpty(dtbDoct.getVtbClie().getCodPaga())) {
|
} else if (!UtilityString.isNullOrEmpty(dtbDoct.getVtbClie().getCodPaga())) {
|
||||||
return dtbDoct.getVtbClie().getCodPaga();
|
return dtbDoct.getVtbClie().getCodPaga();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ public class UtilityString {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static LocalDate parseLocalDate(String value) throws IOException {
|
public static LocalDate parseLocalDate(String value) throws IOException {
|
||||||
|
if (value == null || value.isEmpty())
|
||||||
|
return null;
|
||||||
String format = determineDateFormat(value);
|
String format = determineDateFormat(value);
|
||||||
if (format == null) {
|
if (format == null) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user