Skip to content

Commit

Permalink
Update parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 authored and andhit-r committed Aug 3, 2017
1 parent 64024d4 commit 8b8edbf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ def _compute_matrix_line(self, line_ids):
for line in line_ids:
self.total_bruto += line.amount
self.total_pph += line.amount_tax
val_tarif_persen =\
(line.amount_tax / line.amount) * 100
value = {
'bruto': line.amount,
'tarif': self.tarif,
'pph_dipotong': line.amount_tax,
'tax_code_name': line.tax_code_id.name
'tax_code_name': line.tax_code_id.name,
'tarif_persen': str(val_tarif_persen) + '%'
}
self.matrix[line.sequence] = value

Expand Down

0 comments on commit 8b8edbf

Please sign in to comment.