fix
This commit is contained in:
parent
595e77fc63
commit
5aa7113d7f
2 changed files with 10 additions and 1 deletions
|
|
@ -68,3 +68,9 @@ Feldmühle
|
||||||
|
|
||||||
- D14169
|
- D14169
|
||||||
K74169
|
K74169
|
||||||
|
|
||||||
|
K76233 HSH Papier GmbH & Co. KG
|
||||||
|
|
||||||
|
D16233 Manfred Ziegler Transport GmbH
|
||||||
|
|
||||||
|
Problemkind: https://alexander-logistics-dwc.office-workflow.de/pages/workitems/workitem.xhtml?id=9dd64b0a-cfe1-4174-aea4-0e8af45b823f
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,10 @@ public class InvoiceUtil {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String buildBPID(String key) {
|
public static String buildBPID(String key) {
|
||||||
|
if (key == null || key.length() < 1) {
|
||||||
|
// no data
|
||||||
|
return key;
|
||||||
|
}
|
||||||
key = key.toUpperCase();
|
key = key.toUpperCase();
|
||||||
if (key.startsWith("D") || key.startsWith("K")) {
|
if (key.startsWith("D") || key.startsWith("K")) {
|
||||||
key = key.substring(1);
|
key = key.substring(1);
|
||||||
|
|
@ -189,7 +193,6 @@ public class InvoiceUtil {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String getBPID(ItemCollection invoice) {
|
public static String getBPID(ItemCollection invoice) {
|
||||||
|
|
||||||
if (isCreditorInvoice(invoice)) {
|
if (isCreditorInvoice(invoice)) {
|
||||||
// key ist cdtr.number
|
// key ist cdtr.number
|
||||||
return buildBPID(invoice.getItemValueString("cdtr.number"));
|
return buildBPID(invoice.getItemValueString("cdtr.number"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue