|
@@ -28,11 +28,14 @@ class OrderContractSvc{
|
|
|
}
|
|
|
|
|
|
public function render(){
|
|
|
+ dd($this->taxName());
|
|
|
$content=View::instance()
|
|
|
->config('view_path',APP_PATH.'contract/view/')
|
|
|
->fetch('show',[
|
|
|
'order'=>$this->getOrder(),
|
|
|
- 'no'=>sprintf('PK%s%02d',date('YmdHis'),$this->getOrder()->id)
|
|
|
+ 'no'=>sprintf('PK%s%02d',date('YmdHis'),$this->getOrder()->id),
|
|
|
+ 'tax_name'=>$this->taxName(),
|
|
|
+ 'tax_no'=>$this->getTaxNo(),
|
|
|
]);
|
|
|
echo $content;
|
|
|
}
|
|
@@ -42,7 +45,7 @@ class OrderContractSvc{
|
|
|
if(empty($tax)){
|
|
|
return '';
|
|
|
}
|
|
|
- if(!$tax['u_type']==1){
|
|
|
+ if($tax['u_type']==1){
|
|
|
return $tax['name'];
|
|
|
}
|
|
|
return $tax['open_name'];
|