/**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     include 'config.php';
     $transport = getTransport($config);
     $mapper = new XmlMapper();
     $this->apiConnector = new ApiConnector($config['clientname'], $transport, $mapper);
 }
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     include 'config.php';
     $transport = getTransport($config);
     $mapper = new XmlMapper();
     $this->apiConnector = new ApiConnector($config['clientname'], $transport, $mapper);
     $this->service = $this->apiConnector->getService('Invoice');
     if (!is_null(self::$invoiceId)) {
         $this->object = $this->service->getById(self::$invoiceId);
     }
 }
 /**
  * @covers Moneybird\ApiConnector::requestsLeft
  */
 public function testRequestsLeft()
 {
     include './config.php';
     $transport = getTransport($config);
     $mapper = new XmlMapper();
     try {
         $this->object = new ApiConnector($config['clientname'], $transport, $mapper);
         $this->assertGreaterThan(0, $this->object->requestsLeft());
     } catch (ForBiddenException $e) {
     }
 }
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     if (file_exists('../config.php')) {
         include '../config.php';
     } else {
         include 'config.php';
     }
     $transport = getTransport($config);
     $mapper = new XmlMapper();
     $connector = new ApiConnector($config['clientname'], $transport, $mapper);
     $this->object = $connector->getService('InvoiceProfile');
 }
예제 #5
0
                            <h5><strong><?php 
    echo getLead($comite_proyecto[0]);
    ?>
</strong></h5>
                        </div>
                        <div class="col s6">
                            <h6 class="benefit-title">BUDDY</h6>
                            <h5><strong><?php 
    echo getBuddy($comite_proyecto[0]);
    ?>
</strong></h5>
                        </div>
                        <div class="col s6">
                            <h6 class="benefit-title">TRANSPORT</h6>
                            <h5><strong><?php 
    echo getTransport($comite_proyecto[0]);
    ?>
</strong></h5>
                        </div>
                        <div class="col s6">
                            <h6 class="benefit-title">FEE</h6>
                            <h5><strong>$ <?php 
    echo getFee($comite_proyecto[0]);
    ?>
</strong></h5>
                        </div>
                    </div>
                </div>
            </div>
        </article>
    <?php 
예제 #6
0
                        <h5><strong><?php 
    echo getLead($comite_proyecto["CP_id"]);
    ?>
</strong></h5>
                    </div>
                    <div class="col s6">
                        <h6 class="benefit-title">BUDDY</h6>
                        <h5><strong><?php 
    echo getBuddy($comite_proyecto["CP_id"]);
    ?>
</strong></h5>
                    </div>
                    <div class="col s6">
                        <h6 class="benefit-title">TRANSPORT</h6>
                        <h5><strong><?php 
    echo getTransport($comite_proyecto["CP_id"]);
    ?>
</strong></h5>
                    </div>
                    <div class="col s6">
                        <h6 class="benefit-title">FEE</h6>
                        <h5><strong>$ <?php 
    echo getFee($comite_proyecto["CP_id"])["BEN_fee"];
    ?>
</strong></h5>
                    </div>
                </div>
            </div>
        </div>
    </article>
<?php 
예제 #7
0
$getShipment_period = getShipment_periodByID($idshipment_period);
$val_date_start = $getShipment_period['date_start'];
$change_date_start = date("d-m-Y", strtotime($val_date_start));
$val_date_end = $getShipment_period['date_end'];
$change_date_end = date("d-m-Y", strtotime($val_date_end));
$idfactory = $_GET['idfactory'];
$getFactory = getFactoryByID($idfactory);
$val_name_factory = $getFactory['name_factory'];
$status_shipment_factory = $_GET['status_shipment'];
$price = $_GET['price'];
//ใช้ไม่ได้
?>
<script>
    var idtransport;
    var data = JSON.stringify(<?php 
echo getTransport();
?>
);//ดึงค่า
    var Obj = JSON.parse(data);//Objตามจำนวนข้อมูล
    //alert(Obj);
    var Arr = new Array();
    var JSON_transportCode = new Array();
    var JSON_transportName = new Array();
    //pushข้อมูลลงArray
    for (var i = 0; i < Obj.length; i++) {
        //Arr.push(Obj[i].code_transport);
        Arr.push(Obj[i].name_transport + " (" + Obj[i].code_transport + ")");
        JSON_transportCode["'" + Obj[i].code_transport + "'"] = Obj[i].idtransport;
        JSON_transportName["'" + Obj[i].name_transport + "'"] = Obj[i].idtransport;
        console.log(JSON_transportCode);
        console.log(JSON_transportName);
 name="ips"  value="1"/>
                                    <label for="ips">IPS</label>
                                </div>
                                <div class="input-field col s4 m5">
                                    <input type="checkbox" class="filled-in" id="lead" <?php 
if (getLead($id) == "Yes") {
    echo "checked";
}
?>
 name="lead" value="1" />
                                    <label for="lead">LEAD</label>
                                </div>

                                <div class="input-field col s4 m5">
                                    <input type="checkbox" class="filled-in" id="transporte" <?php 
if (getTransport($id) == "Yes") {
    echo "checked";
}
?>
 name="transporte"  value="1"/>
                                    <label for="transporte">Transporte</label>
                                </div>
                            </div>

                            <div class="input-field col s12 m12">
                                <button class="btn waves-effect waves-light" type="submit" name="action">ACTUALIZAR
                                    <i class="material-icons right">send</i>
                                </button>
                            </div>
                        </form>
                    </div>
예제 #9
0
                                            <h5><strong><?php 
        echo getLead($Proyecto_Usuario["CP_id"]);
        ?>
</strong></h5>
                                        </div>
                                        <div class="col s6">
                                            <h6 class="benefit-title">BUDDY</h6>
                                            <h5><strong><?php 
        echo getBuddy($Proyecto_Usuario["CP_id"]);
        ?>
</strong></h5>
                                        </div>
                                        <div class="col s6">
                                            <h6 class="benefit-title">TRANSPORT</h6>
                                            <h5><strong><?php 
        echo getTransport($Proyecto_Usuario["CP_id"]);
        ?>
</strong></h5>
                                        </div>
                                        <div class="col s6">
                                            <h6 class="benefit-title">FEE</h6>
                                            <h5><strong>$ <?php 
        echo getFee($Proyecto_Usuario["CP_id"])["BEN_fee"];
        ?>
</strong></h5>
                                        </div>
                                        
                                    </div>
                                </div>
                            </div>
                        </article>