mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-30 21:15:34 +08:00
21 lines
691 B
PHP
21 lines
691 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class iostock_finder_inventory{
|
||
var $column_name = '商品名称';
|
||
function column_name($row){
|
||
$basicMaterialObj = app::get('material')->model('basic_material');
|
||
$name = $basicMaterialObj->dump(array('material_bn'=>$row['bn']),'material_name');
|
||
return $name['material_name'];
|
||
}
|
||
|
||
var $column_amount = '盈亏金额';
|
||
function column_amount($row){
|
||
$ectoolObj = app::get('eccommon')->model('currency');
|
||
$amount = $ectoolObj->formatNumber($row['iostock_price']*$row['nums']);
|
||
return $amount;
|
||
}
|
||
} |