wuggemail@foxmail.com 3 maanden geleden
bovenliggende
commit
a068d36508
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      app/cxinv/controller/FinancialCancel.php

+ 2 - 2
app/cxinv/controller/FinancialCancel.php

@@ -48,11 +48,11 @@ class FinancialCancel extends Base
 
                 }
             }else{
-                $TzInfo=FinancialTz::with(['FinancialManager'])->where('id',$v)->findOrEmpty();
+                $TzInfo=FinancialTz::with(['Manager'])->where('id',$v)->findOrEmpty();
                 if($TzInfo->isEmpty()) return error("[$v]计提数据不存在");
                 if($TzInfo->status!=1 && $TzInfo->status!=2) return error("[$v]计提数据状态不正确");
                 if($TzInfo->status==2){
-                    $fz = ProductFz::where('company_code',$TzInfo->FinancialManager->seller_code)->where('fz_date',$TzInfo->fz_date)->findOrEmpty();
+                    $fz = ProductFz::where('company_code',$TzInfo->Manager->seller_code)->where('fz_date',$TzInfo->fz_date)->findOrEmpty();
                     if($fz->isEmpty()) return error("[$v]账期数据不存在");
                     if($fz->status!=0) return error("[$v]账期数据状态已封账/未解封");
                 }