X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcredit_note_entry.php;h=513fb25eb0f1fbe7b3354d22e6bf73fdd527602a;hb=90918bc962095868c2c94ca52aff4b353cb68608;hp=1d5fbc3e586c16eb5b5b832dadbf2ffb3a7cb36d;hpb=b611def496e4942321d66f183fe0e1d95417c99f;p=fa-stable.git diff --git a/sales/credit_note_entry.php b/sales/credit_note_entry.php index 1d5fbc3e..513fb25e 100644 --- a/sales/credit_note_entry.php +++ b/sales/credit_note_entry.php @@ -96,7 +96,8 @@ function copy_to_cn() $cart->freight_cost = input_num('ChargeFreightCost'); $cart->Location = $_POST["Location"]; $cart->sales_type = $_POST['sales_type_id']; - $cart->reference = $_POST['ref']; + if ($cart->trans_no == 0) + $cart->reference = $_POST['ref']; $cart->ship_via = $_POST['ShipperID']; $cart->dimension_id = $_POST['dimension_id']; $cart->dimension2_id = $_POST['dimension2_id']; @@ -112,7 +113,8 @@ function copy_from_cn() $_POST['ChargeFreightCost'] = price_format($cart->freight_cost); $_POST['Location'] = $cart->Location; $_POST['sales_type_id'] = $cart->sales_type; - $_POST['ref'] = $cart->reference; + if ($cart->trans_no == 0) + $_POST['ref'] = $cart->reference; $_POST['ShipperID'] = $cart->ship_via; $_POST['dimension_id'] = $cart->dimension_id; $_POST['dimension2_id'] = $cart->dimension2_id;