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

WAIT : Let people choose the logo on their invoices #42

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ Deployment scripts using fabric are located in the `Deployment` folder.
10. Create the database tables managed by south with `python manage.py migrate`
11. Run the development server with `python manage.py runserver`
12. Go to `http://localhost:8000/` and log in with Tequila
13. Give your user superuser rights with `echo "update users_truffeuser set is_superuser=1 where id=1;" | sqlite3 db.sqlite3`
13. Give your user superuser rights with `echo "update users_truffeuser set is_superuser=1 where id=1;" | sqlite3 db.sqlite3`

## Software dependencies
* librsvg2-bin

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

259 changes: 99 additions & 160 deletions truffe2/accounting_tools/models.py

Large diffs are not rendered by default.

561 changes: 561 additions & 0 deletions truffe2/accounting_tools/qrbill.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
{% extends "accounting_tools/generic_tva_edit.html" %}


{% block edit_bonus %}
<script type="text/javascript">

//Move costcenter up
{% block line_js_bonus %}
{{block.super}}

$(function () {
// Move costcenter up
var costcenterblock = $('#id_costcenter').parent().parent().remove();
$('#id_title').parent().parent().after(costcenterblock);

</script>
// Move display_unit_name up
var display_unit_name = $('#id_display_unit_name').parent().parent().parent().parent().remove();
$('#id_logo').parent().parent().after(display_unit_name);

//defined in select_logo widget
move_unit_logo_up({{CURRENT_UNIT_PK}});
});

// unselect display_unit_name if logo is changed
$('#id_logo').on("select", function (e) { $('#id_display_unit_name').prop("checked", false);});

{% endblock %}

{% block bonus_unit_updated %}
//defined in select_logo widget
move_unit_logo_up(pk);
{% endblock %}
Loading