! -> Note
$ -> Affected files
+28-Nov-2010 Joe Hunt
+- Removed possibility to use bank account in Direct Invoice. This
+ was an old method for handling Cash Payment. We now have better options.
+$ /sales/includes/db/sales_invoice_db.inc
+ /sales/manage/customer_branches.php
+
26-Nov-2010 Janusz Dobrowolski
! [0000282] Improved reports menu display.
$ /js/inserts.js
$items_added_tax = 0;
$freight_added_tax = 0;
}
- // 2006-06-14. If the Customer Branch AR Account is set to a Bank Account,
- // the transaction will be settled at once.
- if (is_bank_account($branch_data['receivables_account']))
- $alloc = $items_total + $items_added_tax + $invoice->freight_cost + $freight_added_tax;
- else
- $alloc = 0;
/* Insert/update the debtor_trans */
$sales_order = $invoice->order_no;
$invoice->Branch, $date_, $invoice->reference, $items_total, 0,
$items_added_tax, $invoice->freight_cost, $freight_added_tax,
$invoice->sales_type, $sales_order, $invoice->ship_via,
- $invoice->due_date, $alloc, 0, $invoice->dimension_id,
+ $invoice->due_date, 0, 0, $invoice->dimension_id,
$invoice->dimension2_id, $invoice->payment);
// 2008-06-14 extra $alloc, 2008-11-12 added dimension_id Joe Hunt
// 2006-06-14. Changed gl_al_accounts_list to have an optional all_option 'Use Item Sales Accounts'
gl_all_accounts_list_row(_("Sales Account:"), 'sales_account', null, false, false, true);
gl_all_accounts_list_row(_("Sales Discount Account:"), 'sales_discount_account');
- gl_all_accounts_list_row(_("Accounts Receivable Account:"), 'receivables_account');
+ gl_all_accounts_list_row(_("Accounts Receivable Account:"), 'receivables_account', null, true);
gl_all_accounts_list_row(_("Prompt Payment Discount Account:"), 'payment_discount_account');
table_section(2);