예제 #1
0
 public function actionSaveAddFee()
 {
     $dates = $_GET["dates"];
     $amountAddFee = $_GET["amountAddFee"];
     $plate = $_GET["plateAddFee"];
     if (Payments::addBalanceFee($amountAddFee, $plate, $dates)) {
         echo "good";
     } else {
         echo "bad";
     }
 }
예제 #2
0
 function actionConfirmIncome()
 {
     $truck = Trucks::checkPlate(MYChtml::check_num($this->plate));
     if ($truck) {
         //$truck = new Trucks();
         $cash = (double) $_POST["cash"];
         if (Payments::addBalanceFee($cash, MYChtml::check_num($this->plate))) {
             $this->ErrorCode = "0";
             $this->data["amount"] = $truck->balance_license_fee + $cash;
             $this->data["goods"] = $this->plate;
         } else {
             $this->ErrorCode = "1";
         }
     }
     $this->sendRequest();
 }