|
@@ -170,7 +170,7 @@ public class FlowContractInvoiceService {
|
|
|
if (relations.size() == 1) {
|
|
|
ContractInvoiceRelation relation = relations.get(0);
|
|
|
relation.setInvoiceAmount(entity.getInvoiceAmount());
|
|
|
- if(FlowStatusConstants.FLOW_NULLY==(entity.getFlowStatus())){
|
|
|
+ if(entity.getFlowStatus() != null && FlowStatusConstants.FLOW_NULLY == (entity.getFlowStatus())){
|
|
|
relation.setInvoiceAmount(null);
|
|
|
}
|
|
|
contractInvoiceRelationService.updateById(relation);
|