// FIX - implement editable contact selector in sales order
$contact = get_branch_contacts($branch_id, 'order', $customer_id);
-
$order->set_branch($branch_id, $myrow["tax_group_id"],
- $myrow["tax_group_name"], @$contact[0]["phone"], @$contact[0]["email"]);
+ $myrow["tax_group_name"], @$contact["phone"], @$contact["email"]);
$address = trim($myrow["br_post_address"]) != '' ? $myrow["br_post_address"]
: (trim($myrow["br_address"]) != '' ? $myrow["br_address"]:$deliver);
$order->payment_terms = get_payment_terms($order->payment);
$order->due_date = get_invoice_duedate($order->payment, $order->document_date);
if ($order->payment_terms['cash_sale']) {
- $order->cash_account = $order->pos['pos_account'];
- $order->account_name = $order->pos['bank_account_name'];
$_POST['Location'] = $order->Location = $order->pos['pos_location'];
$order->location_name = $order->pos['location_name'];
}
start_table(TABLESTYLE2, "width=60%");
locations_list_row(_("Deliver from Location:"), 'Location', null, false, true);
- label_row(_("Cash account:"), $order->account_name);
+ label_row(_("Cash account:"), $order->pos['bank_account_name']);
textarea_row(_("Comments:"), "Comments", $order->Comments, 31, 5);
end_table();
} else {