This commit is contained in:
邹宗楠
2025-02-26 16:53:24 +08:00
parent ac59e6c2ab
commit 4253fbcda7

View File

@@ -260,7 +260,9 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
VendorOrgCode: utils.Interface2String(result["source"]),
}
globals.SugarLogger.Debugf("----------------1")
invoiceType, _ := utils.TryInterface2Int64(orderMap["invoice_type"])
globals.SugarLogger.Debugf("----------------2")
switch invoiceType {
case 2: // 纸质发票
order.InvoiceEmail += "(纸质发票)"
@@ -268,6 +270,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
order.InvoiceEmail += "(电子发票)"
default: // 不需要或者错误
}
globals.SugarLogger.Debugf("----------------3")
finishTime := getTimeFromInterface(orderMap["finished_time"])
if finishTime == utils.ZeroTimeValue {