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