Comments (6)
Can you paste your code for these entities and how your are adding them?
from exact-php-client.
Fixed it this morning. I added SalesOrder.php and SalesOrderLine.php. Maybe the fillable property lists need to be extended, I only added what I needed.
This is how I create a new SalesOrder.:
$salesOrder = new \Picqer\Financials\Exact\SalesOrder($EOConnection);
$salesOrder->OrderedBy = '0df3ccec-0cd8-4de1-ac3c-020d73874f93';
$salesOrder->Created = $order->date;
$salesOrder->Currency = 'EUR';
$salesOrder->Description = 'Order description';
$soLines = array();
foreach ($items as $item) {
$soLines[] = array(
'Item' => '9e4be39b-6f3d-491f-9836-5cebe74a4d1d',
'Description' => $item->sku,
'Quantity' => $item->number,
'UnitPrice' => $item->price,
'CostCenter' => $costCenter
);
}
$salesOrder->SalesOrderLines = $soLines;
$salesOrder->save();
from exact-php-client.
Ok, cool. I'll see if I can add them sometime soon.
from exact-php-client.
How can I the OrderID after $salesOrder->save();
from exact-php-client.
Go it.
$ID = $salesOrder->OrderID();
$NR = $salesOrder->OrderNumber();
from exact-php-client.
@erik-picqer @stephangroen @ericappcomm @klaaskox This looks like a very useful tool! Is someone willing to have a call with me, such that I can ask some questions about this tool please? Would be much appreciated! I would be really happy to learn more about it. Please contact me via [email protected]
from exact-php-client.
Related Issues (20)
- What endpoint to get all articles?
- cURL error 77 HOT 4
- Provide a way to let exceptions bubble through to application HOT 7
- Picqer\Financials\Exact\Connection::upload() is missing optional parameters. HOT 1
- Referenced page is empty. Perhaps the endpoint is also removed? HOT 1
- PurchaseEntry approve for payment HOT 1
- PSR 18 compatibility HOT 3
- Error: Typed property Picqer\Financials\Exact\Connection::$minutelyLimitReset must not be accessed before initialization HOT 4
- Weird problem with paging and Documents/DocumentAttachment HOT 1
- Exception "Error 500: Not allow to update in Basic : Warehouse." HOT 7
- Error 401 with the message: "Unauthorized Client: Old refresh token used." HOT 6
- Strict type error HOT 11
- Could not connect to Exact Error 401: {"error":"unauthorized_client","error_description":"Old refresh token used."} HOT 8
- how to do an orderby HOT 3
- 429 errors HOT 5
- Get ID's of multiple imported SalesOrderLines HOT 2
- Set StandardSalesPrice HOT 2
- Please add getState HOT 2
- ReceivablesList returns amount in default currency HOT 5
- GLAccount sync no longer provides DeductibilityPercentages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exact-php-client.