-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sales Transaction confusion or bug #148
Comments
Looks mostly ok. Notes: Try: $connection = new \PhpTwinfield\Secure\WebservicesAuthentication($twin_username, $twin_password, $twin_env);
$transaction_factory = new \PhpTwinfield\ApiConnectors\TransactionApiConnector($connection);
$office = \PhpTwinfield\Office::fromCode('Your office code');
$invoices_2 = $transaction_factory->get(\PhpTwinfield\SalesTransaction::class, "SLS", "201800260", $office); I have written pretty extensive examples for almost all resources, but these (and the updated code they reference) is not part of the main repository (yet). And it so happens Transactions is the last remaining example I have not written yet. Might still give you some help: See here |
Gives:
|
@Pondake Not sure if you are still looking for a solution, was just browsing around. I would guess that you should use the |
$connection = new PhpTwinfield\Secure\WebservicesAuthentication($twin_username, $twin_password, $twin_env);
$transaction_factory = new PhpTwinfield\ApiConnectors\TransactionApiConnector($connection);
$invoices_2 = $transaction_factory->get(\PhpTwinfield\SalesTransaction::class, "SLS", "201800260", $office);
What am I doing wrong? I'm not even sure what transactionClassName to use. Documentation is very scarce. It only contains information about retrieving and setting customers (which works fine, btw).
The text was updated successfully, but these errors were encountered: