Skip to content
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

Chicken-egg issue when trying to create SalesEntry #93

Closed
annejan opened this issue Nov 24, 2016 · 3 comments
Closed

Chicken-egg issue when trying to create SalesEntry #93

annejan opened this issue Nov 24, 2016 · 3 comments

Comments

@annejan
Copy link
Contributor

annejan commented Nov 24, 2016

When adding a SalesEntry with addItem array item added I get an error Undefined index: ID
When trying to save a SalesEntryLine I need an EntryID
When trying to save a SalesEntry without items I get "No sales entry lines. Sales entry lines must be supplied to create a new sales entry."

How do I solve this chicken-egg conundrum?

@annejan
Copy link
Contributor Author

annejan commented Nov 24, 2016

This was a PEBKAC
I needed EntryID not ID

@annejan annejan closed this as completed Nov 24, 2016
@Rikgeffen
Copy link

I get a other error but it looks like yours :

try {
$Mes = new \Picqer\Financials\Exact\Me($connection);
$result1 = $Mes->get();
foreach ($result as $Mes) {
echo 'Me: ' . $Mes->UserID. '
';
}
} catch (\Exception $e1) {
echo get_class($e1) . ' : ' . $e1->getMessage();
}

for only see my userID and i get this ERROR;

Notice: Undefined index: get in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138

Notice: Undefined index: UserID in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138
Me:

Notice: Undefined index: UserID in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138
Me:

Notice: Undefined index: UserID in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138
Me:

Notice: Undefined index: UserID in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138
Me:

Notice: Undefined index: UserID in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138
Me:

Notice: Undefined index: UserID in C:\xampp\htdocs\CM\picqer\exact-php-client\src\Picqer\Financials\Exact\Model.php on line 138
Me:

how can i fix this?

@casperbakker
Copy link
Member

Nope, has nothing to do with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants