projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Payment terms related functions moved to separate file, common function for calculati...
[fa-stable.git]
/
sales
/
customer_delivery.php
diff --git
a/sales/customer_delivery.php
b/sales/customer_delivery.php
index 1e29859ea49905f170704b7f19967f9c62c0a4e7..637c238d70145fc61683989750072b2696edf4d9 100644
(file)
--- a/
sales/customer_delivery.php
+++ b/
sales/customer_delivery.php
@@
-291,7
+291,7
@@
if (isset($_POST['process_delivery']) && check_data()) {
if ($newdelivery)
new_doc_date($dn->document_date);
if ($newdelivery)
new_doc_date($dn->document_date);
- $delivery_no =
$dn->write(
$bo_policy);
+ $delivery_no =
write_sales_trans($dn,
$bo_policy);
if ($delivery_no == -1)
{
if ($delivery_no == -1)
{
@@
-353,8
+353,8
@@
locations_list_cells(null, 'Location', null, false, true);
if (!isset($_POST['ship_via'])) {
$_POST['ship_via'] = $_SESSION['Items']->ship_via;
}
if (!isset($_POST['ship_via'])) {
$_POST['ship_via'] = $_SESSION['Items']->ship_via;
}
-label_cell(_("Shipping
Company
"), "class='tableheader2'");
-shipp
er
s_list_cells(null, 'ship_via', $_POST['ship_via']);
+label_cell(_("Shipping
Method
"), "class='tableheader2'");
+shipp
ing_method
s_list_cells(null, 'ship_via', $_POST['ship_via']);
// set this up here cuz it's used to calc qoh
if (!isset($_POST['DispatchDate']) || !is_date($_POST['DispatchDate'])) {
// set this up here cuz it's used to calc qoh
if (!isset($_POST['DispatchDate']) || !is_date($_POST['DispatchDate'])) {
@@
-373,7
+373,7
@@
echo "</td><td>";// outer table
start_table(TABLESTYLE, "width='90%'");
if (!isset($_POST['due_date']) || !is_date($_POST['due_date'])) {
start_table(TABLESTYLE, "width='90%'");
if (!isset($_POST['due_date']) || !is_date($_POST['due_date'])) {
- $_POST['due_date'] = get_
invoice_due
date($_SESSION['Items']->payment, $_POST['DispatchDate']);
+ $_POST['due_date'] = get_
payment_due_
date($_SESSION['Items']->payment, $_POST['DispatchDate']);
}
customer_credit_row($_SESSION['Items']->customer_id, $_SESSION['Items']->credit, "class='tableheader2'");
}
customer_credit_row($_SESSION['Items']->customer_id, $_SESSION['Items']->credit, "class='tableheader2'");