예제 #1
0
<?php

include_once '../../lib/phpWeFact/WeFact_Api.php';
include_once '../../lib/phpWeFact/WeFact_Model.php';
include_once '../../lib/phpWeFact/WeFact_Creditor.php';
$creditor = WeFact_Creditor::getByCode("CD0001");
/* 
For every setter look into phpWeFact\WeFact_Creditor()
or https://www.wefact.nl/wefact-standard/apiv2/crediteuren/add
*/
$creditor->setSex('f')->setCompanyName('Changed');
$result = $creditor->save();
var_dump($result);
예제 #2
0
<?php

include_once '../../lib/phpWeFact/WeFact_Api.php';
include_once '../../lib/phpWeFact/WeFact_Model.php';
include_once '../../lib/phpWeFact/WeFact_Creditor.php';
$result = WeFact_Creditor::getByCode("CD0020");
var_dump($result);
예제 #3
0
<?php

include_once '../../lib/phpWeFact/WeFact_Api.php';
include_once '../../lib/phpWeFact/WeFact_Model.php';
include_once '../../lib/phpWeFact/WeFact_Creditor.php';
$creditor = new WeFact_Creditor();
$creditor->setSex('m')->setCompanyName('Pannekoek B.V.');
$result = $creditor->save();
var_dump($result);
예제 #4
0
<?php

include_once '../../lib/phpWeFact/WeFact_Api.php';
include_once '../../lib/phpWeFact/WeFact_Model.php';
include_once '../../lib/phpWeFact/WeFact_Creditor.php';
$result = WeFact_Creditor::listAll();
var_dump($result);