Files
OMS/app/iostock/lib/finder/purchase.php
2025-12-28 23:13:25 +08:00

28 lines
919 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class iostock_finder_purchase{
var $column_branchbn = '仓库编号';
function column_branchbn($row){
$branch_bn = "select branch_bn from sdb_ome_branch where branch_id=".$row['branch_id'];
$bn = kernel::database()->select($branch_bn);
return $bn[0]['branch_bn'];
}
var $column_productname = '商品名称';
function column_productname($row){
$sql = "select material_name AS name from sdb_material_basic_material where material_bn='".$row['bn']."'";
$name = kernel::database()->select($sql);
return $name[0]['name'];
}
var $addon_cols = 'supplier_name';
var $column_suppliername = '供应商名称';
function column_suppliername($row){
return $row[$this->col_prefix . 'supplier_name'];
}
}