hasOne(OracleBasCode::class,'code','asntype') ->where('codeid','ASN_TYP'); } public function asnStatus(): HasOne { return $this->hasOne(OracleBasCode::class,'code','asnstatus') ->where('codeid','ASN_STS'); } public function basCustomer(): HasOne { return $this->hasOne(OracleBasCustomer::class,'customerid','customerid') ->where('customer_type','OW'); } public function asnDetails(): HasMany { return $this->hasMany(OracleDOCASNDetail::class,'asnno','asnno') ->select('asnno','asnlineno','customerid','sku','skudescrc','linestatus','lotatt08','lotatt05','receivedqty','receivedqty_each','expectedqty','addtime','edittime'); } }