/** * Saved Data Purchaseorder * @author ptrnov <*****@*****.**> * @since 1.1 */ public function discount_saved() { if ($this->validate()) { $poHeader = Purchaseorder::findOne($this->kD_PO); $poHeader->PAJAK = $this->pAJAK; if ($poHeader->save()) { return $poHeader; } return $poHeader; } return null; }
/** * Saved Data Purchaseorder * @author ptrnov <*****@*****.**> * @since 1.1 */ public function eta_saved() { if ($this->validate()) { $poHeader = Purchaseorder::findOne($this->kD_PO); $poHeader->ETA = \Yii::$app->formatter->asDate($this->eTA, 'Y-M-d'); if ($poHeader->save()) { return $poHeader; } return $poHeader; } return null; }
/** * Saved Data Purchaseorder * @author ptrnov <*****@*****.**> * @since 1.1 */ public function delevery_saved() { if ($this->validate()) { $poHeader = Purchaseorder::findOne($this->kD_PO); $poHeader->DELIVERY_COST = $this->dELIVERY; if ($poHeader->save()) { return $poHeader; } return $poHeader; } return null; }
/** * Saved Data Purchaseorder * @author ptrnov <*****@*****.**> * @since 1.1 */ public function billing_saved() { if ($this->validate()) { $poHeader = Purchaseorder::findOne($this->kD_PO); $poHeader->BILLING = $this->bILLING; if ($poHeader->save()) { return $poHeader; } return $poHeader; } return null; }
/** * Saved Data Purchaseorder * @author ptrnov <*****@*****.**> * @since 1.1 */ public function supplier_saved() { if ($this->validate()) { $poHeader = Purchaseorder::findOne($this->kD_PO); $poHeader->KD_SUPPLIER = $this->kD_SUPPLIER; if ($poHeader->save()) { return $poHeader; } return $poHeader; } return null; }
/** * Saved Data Purchaseorder * @author ptrnov <*****@*****.**> * @since 1.1 */ public function shipping_saved() { if ($this->validate()) { $poHeader = Purchaseorder::findOne($this->kD_PO); $poHeader->SHIPPING = $this->sHIPPING; if ($poHeader->save()) { return $poHeader; } return $poHeader; } return null; }
/** * Finds the Purchaseorder model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param string $id * @return Purchaseorder the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = Purchaseorder::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }