| Line 63... |
Line 63... |
| 63 |
double totalValue = 0;
|
63 |
double totalValue = 0;
|
| 64 |
for (int i = 0; i < poCount; i++) {
|
64 |
for (int i = 0; i < poCount; i++) {
|
| 65 |
List<InternalMovementAllocationModel> lines = preview.purchaseOrders.get(i);
|
65 |
List<InternalMovementAllocationModel> lines = preview.purchaseOrders.get(i);
|
| 66 |
int units = 0;
|
66 |
int units = 0;
|
| 67 |
double value = 0;
|
67 |
double value = 0;
|
| - |
|
68 |
Integer vendorWarehouseId = lines.isEmpty() ? null : lines.get(0).getVendorWarehouseId();
|
| 68 |
LOGGER.info("PO {} of {} from {} : {} line(s)", i + 1, poCount, preview.supplierName, lines.size());
|
69 |
LOGGER.info("PO {} of {} from {} vendor warehouse {} : {} line(s)", i + 1, poCount, preview.supplierName,
|
| - |
|
70 |
vendorWarehouseId == null ? "NONE (stock still to arrive - parks on the Dummy)" : vendorWarehouseId,
|
| - |
|
71 |
lines.size());
|
| 69 |
for (InternalMovementAllocationModel line : lines) {
|
72 |
for (InternalMovementAllocationModel line : lines) {
|
| 70 |
Item item = preview.items.get(line.getItemId());
|
73 |
Item item = preview.items.get(line.getItemId());
|
| 71 |
double lineValue = (double) line.getTransferPrice() * line.getQty();
|
74 |
double lineValue = (double) line.getTransferPrice() * line.getQty();
|
| 72 |
LOGGER.info(String.format(" %-6d %-55.55s x%-5d @ %10.2f = %12.2f %s (%s)", line.getItemId(),
|
75 |
LOGGER.info(String.format(" %-6d %-55.55s x%-5d @ %10.2f = %12.2f %s (%s)", line.getItemId(),
|
| 73 |
item == null ? "?" : item.getItemDescription(), line.getQty(), line.getTransferPrice(),
|
76 |
item == null ? "?" : item.getItemDescription(), line.getQty(), line.getTransferPrice(),
|