Improvements to taxing

This commit is contained in:
Deon George
2013-12-05 16:22:23 +11:00
parent 8ba487a4a6
commit 778eada7f0
13 changed files with 253 additions and 212 deletions

View File

@@ -83,7 +83,7 @@ class Export_Plugin_Quicken extends Export_Plugin {
$c = 0;
// Add the items to the invoice
foreach ($io->items('CHARGE') as $iio) {
foreach ($io->subitems('CHARGE') as $iio) {
// Skip any zero amount items not relating to a service
if ($iio->total() == 0 and ! $iio->service_id)
continue;
@@ -141,7 +141,7 @@ class Export_Plugin_Quicken extends Export_Plugin {
}
// Add credits as a other item
foreach ($io->items('CREDIT') as $iio) {
foreach ($io->subitems('CREDIT') as $iio) {
$items[$c]['ACCNT'] = 'Other Income';
$items[$c]['INVITEM'] = 'Product:Unknown';
$items[$c]['CLEAR'] = 'N';