应收发票

product
Vayne 2 years ago
parent f6c9a197b3
commit 27f477ccfa

@ -169,8 +169,9 @@ public class ArinvoicesController {
List<String> poundlistIdList = salesorder_item0Service.listObjs(queryWrapper).stream().map(o -> (String) o).collect(Collectors.toList()); List<String> poundlistIdList = salesorder_item0Service.listObjs(queryWrapper).stream().map(o -> (String) o).collect(Collectors.toList());
List<PoundlistEntity> poundlistEntityList = poundlistService.queryPoundListByIds(poundlistIdList); List<PoundlistEntity> poundlistEntityList = poundlistService.queryPoundListByIds(poundlistIdList);
for (PoundlistEntity poundlistEntity: poundlistEntityList) { for (PoundlistEntity poundlistEntity: poundlistEntityList) {
poundlistEntity.setIsInvoicing("1"); poundlistEntity.setSalesStatus("2");//修改磅单状态
poundlistEntity.setInputDate(new Date()); poundlistEntity.setIsExpense("1");//修改销项票状态
poundlistEntity.setOutputDate(new Date());//修改销项票日期
} }
poundlistService.updateBatchById(poundlistEntityList); poundlistService.updateBatchById(poundlistEntityList);
}else { }else {
@ -490,8 +491,8 @@ public class ArinvoicesController {
List<String> poundlistIdList = salesorder_item0Service.listObjs(queryWrapper3).stream().map(o -> (String) o).collect(Collectors.toList()); List<String> poundlistIdList = salesorder_item0Service.listObjs(queryWrapper3).stream().map(o -> (String) o).collect(Collectors.toList());
List<PoundlistEntity> poundlistEntityList = poundlistService.queryPoundListByIds(poundlistIdList); List<PoundlistEntity> poundlistEntityList = poundlistService.queryPoundListByIds(poundlistIdList);
for (PoundlistEntity poundlistEntity: poundlistEntityList) { for (PoundlistEntity poundlistEntity: poundlistEntityList) {
poundlistEntity.setIsInvoicing("1"); poundlistEntity.setIsExpense("1");//修改销项票状态
poundlistEntity.setInputDate(new Date()); poundlistEntity.setOutputDate(new Date());//修改销项票日期
} }
poundlistService.updateBatchById(poundlistEntityList); poundlistService.updateBatchById(poundlistEntityList);
}else { }else {

@ -176,6 +176,7 @@ public class InvoicesController {
List<PoundlistEntity> poundlistEntityList = purchaseorderitemService.getPoundList(entity.getPurchaseorderId()); List<PoundlistEntity> poundlistEntityList = purchaseorderitemService.getPoundList(entity.getPurchaseorderId());
if (purchaseorderEntity.getAmount().compareTo(entity.getInvoiceAmount()) == 0) { if (purchaseorderEntity.getAmount().compareTo(entity.getInvoiceAmount()) == 0) {
for (PoundlistEntity poundlistEntity: poundlistEntityList) { for (PoundlistEntity poundlistEntity: poundlistEntityList) {
poundlistEntity.setPurchaseStatus("1");
poundlistEntity.setIsInvoicing("1"); poundlistEntity.setIsInvoicing("1");
poundlistEntity.setInputDate(new Date()); poundlistEntity.setInputDate(new Date());
} }
@ -509,6 +510,7 @@ public class InvoicesController {
List<PoundlistEntity> poundlistEntityList = purchaseorderitemService.getPoundList(subentity.getPurchaseorderId()); List<PoundlistEntity> poundlistEntityList = purchaseorderitemService.getPoundList(subentity.getPurchaseorderId());
if (purchaseorderEntity.getAmount().compareTo(entity.getInvoiceAmount()) == 0) { if (purchaseorderEntity.getAmount().compareTo(entity.getInvoiceAmount()) == 0) {
for (PoundlistEntity poundlistEntity: poundlistEntityList) { for (PoundlistEntity poundlistEntity: poundlistEntityList) {
poundlistEntity.setPurchaseStatus("1");
poundlistEntity.setIsInvoicing("1"); poundlistEntity.setIsInvoicing("1");
poundlistEntity.setInputDate(new Date()); poundlistEntity.setInputDate(new Date());
} }

Loading…
Cancel
Save