mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-23 05:05:33 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
class taoguaninventory_iostock{
|
||||
const PURCH_STORAGE = 1; //采购入库Purchasing storage
|
||||
const PURCH_RETURN = 10; //采购退货Purchase Returns
|
||||
@@ -55,10 +54,10 @@ class taoguaninventory_iostock{
|
||||
'500'=>array('code'=>'Q','info'=>'期初','io'=>1),
|
||||
);
|
||||
|
||||
/**
|
||||
* 功能插入数据
|
||||
*
|
||||
* */
|
||||
/**
|
||||
*功能插入数据
|
||||
*
|
||||
**/
|
||||
function set($iostock_bn,&$data,$type,&$msg=null,$io=1)
|
||||
{
|
||||
$basicMaterialObj = app::get('material')->model('basic_material');
|
||||
@@ -269,7 +268,7 @@ class taoguaninventory_iostock{
|
||||
if($operator == '-'){
|
||||
$sql = "UPDATE sdb_material_basic_material_stock SET store=IF(store<".$num.",0,store-$num),last_modified=" . time().",real_store_lastmodify=" .time(). ",max_store_lastmodify=" .time(). " WHERE bm_id='" . $product_id . "'";
|
||||
} else {
|
||||
$sql = "UPDATE sdb_material_basic_material_stock SET store=store+" . $num . ",last_modified=" . time().",real_store_lastmodify=" .time(). ",max_store_lastmodify=" .time(). " WHERE bm_id='" . $product_id . "'";
|
||||
$sql = "UPDATE sdb_material_basic_material_stock SET store=store+" . $num . ",last_modified=" . time().",real_store_lastmodify=" .time(). ",max_store_lastmodify=" .time(). ",inc_store_lastmodify=" . time() . " WHERE bm_id='" . $product_id . "'";
|
||||
}
|
||||
return kernel::database()->exec($sql);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user