|
|
@@ -1346,6 +1346,9 @@ type ThjpurchasetransferDetail struct {
|
|
|
WAREHOUSENAME string `json:"warehousename" xorm:"WAREHOUSENAME"` // 仓库名称
|
|
|
BUYUSERNAME string `json:"buyusername" xorm:"BUYUSERNAME"` // 受让人
|
|
|
SELLUSERNAME string `json:"sellusername" xorm:"SELLUSERNAME"` // 转让人
|
|
|
+
|
|
|
+ TRANSFERQTY int32 `json:"transferqty" xorm:"TRANSFERQTY"` // 转让数量
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func (r *ThjpurchasetransferDetail) calc() {
|
|
|
@@ -1368,7 +1371,8 @@ func (r *ThjpurchasetransferDetail) buildSql() string {
|
|
|
wr.WRSTANDARDNAME,
|
|
|
wh.WAREHOUSENAME,
|
|
|
u1.accountname BUYUSERNAME,
|
|
|
- u2.accountname SELLUSERNAME
|
|
|
+ u2.accountname SELLUSERNAME,
|
|
|
+ t.TRANSFERQTY
|
|
|
from THJ_PurchaseTransfer t
|
|
|
inner join THJ_PurchaseTradeDetail d on d.WRTRADEDETAILID = t.WRTRADEDETAILID
|
|
|
left join wrstandard wr on wr.wrstandardid = t.wrtradedetailid
|