$ /themes/aqua/default.css
/themes/cool/default.css
/themes/default/default.css
+# Voiding tax records included via GL/bank transactions
+$ /admin/db/voiding_db.inc
+ /gl/includes/db/gl_db_bank_trans.inc
+ /gl/includes/db/gl_db_trans.inc
+# Fixed quick entry types values.
+$ /includes/types.inc
23-Jan-2009 Joe Hunt
+ Added new files in doc subdirectory
case 0 : // it's a journal entry
if (!exists_gl_trans($type, $type_no))
return false;
- void_gl_trans($type, $type_no);
- if (exists_bank_trans($type, $type_no))
- void_bank_trans($type, $type_no);
+ void_journal_trans($type, $type_no);
break;
case 1 : // it's a payment
// in case it's a customer trans - probably better to check first
void_cust_allocations($type, $type_no);
+ void_customer_trans_tax_details($type, $type_no);
void_customer_trans($type, $type_no);
// in case it's a supplier trans - probably better to check first
void_supp_allocations($type, $type_no);
+ void_supp_invoice_tax_items($type, $type_no);
void_supp_trans($type, $type_no);
if (!$nested)
commit_transaction();
}
-//--------------------------------------------------------------------------------------------------
+//----------------------------------------------------------------------------------------
+
+function void_journal_trans($type, $type_no)
+{
+ begin_transaction();
+
+ void_gl_trans($type, $type_no, true);
+ void_bank_trans($type, $type_no,true);
+ void_customer_trans_tax_details($type, $type_no);
+ void_supp_invoice_tax_items($type, $type_no);
+
+ commit_transaction();
+}
?>
\ No newline at end of file
't-' => _('Taxes included, reduce base') // ditto & reduce base amount
);
-define('QE_DEPOSIT', '1');
-define('QE_PAYMENT', '2');
+define('QE_PAYMENT', '1');
+define('QE_DEPOSIT', '2');
define('QE_JOURNAL', '3');
define('QE_SUPPINV', '4');