|
@@ -1099,9 +1099,9 @@ module.exports = app => {
|
|
|
const insertLedgerArr = [];
|
|
|
for (const l of ledgerList) {
|
|
|
const insertL = [
|
|
|
- l.id, l.code, l.b_code, l.name, l.unit, l.source, l.remark, l.ledger_id,
|
|
|
+ l.id, l.code, l.b_code, l.name, (l.unit !== null ? l.unit : ''), l.source, l.remark, l.ledger_id,
|
|
|
l.ledger_pid, l.level, l.order, l.full_path, l.is_leaf, l.quantity, l.total_price,
|
|
|
- l.unit_price, l.drawing_code, l.memo, l.features, l.dgn_qty1, l.dgn_qty2, l.deal_qty, l.deal_tp,
|
|
|
+ l.unit_price, l.drawing_code, l.memo, (l.features !== null ? l.features : ''), l.dgn_qty1, l.dgn_qty2, l.deal_qty, l.deal_tp,
|
|
|
l.sgfh_qty, l.sgfh_tp, l.sjcl_qty, l.sjcl_tp, l.qtcl_qty, l.qtcl_tp, l.node_type, l.crid, l.ccid,
|
|
|
l.tender_id, l.sgfh_expr, l.sjcl_expr, l.qtcl_expr, l.check_calc,
|
|
|
l.ex_memo1, l.ex_memo2, l.ex_memo3,
|