fix sammelgutschrift

This commit is contained in:
Ralph Soika 2024-07-31 12:45:34 +02:00
parent 625adb3aa5
commit 4178b8e4c4

View file

@ -674,14 +674,19 @@ public class CargosoftXMLInvoiceImportService {
}
/**
* Bei G = Gutschrift oder SR = Stornorechnung müssen wir das vorzeichen ändern
* G = Gutschrift
* SR = Stornorechnung
* GK = Sammelgutschrift
* SS = Sammelrechnung Storno
*
* müssen wir das vorzeichen ändern
* dies wird über den Invoice.Type geprüft
*
* @return
*/
private boolean isGutschrift(ItemCollection workitem) {
String type = workitem.getItemValueString("invoice.type");
return ("G".equals(type) || "SR".equals(type));
return ("G".equals(type) || "SR".equals(type) || "GK".equals(type) || "SS".equals(type));
}
/**