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

Feature/implement expressions #38

Merged
merged 8 commits into from
Jul 5, 2016
Merged

Conversation

romaninsh
Copy link
Member

@romaninsh romaninsh commented Jun 30, 2016

Implements expressions:

$m = new Model_Invoice($db);
$m->addFields(['total_net', 'total_vat']);

$m->addExpression('total_gross', '[total_net]+[total_vat]');
$m->load(1);

echo $m['total_gross'];

Documentation: https://github.com/atk4/data/blob/feature/implement-expressions/docs/expressions.rst

resolves #29, #30

@skondakov
Copy link
Contributor

Seems good to me. Great work!

@romaninsh romaninsh merged commit af6ee09 into develop Jul 5, 2016
@romaninsh romaninsh deleted the feature/implement-expressions branch July 5, 2016 09:13
@romaninsh romaninsh mentioned this pull request Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement addExpression()
2 participants