diff --git a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php index 4252e642..a924ee2d 100644 --- a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php +++ b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php @@ -195,7 +195,7 @@ class TulanduoApi extends CI_Controller * @date 2018-05-02 * @param [type] $coli_sn HT系统的订单key */ - public function insert_HT_order_operation($coli_sn=null,$get_vendorID=null) + public function insert_HT_order_operation($coli_sn=null,$get_vendorID=null, $output=true) { // log_message('error','get_order_operation From TuLanDuo '); $this->load->model('Order_update'); @@ -213,8 +213,8 @@ class TulanduoApi extends CI_Controller $to_update_list = $this->Orders_model->get_groupCombineInfo_finance(); } } - if (empty($to_update_list)) { - echo "empty"; + if (empty($to_update_list) ) { + if ( $output===true) { echo "empty"; } return false; } $unique_orderGroupCombine = array(); // 录入拼团调度时,避免重复 @@ -240,7 +240,7 @@ class TulanduoApi extends CI_Controller $this->order_cancel($order->COLI_ID); } } - echo "cancel"; + if ( $output===true) { echo "cancel"; } return; } if (mb_strstr($detail_jsonResp->orderDetail->agcOrderNo, "重复") !== false) { @@ -288,7 +288,7 @@ class TulanduoApi extends CI_Controller } } if (strval($detail_jsonResp->orderDetail->orderStatus) !== '1') { - echo "not confirm"; + if ( $output===true) { echo "not confirm"; } /** groupcombineinfo */ $this->Order_update->gci_where_update = " GCI_VendorOrderId='" . $detail_jsonResp->orderDetail->orderId . "' and GCI_VEI_SN in (" . implode(',', $this->vendor_ids) . ")"; // 不明确指定供应商id,出现过不对应的情况 $gci_update_column = array( @@ -763,7 +763,7 @@ class TulanduoApi extends CI_Controller } $output_text = "Got order operations from TuLanDuo:" . $detail_jsonResp->orderDetail->orderId . ". " . $coli_id; log_message('error', $output_text); - echo $output_text; + if ( $output===true) { echo $output_text; } if (strval($order->isHistory) === '1') { require_once('order_finance.php'); $vendor_class = new Order_finance(); diff --git a/webht/third_party/trippestOrderSync/controllers/order_finance.php b/webht/third_party/trippestOrderSync/controllers/order_finance.php index 940fe949..d5798c13 100644 --- a/webht/third_party/trippestOrderSync/controllers/order_finance.php +++ b/webht/third_party/trippestOrderSync/controllers/order_finance.php @@ -56,7 +56,7 @@ class Order_finance extends CI_Controller { $controller_name = "TulanduoApi"; require_once($controller_name . '.php'); $vendor_class = new $controller_name(); - $ret = $vendor_class->insert_HT_order_operation($coli_sn); + $ret = $vendor_class->insert_HT_order_operation($coli_sn, null, false); $this->single_order_report($coli_sn, $debug); } diff --git a/webht/third_party/trippestOrderSync/views/order_report_precheck.php b/webht/third_party/trippestOrderSync/views/order_report_precheck.php index fdba9253..21ea2e19 100644 --- a/webht/third_party/trippestOrderSync/views/order_report_precheck.php +++ b/webht/third_party/trippestOrderSync/views/order_report_precheck.php @@ -1,10 +1,12 @@ +
| 团款异常: | ++ 团款异常: [ 第一步 ] 解决下表刷红的团款异常问题 + | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HT团号 | 拼团号 | -+ |
总收入差额
= 财务表总收入 - 收款记录总额 +
|
- + |
总团款差额
= 账单总团款 - ( HT收款 + HT代收 ) +
+ 数据来自右侧两列, 地接代收 或 海纳收 不相等 |
- + |
地接代收差额
= 账单代收 - HT代收 +
|
- + |
海纳收差额
= 账单收款 - HT收款 +
|
账单:总团款 | 账单:地接代收 | @@ -110,42 +222,40 @@||||||||
| - | - | > | -> - - - | -> | -> | -- | - | - | - | ||||||||||
| 合计 | -- | - | - | - | |||||||||||||||
| + | + | > | +> + + + | +> | +> | ++ | + | + | + | ||||||||||
| 合计 | ++ | + | + | + | |||||||||||||||
| 数据正常 | @@ -154,68 +264,100 @@|||||||||||||||||||
| 未找到同步的数据,需检查是否在账单中存在 | -|
|---|---|
| 未找到同步的数据,需检查是否在账单中存在 | +|
|---|---|
| 成本异常: | +成本异常: + + [ 第二步 ] 解决下表列出的成本异常问题, + 完成后 ⟹ [ 第三步 ] 在HT中批量确认并保存账单⟹ + [ 第四步 ] » + + | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 拼团号 | -HT成本 | -账单成本 | +拼团号 | +
+ HT成本 +
|
+
+ 账单成本 +
|
||||
| - | - | - | |||||||
| + | + | + | |||||||
| - | - | 未找到 | -|||||||
| + | + | 未找到 | +|||||||
| - | 未找到 | -- | |||||||
| + | 未找到 | ++ | ⑧海纳应付地接 | ||||||
| ①海纳代收 | -②地接代收 | -①+② | -③海纳成本 | -④地接成本 | +①海纳代收 | +②地接代收 | +①+② | +③海纳成本 | +④地接成本 |
| - 导出账单明细 ⇓ - | -- | - | - | - | - | - | - | - | - |
| 非包价产品的收款 |
- - | - | - | - | - | - | |||
| 已扣减的其他地接的团款 |
- - | - | - | - | - | - | |||
| + 导出账单明细 ⇓ + | ++ | + | + | + | + | + | + | + | + |
| 非包价产品的收款 |
+ + | + | + | + | + | + | |||
| 已扣减的其他地接的团款 |
+ + | + | + | + | + | + | |||
| 合计(仅包价产品) | -- | - | - | - | - | - | - | - | - |
| 合计(仅包价产品) | ++ | + | + | + | + | + | + | + | + |
| 多地预订的团号 | -拼团号 | -总报价/USD | -总收款/RMB | -计入上表海纳收团款 | -应扣除的其他地接收款: (实时计算, 存在汇率误差) | -||||
| - | - | - | - |
- - |
- - | ||||
| - | |||||||||
| 成本异常,建议重新审核: 订单号 | -拼团成本总额 | -拼团人等 | -订单: 成人数 + 儿童数 | -订单成本 | -财务表备注 | -||||
| - | - | - | + | -- | - | ||||
| 多地预订的团号 | +拼团号 | +总报价/USD | +总收款/RMB | +计入上表海纳收团款 | +应扣除的其他地接收款: (实时计算, 存在汇率误差) | +||||
| + | + | + | + |
+ + |
+ + | ||||
| + | |||||||||
| 成本异常,建议重新审核: 订单号 | +拼团成本总额 | +拼团人等 | +订单: 成人数 + 儿童数 | +订单成本 | +财务表备注 | +||||
| + | + | + | + | ++ | + | ||||
同步数据:
+同步数据: 账单批量保存后, 下表应与地接社提供的汇总表数据一致, 否则需 [ 第四步 ] ⇓
| 目的地 | -总营收:①海纳代收+②地接代收 | -总成本:③海纳成本+④地接成本 | -⑤利润 | -⑥海纳利润 | -⑦地接利润 | -⑧海纳应付地接 | +目的地 | +总营收:①海纳代收+②地接代收 | +总成本:③海纳成本+④地接成本 | +⑤利润 | +⑥海纳利润 | +⑦地接利润 | +⑧海纳应付地接 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - - | - | - | - | - | - | - | |||||||
| 合计 | - -- | - | - | - | - | - | |||||||
| + + | + | + | + | + | + | + | |||||||
| 合计 | + ++ | + | + | + | + | + |
财务表成本与实际成本不一致, 检查是否需要重新生成账单:
+ +财务表成本与实际成本不一致, [ 第四步 ] 检查是否需要重新生成账单:
| 拼团号 | -实际总成本 | -财务表总成本 | +拼团号 | +
+ 实际总成本 + |
+
+ 财务表总成本 +
|
|---|---|---|---|---|---|
| - | - | - | |||
| + | + | + |