Explorar o código

发票导出取客户订单号

fenghaifu hai 2 meses
pai
achega
245b54509e

+ 4 - 1
srm-module-code/src/main/java/org/jeecg/modules/saleCode/controller/SaleInvoiceController.java

@@ -753,6 +753,8 @@ public class SaleInvoiceController {
                     SaleOrder saleOrder = saleOrderService.getOne(orderLambdaQueryWrapper);
                     if (saleOrder != null){
                         saleInvoice.setPaymentTerms(saleOrder.getPaymentTerms());
+                        // 客户订单号
+                        saleInvoice.setContactsNo(saleOrder.getCustomerOrder());
                     }
                 }
                 // 查询数据字典
@@ -811,13 +813,14 @@ public class SaleInvoiceController {
                 saleInvoice.setShipName(shipname);
                 saleInvoice.setImo(imo);
                 // 项目名称
+                /*
                 if (saleInvoice.getProject() != null){
                     BaseProjectArchive projectArchive = baseProjectArchiveService.getById(saleInvoice.getProject());
                     if (projectArchive != null){
                         saleInvoice.setContactsNo(projectArchive.getName());
                     }
 
-                }
+                }*/
 
                 if(productList.size() > 0){