projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If setting the delivered items in PO Receive Items to 0 the value is not updated
[fa-stable.git]
/
reporting
/
rep709.php
diff --git
a/reporting/rep709.php
b/reporting/rep709.php
index c135445f9b91e0ee452faaa67d1ecb1e23f2ae28..ad6f59d0780200533a92616ef900ec8ae4eba261 100644
(file)
--- a/
reporting/rep709.php
+++ b/
reporting/rep709.php
@@
-101,7
+101,7
@@
function print_tax_report()
1 => array('text' => _('Period'), 'from' => $from, 'to' => $to),
2 => array('text' => _('Type'), 'from' => $summary, 'to' => ''));
1 => array('text' => _('Period'), 'from' => $from, 'to' => $to),
2 => array('text' => _('Type'), 'from' => $summary, 'to' => ''));
- $cols = array(0,
80, 130, 180, 290, 370, 455, 505, 555
);
+ $cols = array(0,
100, 130, 180, 290, 370, 420, 470, 520
);
$headers = array(_('Trans Type'), _('Ref'), _('Date'), _('Name'), _('Branch Name'),
_('Net'), _('Rate'), _('Tax'));
$headers = array(_('Trans Type'), _('Ref'), _('Date'), _('Name'), _('Branch Name'),
_('Net'), _('Rate'), _('Tax'));
@@
-119,7
+119,7
@@
function print_tax_report()
while ($trans=db_fetch($transactions))
{
while ($trans=db_fetch($transactions))
{
- if (in_array($trans['trans_type'], array(11,20
,1
))) {
+ if (in_array($trans['trans_type'], array(11,20))) {
$trans['net_amount'] *= -1;
$trans['amount'] *= -1;
}
$trans['net_amount'] *= -1;
$trans['amount'] *= -1;
}
@@
-144,7
+144,7
@@
function print_tax_report()
$rep->Header();
}
}
$rep->Header();
}
}
- if (in_array($trans['trans_type'], array(
0,
2,10,11))) {
+ if (in_array($trans['trans_type'], array(2,10,11))) {
$taxes[$trans['tax_type_id']]['taxout'] += $trans['amount'];
$taxes[$trans['tax_type_id']]['out'] += $trans['net_amount'];
} else {
$taxes[$trans['tax_type_id']]['taxout'] += $trans['amount'];
$taxes[$trans['tax_type_id']]['out'] += $trans['net_amount'];
} else {