Skip to content

Commit 74aeb41

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents afbe97c + f78490a commit 74aeb41

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PHP client library to use the Exact Online API.
66
Installing this Exact client for PHP can be done through Composer.
77

88
"require": {
9-
"picqer/exact-php-client": "~0.1.0"
9+
"picqer/exact-php-client": "~1.0"
1010
}
1111

1212
## Usage
@@ -89,25 +89,25 @@ the api connection.
8989

9090
// Add a product in Exact
9191
$item = new Item($connection);
92-
$item->Code = $product->productcode;
93-
$item->CostPriceStandard = $product->fixedstockprice;
94-
$item->Description = $product->name;
92+
$item->Code = $productcode;
93+
$item->CostPriceStandard = $costprice;
94+
$item->Description = $name;
9595
$item->IsSalesItem = true;
9696
$item->SalesVatCode = 'VH';
9797
$item->save();
9898

9999

100-
// Retrieve an item
101-
$item = new Item($connection);
102-
$item->find(ID);
100+
// Retrieve an item
101+
$item = new Item($connection);
102+
$item->find(ID);
103103

104-
// List items
105-
$item = new Item($connection);
106-
$item->get();
104+
// List items
105+
$item = new Item($connection);
106+
$item->get();
107107

108-
// List items with filter
109-
$item = new Item($connection);
110-
$item->filter("Code eq '$productcode'"); // Uses filters as descriped in Exact API docs (odata filters)
108+
// List items with filter
109+
$item = new Item($connection);
110+
$item->filter("Code eq '$productcode'"); // Uses filters as described in Exact API docs (odata filters)
111111

112112
Check `src/Picqer/Financials/Exact` for all available entities.
113113

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"authors": [
1313
{
1414
"name": "Stephan Groen",
15-
"email": "support@picqer.com"
15+
"email": "info@picqer.com"
1616
}
1717
],
1818
"repositories": [
@@ -26,8 +26,8 @@
2626
"commerceguys/guzzle-oauth2-plugin": "~1.0"
2727
},
2828
"autoload": {
29-
"psr-0": {
30-
"Picqer": "src"
29+
"psr-4": {
30+
"Picqer\\": "src/Picqer"
3131
}
3232
}
3333
}

0 commit comments

Comments
 (0)