|
@@ -297,13 +297,13 @@ namespace Comal.Stores
|
|
|
// get negatives, it means probably our number are wrong I think.
|
|
|
|
|
|
// Transfer the necessary balance from General Stock...
|
|
|
- var from = CreateStockMovement(entity.Employee.ID, DateTime.Now, batch.ID, productid, locationid, styleid, Guid.Empty,
|
|
|
+ var from = CreateStockMovement(entity.Employee.ID, entity.Filled, batch.ID, productid, locationid, styleid, Guid.Empty,
|
|
|
dimensions, txnid, true, string.Format("Requisition #{0} Internal Transfer", entity.Number));
|
|
|
from.Issued = extraRequired;
|
|
|
from.Type = StockMovementType.TransferOut;
|
|
|
|
|
|
// ... to the job.
|
|
|
- var to = CreateStockMovement(entity.Employee.ID, DateTime.Now, batch.ID, productid, locationid, styleid, jobid, dimensions, txnid, true,
|
|
|
+ var to = CreateStockMovement(entity.Employee.ID, entity.Filled, batch.ID, productid, locationid, styleid, jobid, dimensions, txnid, true,
|
|
|
string.Format("Requisition #{0} Internal Transfer", entity.Number));
|
|
|
to.Received = extraRequired;
|
|
|
to.Type = StockMovementType.TransferIn;
|
|
@@ -314,7 +314,7 @@ namespace Comal.Stores
|
|
|
// Now we have a full qty in the job holding, and we can issue to site.
|
|
|
}
|
|
|
|
|
|
- var mvt = CreateStockMovement(entity.Employee.ID, DateTime.Now, batch.ID, productid, locationid, styleid, jobid, dimensions, txnid,
|
|
|
+ var mvt = CreateStockMovement(entity.Employee.ID, entity.Filled, batch.ID, productid, locationid, styleid, jobid, dimensions, txnid,
|
|
|
false,
|
|
|
string.Format("Requisition #{0}", entity.Number));
|
|
|
mvt.Issued = qty;
|