修复bug
This commit is contained in:
@@ -44,41 +44,6 @@ namespace WMS.Web.Api.Controllers
|
||||
[Route("hj")]
|
||||
public async Task<string> TestHJ()
|
||||
{
|
||||
OutStockTask entity = new OutStockTask()
|
||||
{
|
||||
DeliveryOrgId = 1,
|
||||
ReceiptCustomerId = 1
|
||||
};
|
||||
try
|
||||
{
|
||||
var d = new OutStockTaskDetails();
|
||||
|
||||
d.MaterialId = 1;
|
||||
d.AccruedQty = 1;
|
||||
d.Erp_DetailId = 1;
|
||||
d.SaleBillNo = "sdf34343";
|
||||
d.StockCode = "234";
|
||||
d.SubStockId =234;
|
||||
d.SourceBillNos = new List<string>() { "wwre", "32423" };
|
||||
entity.Details.Add(d);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
throw ex;
|
||||
}
|
||||
entity.Details.Add(new OutStockTaskDetails()
|
||||
{
|
||||
MaterialId = 1,
|
||||
AccruedQty = 1,
|
||||
Erp_DetailId = 1,
|
||||
SaleBillNo = "ddddd",
|
||||
StockCode = "ddd",
|
||||
SubStockId = 1
|
||||
});
|
||||
|
||||
var b = await _outStockTaskRepositories.Add(entity, true);
|
||||
var bc = await _outStockTaskRepositories.Get(entity.Id);
|
||||
// await _boxService.Sync();
|
||||
//var res = await this._erpService.BillQueryForDeliveryNoticeOutStock(null,DateTime.Now.AddDays(-300));
|
||||
//var result= await this._erpService.BillQueryForPurchaseInStock();
|
||||
|
||||
Reference in New Issue
Block a user