Commit old changes
This commit is contained in:
@@ -438,8 +438,15 @@ class EcmSale extends SugarBean {
|
||||
'ecmproductcategory_id' => $p ['category_id'],
|
||||
'recipient_code' => $p ['recipient_code'],
|
||||
'ean' => $p['product_ean'],
|
||||
'brand_label' => $p['product_brand_label']
|
||||
'brand_label' => $p['product_brand_label'],
|
||||
'description' => $p['product_description'],
|
||||
);
|
||||
if (isset($p['product_production_date']) && strlen($p['product_production_date']) > 5) {
|
||||
$arr['production_date'] = $p['product_production_date'];
|
||||
}
|
||||
// else {
|
||||
// $arr['production_date'] = null;
|
||||
//}
|
||||
$this->db->query ( $this->constructInsertQuery ( $arr ) );
|
||||
|
||||
$this->db->query("INSERT INTO log VALUES ('".mysql_escape_string($this->constructInsertQuery ( $arr ))."')");
|
||||
@@ -472,6 +479,8 @@ class EcmSale extends SugarBean {
|
||||
$return_array ['product_supplier_code'] = $position ['recipient_code'];
|
||||
$return_array ['product_ean'] = $position ['ean'];
|
||||
$return_array ['product_brand_label'] = $position ['brand_label'];
|
||||
$return_array ['product_description'] = $position ['description'];
|
||||
$return_array ['product_production_date'] = $position ['production_date'];
|
||||
$ecmStockOperations = new EcmStockOperation();
|
||||
|
||||
$return_array ['stock_state']=($ecmStockOperations->getRealStock($position ['ecmproduct_id']));
|
||||
|
||||
Reference in New Issue
Block a user