projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a7c6df
)
ExcelToJson.php
author
Edward
<edward@roojs.com>
Mon, 18 Mar 2013 03:33:40 +0000
(11:33 +0800)
committer
Edward
<edward@roojs.com>
Mon, 18 Mar 2013 03:33:40 +0000
(11:33 +0800)
ExcelToJson.php
patch
|
blob
|
history
diff --git
a/ExcelToJson.php
b/ExcelToJson.php
index
6266060
..
2cbe21a
100644
(file)
--- a/
ExcelToJson.php
+++ b/
ExcelToJson.php
@@
-96,7
+96,9
@@
class Pman_Core_ExcelToJson extends Pman_Roo
foreach ($rows['TRANSFER ITEMS'] as $r){
$itemsite = DB_DataObject::factory('itemsite');
$itemsite->autoJoin();
- $itemsite->get('item_number', $r['ITEM CODE']);
+ if(!$itemsite->get('join_itemsite_item_id_item_id.item_number', $r['ITEM CODE'])){
+ $this->jerr("error occur on getting item with reference " . $r['ITEM CODE']);
+ }
print_r($itemsite);exit;
}