wetcat-studios / fortie

Laravel 5 package for Fortnox API
Apache License 2.0
19 stars 20 forks source link

Wiki Error - Prices #79

Closed Darrrren closed 3 years ago

Darrrren commented 3 years ago

In the Wiki, in Prices, the last line is written as:

$price = $fortie->accounts()->update($priceList, $articleNumber, $fromQuantity, $params);

This is wrong, it should be changed to:

$price = $fortie->prices()->update($priceList, $articleNumber, $fromQuantity, $params);

The error provided by the Exception is:

Argument 2 passed to Wetcat\Fortie\Providers\Accounts\Provider::update() must be of the type array, string given.

Darrrren commented 3 years ago

Ahh, I didn't realise I could edit the Wiki myself. I've corrected the error.

agoransson commented 3 years ago

Awesome! Thanks =)