|
|
@@ -1439,7 +1439,7 @@ public class TemplateImportServiceImpl implements ITemplateImportService {
|
|
|
if (lastDigitIndex > 0) {
|
|
|
String number = quantity.substring(0, lastDigitIndex + 1);
|
|
|
bills.setQuantity(new BigDecimal(number));
|
|
|
- String packingUnit = quantity.substring(lastDigitIndex + 1);
|
|
|
+ String packingUnit = quantity.substring(lastDigitIndex);
|
|
|
if (ObjectUtils.isNotNull(packingUnit)) {
|
|
|
BPackages packages = bPackagesService.getOne(new LambdaQueryWrapper<BPackages>()
|
|
|
.eq(BPackages::getTenantId, AuthUtil.getTenantId())
|
|
|
@@ -1749,7 +1749,7 @@ public class TemplateImportServiceImpl implements ITemplateImportService {
|
|
|
if (lastDigitIndex > 0) {
|
|
|
String number = quantity.substring(0, lastDigitIndex + 1);
|
|
|
bills.setQuantity(new BigDecimal(number));
|
|
|
- String packingUnit = quantity.substring(lastDigitIndex + 1);
|
|
|
+ String packingUnit = quantity.substring(lastDigitIndex);
|
|
|
if (ObjectUtils.isNotNull(packingUnit)) {
|
|
|
BPackages packages = bPackagesService.getOne(new LambdaQueryWrapper<BPackages>()
|
|
|
.eq(BPackages::getTenantId, AuthUtil.getTenantId())
|