X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fsales_db.inc;h=0503abd3c2a94e3a321800c14fc20814c2bf1ea6;hb=3cf9ab70d79ebd01b13b6cc0c9366ccb5b8c496a;hp=3638ae0f4a0a560fe8292480e726e50fab78932a;hpb=802dea67580f5dbedab6920760e040b0cb535aef;p=fa-stable.git diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index 3638ae0f..0503abd3 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -238,13 +238,6 @@ function set_document_parent($cart) return 0; // batch or complete invoice } -//-------------------------------------------------------------------------------------------------- -function get_parent_type($type) -{ - $parent_types = array( ST_CUSTCREDIT => ST_SALESINVOICE, ST_SALESINVOICE => ST_CUSTDELIVERY, ST_CUSTDELIVERY => ST_SALESORDER ); - return isset($parent_types[$type]) ? $parent_types[$type] : 0; -} - //-------------------------------------------------------------------------------------------------- function update_parent_line($doc_type, $line_id, $qty_dispatched, $auto=false) { @@ -317,7 +310,7 @@ function read_sales_trans($doc_type, $trans_no, &$cart) $myrow["curr_code"], $myrow["discount"], $myrow["payment_terms"]); $cart->set_branch($myrow["branch_code"], $myrow["tax_group_id"], - $myrow["tax_group_name"], $myrow["phone"], $myrow["email"]); + $myrow["tax_group_name"]); $cart->reference = $myrow["reference"]; $cart->order_no = $myrow["order_"];