Skip to content

Commit

Permalink
Merge pull request #1 from libracore/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
lasalesi authored Jul 5, 2018
2 parents 5f2b792 + 4b5100c commit e4232c3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erpnextaustria/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '0.0.1'
__version__ = '0.1.0'

17 changes: 17 additions & 0 deletions erpnextaustria/docs/sql/viewATVAT_065.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CREATE VIEW `viewATVAT_065` AS
SELECT
`tabPurchase Invoice`.`posting_date` AS `posting_date`,
`tabPurchase Invoice`.`name` AS `name`,
`tabPurchase Invoice`.`base_grand_total` AS `base_grand_total`,
`tabPurchase Invoice`.`taxes_and_charges` AS `taxes_and_charges`,
`tabPurchase Invoice`.`total_taxes_and_charges` AS `total_taxes_and_charges`
FROM `tabPurchase Invoice`
WHERE `docstatus` = 1 AND `taxes_and_charges` LIKE '%060%'
UNION SELECT
`tabExpense Claim`.`posting_date` AS `posting_date`,
`tabExpense Claim`.`name` AS `name`,
`tabExpense Claim`.`total_claimed_amount` AS `base_grand_total`,
`tabExpense Claim`.`taxes_and_charges` AS `taxes_and_charges`,
`tabExpense Claim`.`total_taxes_and_charges` AS `total_taxes_and_charges`
FROM `tabExpense Claim`
WHERE `docstatus` = 1 AND `taxes_and_charges` LIKE '%065%'
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function get_values(frm) {
get_total(frm, "viewATVAT_072", 'amount_inter_normal');
// Pretax
get_tax(frm, "viewATVAT_060", 'total_pretax');

get_tax(frm, "viewATVAT_065", 'intercommunal_pretax');

// Recalculate
update_total_revenue(frm);
}
Expand Down

0 comments on commit e4232c3

Please sign in to comment.