add select account in store and packaging screen
parent
e8b107ac72
commit
eb82cbd5b2
|
@ -35,22 +35,22 @@ public class DataSourceConfiguration {
|
||||||
|
|
||||||
/* COSMOS */
|
/* COSMOS */
|
||||||
|
|
||||||
@Bean(name = "dataSourceCosmos")
|
// @Bean(name = "dataSourceCosmos")
|
||||||
@ConfigurationProperties(prefix = "spring.cosmosdatasource")
|
// @ConfigurationProperties(prefix = "spring.cosmosdatasource")
|
||||||
public DataSource cosmosDataSource() {
|
// public DataSource cosmosDataSource() {
|
||||||
return DataSourceBuilder.create().build();
|
// return DataSourceBuilder.create().build();
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
@Bean(name = "jdbcTemplateCosmos")
|
// @Bean(name = "jdbcTemplateCosmos")
|
||||||
public JdbcTemplate cosmosJdbcTemplate( @Qualifier( "dataSourceCosmos" ) DataSource ds ) {
|
// public JdbcTemplate cosmosJdbcTemplate( @Qualifier( "dataSourceCosmos" ) DataSource ds ) {
|
||||||
return new JdbcTemplate( ds );
|
// return new JdbcTemplate( ds );
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Bean(name = "namedParameterJdbcTemplateCosmos")
|
// @Bean(name = "namedParameterJdbcTemplateCosmos")
|
||||||
public NamedParameterJdbcTemplate cosmosNamedParameterJdbcTemplate( @Qualifier( "dataSourceCosmos" ) DataSource ds ) {
|
// public NamedParameterJdbcTemplate cosmosNamedParameterJdbcTemplate( @Qualifier( "dataSourceCosmos" ) DataSource ds ) {
|
||||||
return new NamedParameterJdbcTemplate( ds );
|
// return new NamedParameterJdbcTemplate( ds );
|
||||||
}
|
// }
|
||||||
|
|
||||||
/* LOCAL */
|
/* LOCAL */
|
||||||
|
|
||||||
|
@ -73,6 +73,4 @@ public class DataSourceConfiguration {
|
||||||
public NamedParameterJdbcTemplate localNamedParameterJdbcTemplate( @Qualifier( "dataSourceLocal" ) DataSource ds ) {
|
public NamedParameterJdbcTemplate localNamedParameterJdbcTemplate( @Qualifier( "dataSourceLocal" ) DataSource ds ) {
|
||||||
return new NamedParameterJdbcTemplate( ds );
|
return new NamedParameterJdbcTemplate( ds );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class PackagingController {
|
||||||
|
|
||||||
@GetMapping("/receive-inventory")
|
@GetMapping("/receive-inventory")
|
||||||
public String packagingItemReceive( Model model ){
|
public String packagingItemReceive( Model model ){
|
||||||
|
model.addAttribute("accounts", inventoryAccountService.findInventoryAccounts(6L));
|
||||||
model.addAttribute("wrapper", new FinishedItemWrapper() );
|
model.addAttribute("wrapper", new FinishedItemWrapper() );
|
||||||
return "/packaging/receive-inventory-form";
|
return "/packaging/receive-inventory-form";
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,11 @@ public class ReportingController {
|
||||||
this.inventoryAccountService = inventoryAccountService;
|
this.inventoryAccountService = inventoryAccountService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping
|
||||||
|
public String homePage( Model model ){
|
||||||
|
return "redirect:/reporting/po-report";
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping( "/summary")
|
@GetMapping( "/summary")
|
||||||
public String summary(@RequestParam(value = "item-id", required = false ) String itemId, @RequestParam(value = "sku" , required = false) String sku, @RequestParam(value = "start-date", required = false) String startDate, @RequestParam(value = "end-date", required = false) String endDate, Model model ){
|
public String summary(@RequestParam(value = "item-id", required = false ) String itemId, @RequestParam(value = "sku" , required = false) String sku, @RequestParam(value = "start-date", required = false) String startDate, @RequestParam(value = "end-date", required = false) String endDate, Model model ){
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ public class StoreController {
|
||||||
|
|
||||||
@GetMapping("/receive-inventory")
|
@GetMapping("/receive-inventory")
|
||||||
public String packagingItemReceive( Model model ){
|
public String packagingItemReceive( Model model ){
|
||||||
|
model.addAttribute("accounts", inventoryAccountService.findInventoryAccounts(9L));
|
||||||
model.addAttribute("wrapper", new FinishedItemWrapper() );
|
model.addAttribute("wrapper", new FinishedItemWrapper() );
|
||||||
return "/store/receive-inventory-form";
|
return "/store/receive-inventory-form";
|
||||||
}
|
}
|
||||||
|
@ -43,7 +44,6 @@ public class StoreController {
|
||||||
RedirectAttributes redirectAttributes,
|
RedirectAttributes redirectAttributes,
|
||||||
Model model ){
|
Model model ){
|
||||||
try {
|
try {
|
||||||
System.out.println(wrapper);
|
|
||||||
storeService.createStoreItems( wrapper );
|
storeService.createStoreItems( wrapper );
|
||||||
redirectAttributes.addFlashAttribute("success", "Items Successfully received !" );
|
redirectAttributes.addFlashAttribute("success", "Items Successfully received !" );
|
||||||
} catch ( Exception e ){
|
} catch ( Exception e ){
|
||||||
|
@ -65,7 +65,7 @@ public class StoreController {
|
||||||
if(StringUtils.isNullOrEmpty( active )){
|
if(StringUtils.isNullOrEmpty( active )){
|
||||||
return "redirect:/store/inventory-accounts?id=&title=&active=1&created-by=&start-date=&end-date=&site-id=&site-title=&count=100";
|
return "redirect:/store/inventory-accounts?id=&title=&active=1&created-by=&start-date=&end-date=&site-id=&site-title=&count=100";
|
||||||
}
|
}
|
||||||
model.addAttribute("accounts", inventoryAccountService.getInventoryAccounts( id, title, active, createdBy, startDate, endDate, siteId, count , null, null,true ) );
|
model.addAttribute("accounts", inventoryAccountService.findInventoryAccounts(9L));
|
||||||
model.addAttribute("locations", locationService.findAll() );
|
model.addAttribute("locations", locationService.findAll() );
|
||||||
return "/store/inventory-accounts";
|
return "/store/inventory-accounts";
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
||||||
public class FinishedItemWrapper {
|
public class FinishedItemWrapper {
|
||||||
|
|
||||||
private String qaStatus;
|
private String qaStatus;
|
||||||
private long accountId;
|
private Long accountId;
|
||||||
|
|
||||||
private List<FinishedItem> items;
|
private List<FinishedItem> items;
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@ public class FinishedItemWrapper {
|
||||||
this.qaStatus = qaStatus;
|
this.qaStatus = qaStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getAccountId() {
|
public Long getAccountId() {
|
||||||
return accountId;
|
return accountId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAccountId(long accountId) {
|
public void setAccountId(Long accountId) {
|
||||||
this.accountId = accountId;
|
this.accountId = accountId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,10 +80,10 @@ public class DashboardService {
|
||||||
approvedStitchingOfflineItems = stitchingOfflineItemDAO.findByQCOperationDateAndApproved(startDate1, endDate1, "APPROVED");
|
approvedStitchingOfflineItems = stitchingOfflineItemDAO.findByQCOperationDateAndApproved(startDate1, endDate1, "APPROVED");
|
||||||
qcReject = stitchingOfflineItemDAO.findByQCOperationDateAndIds(startDate1, endDate1, "REJECT", stitchingItemIds);
|
qcReject = stitchingOfflineItemDAO.findByQCOperationDateAndIds(startDate1, endDate1, "REJECT", stitchingItemIds);
|
||||||
remaininfQcAlterPieces = stitchingOfflineItemDAO.findByQCOperationDateAndIds(null, forPreviousDate, "REJECT", stitchingItemIds);
|
remaininfQcAlterPieces = stitchingOfflineItemDAO.findByQCOperationDateAndIds(null, forPreviousDate, "REJECT", stitchingItemIds);
|
||||||
approvedStitchingOfflineItemsThenReject = stitchingOfflineItemDAO.findByQCOperationDateAndIds(startDate1, endDate1, "REJECT", stitchingOutIds);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(stitchingOutIds != null && !stitchingOutIds.isEmpty()) {
|
||||||
|
approvedStitchingOfflineItemsThenReject = stitchingOfflineItemDAO.findByQCOperationDateAndIds(startDate1, endDate1, "REJECT", stitchingOutIds);
|
||||||
|
}
|
||||||
//set finishing related details
|
//set finishing related details
|
||||||
Long alterationPieceFinish = 0L;
|
Long alterationPieceFinish = 0L;
|
||||||
Long rejectFinishedItem = 0L;
|
Long rejectFinishedItem = 0L;
|
||||||
|
@ -127,7 +127,7 @@ public class DashboardService {
|
||||||
progress.put("totalWips", (float) stitchingItemIds.size() - qcReject);
|
progress.put("totalWips", (float) stitchingItemIds.size() - qcReject);
|
||||||
progress.put("Alteration", (float) qcReject + approvedStitchingOfflineItemsThenReject);
|
progress.put("Alteration", (float) qcReject + approvedStitchingOfflineItemsThenReject);
|
||||||
|
|
||||||
progress.put("finishing", (float) approved + operationNotPerformed);
|
progress.put("finishing", (float) approved );
|
||||||
progress.put("ALTER", (float) alterationPieceFinish);
|
progress.put("ALTER", (float) alterationPieceFinish);
|
||||||
progress.put("Reject", (float) rejectFinishedItem);
|
progress.put("Reject", (float) rejectFinishedItem);
|
||||||
progress.put("wash", (float) washFinishedItem);
|
progress.put("wash", (float) washFinishedItem);
|
||||||
|
|
|
@ -614,6 +614,7 @@ public class InventoryService {
|
||||||
createInventoryTransactionLeg(transaction, finishedItem, lastOutTransaction.getAccountId(), InventoryTransactionLeg.Type.IN.name(), InventoryArtifactType.FINISHED_ITEM.name());
|
createInventoryTransactionLeg(transaction, finishedItem, lastOutTransaction.getAccountId(), InventoryTransactionLeg.Type.IN.name(), InventoryArtifactType.FINISHED_ITEM.name());
|
||||||
finishedItem.setQaStatus("ALTER");
|
finishedItem.setQaStatus("ALTER");
|
||||||
finishedItem.setIsSegregated(false);
|
finishedItem.setIsSegregated(false);
|
||||||
|
finishedItem.setIsQa(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,7 +662,7 @@ public class InventoryService {
|
||||||
* Packaging items
|
* Packaging items
|
||||||
* */
|
* */
|
||||||
@Transactional(rollbackFor = Exception.class, propagation = Propagation.NESTED)
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.NESTED)
|
||||||
public void createPackagingItemAndTransaction(FinishedItemWrapper wrapper) {
|
public void createPackagingItemAndTransaction(FinishedItemWrapper wrapper, long accountId) {
|
||||||
if (wrapper != null && wrapper.getItems() != null) {
|
if (wrapper != null && wrapper.getItems() != null) {
|
||||||
|
|
||||||
List<FinishedItem> items = wrapper.getItems();
|
List<FinishedItem> items = wrapper.getItems();
|
||||||
|
@ -693,9 +694,10 @@ public class InventoryService {
|
||||||
if (lastInvTransaction != null) {
|
if (lastInvTransaction != null) {
|
||||||
// OUT
|
// OUT
|
||||||
long fromAccount = lastInvTransaction.getAccountId();
|
long fromAccount = lastInvTransaction.getAccountId();
|
||||||
|
packagingItems1.setAccountId(fromAccount);
|
||||||
createInventoryTransactionLeg(transaction, finishedItem, fromAccount, InventoryTransactionLeg.Type.OUT.name(), InventoryArtifactType.FINISHED_ITEM.name());
|
createInventoryTransactionLeg(transaction, finishedItem, fromAccount, InventoryTransactionLeg.Type.OUT.name(), InventoryArtifactType.FINISHED_ITEM.name());
|
||||||
// IN
|
// IN
|
||||||
createInventoryTransactionLeg(transaction, packagingItems1, 8, InventoryTransactionLeg.Type.IN.name(), InventoryArtifactType.PACKAGING.name());
|
createInventoryTransactionLeg(transaction, packagingItems1, accountId, InventoryTransactionLeg.Type.IN.name(), InventoryArtifactType.PACKAGING.name());
|
||||||
}
|
}
|
||||||
finishedItem.setIsSegregated(true);
|
finishedItem.setIsSegregated(true);
|
||||||
finishedItem.setPackaging(true);
|
finishedItem.setPackaging(true);
|
||||||
|
@ -744,6 +746,7 @@ public class InventoryService {
|
||||||
if (lastInvTransaction != null) {
|
if (lastInvTransaction != null) {
|
||||||
// OUT
|
// OUT
|
||||||
long fromAccount = lastInvTransaction.getAccountId();
|
long fromAccount = lastInvTransaction.getAccountId();
|
||||||
|
storeItem.setAccountId(fromAccount);
|
||||||
createInventoryTransactionLeg(transaction, finishedItem, fromAccount, InventoryTransactionLeg.Type.OUT.name(), InventoryArtifactType.FINISHED_ITEM.name());
|
createInventoryTransactionLeg(transaction, finishedItem, fromAccount, InventoryTransactionLeg.Type.OUT.name(), InventoryArtifactType.FINISHED_ITEM.name());
|
||||||
// IN
|
// IN
|
||||||
createInventoryTransactionLeg(transaction, storeItem, toAccount, InventoryTransactionLeg.Type.IN.name(), InventoryArtifactType.STORED_ITEM.name());
|
createInventoryTransactionLeg(transaction, storeItem, toAccount, InventoryTransactionLeg.Type.IN.name(), InventoryArtifactType.STORED_ITEM.name());
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class PackagingService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void createPackagingItem(FinishedItemWrapper wrapper){
|
public void createPackagingItem(FinishedItemWrapper wrapper){
|
||||||
inventoryService.createPackagingItemAndTransaction(wrapper);
|
inventoryService.createPackagingItemAndTransaction(wrapper, wrapper.getAccountId());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
spring:
|
spring:
|
||||||
uinddatasource:
|
uinddatasource:
|
||||||
jdbcUrl: jdbc:mysql://192.168.90.147:3306
|
jdbcUrl: jdbc:mysql://utopia-industries-rr.c5qech8o9lgg.us-east-1.rds.amazonaws.com:3306/inventory
|
||||||
username: utopia
|
username: cut-to-pack
|
||||||
password: Utopia01
|
password: mAzFAivImnTqKJx4KNJ0
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
logbackUrl: jdbc:mysql://192.168.90.147:3306/uind_logs?serverTimezone=Asia/Karachi
|
logbackUrl: jdbc:mysql://192.168.90.147:3306/uind_logs?serverTimezone=Asia/Karachi
|
||||||
hikari:
|
hikari:
|
||||||
|
@ -19,7 +19,7 @@ spring:
|
||||||
pool-name: UINDCosmosPool
|
pool-name: UINDCosmosPool
|
||||||
leak-detection-threshold: 2000
|
leak-detection-threshold: 2000
|
||||||
localdatasource:
|
localdatasource:
|
||||||
jdbcUrl: jdbc:mysql://192.168.90.147:3306/cut_to_pack
|
jdbcUrl: jdbc:mysql://localhost:3306/cut_to_pack
|
||||||
username: utopia
|
username: utopia
|
||||||
password: Utopia01
|
password: Utopia01
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
|
|
|
@ -9,7 +9,7 @@ spring:
|
||||||
minimum-idle: 5
|
minimum-idle: 5
|
||||||
idle-timeout: 30000 # 30 seconds
|
idle-timeout: 30000 # 30 seconds
|
||||||
max-lifetime: 1800000 # 30 minutes
|
max-lifetime: 1800000 # 30 minutes
|
||||||
connection-timeout: 30000 # 30 seconds
|
connection-timeout: 60000 # 30 seconds
|
||||||
leak-detection-threshold: 10000
|
leak-detection-threshold: 10000
|
||||||
cosmosdatasource:
|
cosmosdatasource:
|
||||||
jdbcUrl: jdbc:mysql://192.168.90.147:3307
|
jdbcUrl: jdbc:mysql://192.168.90.147:3307
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/store') ? 'active' : ''}">Store</a>
|
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/store') ? 'active' : ''}">Store</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" sec:authorize="hasAnyRole('ROLE_REPORTING', 'ROLE_ADMIN')">
|
<li class="nav-item" sec:authorize="hasAnyRole('ROLE_REPORTING', 'ROLE_ADMIN')">
|
||||||
<a th:href="@{/reporting/summary}" class="nav-link"
|
<a th:href="@{/reporting/}" class="nav-link"
|
||||||
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/reporting') ? 'active' : ''}">Reporting</a>
|
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/reporting') ? 'active' : ''}">Reporting</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@ -141,6 +141,17 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<!-- second level purchase order-->
|
||||||
|
<nav class="navbar navbar-light bg-light navbar-expand-lg justify-content-between"
|
||||||
|
th:if="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/purchase-order')}">
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item"
|
||||||
|
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/purchase-order') ? 'active' : ''}">
|
||||||
|
<a th:href="@{/purchase-order/}" class="nav-link">PO's</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
<!-- second level cutting -->
|
<!-- second level cutting -->
|
||||||
<nav class="navbar navbar-light bg-light navbar-expand-lg justify-content-between"
|
<nav class="navbar navbar-light bg-light navbar-expand-lg justify-content-between"
|
||||||
th:if="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/cutting')}">
|
th:if="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/cutting')}">
|
||||||
|
@ -258,6 +269,21 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<!-- second level store -->
|
||||||
|
<nav class="navbar navbar-light bg-light navbar-expand-lg justify-content-between"
|
||||||
|
th:if="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/store')}">
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item"
|
||||||
|
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/store/receive-inventory') ? 'active' : ''}">
|
||||||
|
<a th:href="@{/store/receive-inventory}" class="nav-link">Receive Inventory</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item"
|
||||||
|
th:classappend="${#strings.startsWith(#httpServletRequest.getRequestURI(), '/ctp/store/inventory-accounts') ? 'active' : ''}">
|
||||||
|
<a th:href="@{/store/inventory-accounts}" class="nav-link">Inventory Accounts</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<!-- table loading skeleton -->
|
<!-- table loading skeleton -->
|
||||||
|
|
|
@ -7,10 +7,11 @@
|
||||||
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
||||||
<main class="row page-main">
|
<main class="row page-main">
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
|
<div th:replace="_notices :: page-notices"></div>
|
||||||
<div class="mb-4 d-flex justify-content-between">
|
<div class="mb-4 d-flex justify-content-between">
|
||||||
<h3>Receive Finished Items</h3>
|
<h3>Receive Packing Items</h3>
|
||||||
</div>
|
</div>
|
||||||
<form th:action="'/ctp/packaging/packaging-items'" method="post" id="packagingApp">
|
<form th:action="'/ctp/packaging/packaging-items'" method="post" id="packagingApp" th:object="${wrapper}">
|
||||||
<div class="bg-light p-3 mb-3">
|
<div class="bg-light p-3 mb-3">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="col-sm-3 form-group">
|
<div class="col-sm-3 form-group">
|
||||||
|
@ -21,13 +22,13 @@
|
||||||
</search-item>
|
</search-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3 form-group">
|
<div class="col-sm-3 form-group">
|
||||||
<!-- <label>Packaging Account</label>-->
|
<label>Packaging Account</label>
|
||||||
<!-- <select class="form-control" name="account-id" th:field="*{finishedAccountId}" required>-->
|
<select class="form-control" name="account-id" th:field="*{accountId}" required>
|
||||||
<!-- <option value="">PLease select</option>-->
|
<option value="">PLease select</option>
|
||||||
<!-- <option th:each="account : ${accounts}"-->
|
<option th:each="account : ${accounts}"
|
||||||
<!-- th:value="${account.id}"-->
|
th:value="${account.id}"
|
||||||
<!-- th:text="${account.title}"></option>-->
|
th:text="${account.title}"></option>
|
||||||
<!-- </select>-->
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<div th:replace="_notices :: page-notices"></div>
|
<div th:replace="_notices :: page-notices"></div>
|
||||||
<div class="mb-4 d-flex justify-content-between">
|
<div class="mb-4 d-flex justify-content-between">
|
||||||
<h3>Job Cards</h3>
|
<h3>All PO's</h3>
|
||||||
<a th:href="@{/purchase-order/new}" class="btn btn-primary">Add New</a>
|
<a th:href="@{/purchase-order/new}" class="btn btn-primary">Add New</a>
|
||||||
</div>
|
</div>
|
||||||
<div th:replace="_fragments :: table-loading-skeleton"></div>
|
<div th:replace="_fragments :: table-loading-skeleton"></div>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<!-- Show message if purchaseOrder is null or empty -->
|
<!-- Show message if purchaseOrder is null or empty -->
|
||||||
<h4 th:if="${purchaseOrder == null or purchaseOrder.isEmpty()}">No cards found.</h4>
|
<h4 th:if="${purchaseOrder == null or purchaseOrder.isEmpty()}">No POs found.</h4>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"
|
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:uind="http://www.w3.org/1999/xhtml" xmlns:ctp="http://www.w3.org/1999/xhtml">
|
xmlns:uind="http://www.w3.org/1999/xhtml" xmlns:ctp="http://www.w3.org/1999/xhtml">
|
||||||
<head th:replace="_fragments :: head('Packaging Inventory Accounts')"></head>
|
<head th:replace="_fragments :: head('Store Inventory Accounts')"></head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<div th:replace="_notices :: page-notices"></div>
|
<div th:replace="_notices :: page-notices"></div>
|
||||||
<div class="mb-4 d-flex justify-content-between">
|
<div class="mb-4 d-flex justify-content-between">
|
||||||
<h3>Packaging Inventory Accounts</h3>
|
<h3>Store Inventory Accounts</h3>
|
||||||
</div>
|
</div>
|
||||||
<div th:replace="_fragments :: table-loading-skeleton"></div>
|
<div th:replace="_fragments :: table-loading-skeleton"></div>
|
||||||
<table class="table table-striped" data-account-table data-order="[[ 0, "asc" ]]">
|
<table class="table table-striped" data-account-table data-order="[[ 0, "asc" ]]">
|
||||||
|
|
|
@ -1,33 +1,34 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"
|
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:v-bind="http://www.w3.org/1999/xhtml">
|
xmlns:v-bind="http://www.w3.org/1999/xhtml">
|
||||||
<head th:replace="_fragments :: head('Packaging Receive Inventory')"></head>
|
<head th:replace="_fragments :: head('Store Receive Inventory')"></head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
||||||
<main class="row page-main">
|
<main class="row page-main">
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
|
<div th:replace="_notices :: page-notices"></div>
|
||||||
<div class="mb-4 d-flex justify-content-between">
|
<div class="mb-4 d-flex justify-content-between">
|
||||||
<h3>Receive Finished Items</h3>
|
<h3>Receive Rejected Items</h3>
|
||||||
</div>
|
</div>
|
||||||
<form th:action="'/ctp/store/store-items'" method="post" id="packagingApp">
|
<form th:action="'/ctp/store/store-items'" method="post" id="packagingApp" th:object="${wrapper}">
|
||||||
<div class="bg-light p-3 mb-3">
|
<div class="bg-light p-3 mb-3">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<input type="hidden" th:name="'accountId'" th:value="9"/>
|
|
||||||
<div class="col-sm-3 form-group">
|
<div class="col-sm-3 form-group">
|
||||||
<search-item
|
<search-item
|
||||||
:is-segregated="false"
|
:is-segregated="false"
|
||||||
url="/ctp/rest/finished-items/search-store"
|
url="/ctp/rest/finished-items/search-store"
|
||||||
v-on:finished-item-select="onItemSelect">
|
v-on:finished-item-select="onItemSelect">
|
||||||
</search-item>
|
</search-item>
|
||||||
|
</div>
|
||||||
<!-- <label>Packaging Account</label>-->
|
<div class="col-sm-3 form-group">
|
||||||
<!-- <select class="form-control" name="account-id" th:field="*{finishedAccountId}" required>-->
|
<label>Store Account</label>
|
||||||
<!-- <option value="">PLease select</option>-->
|
<select class="form-control" name="accountId" th:field="*{accountId}" required>
|
||||||
<!-- <option th:each="account : ${accounts}"-->
|
<option value="">PLease select</option>
|
||||||
<!-- th:value="${account.id}"-->
|
<option th:each="account : ${accounts}"
|
||||||
<!-- th:text="${account.title}"></option>-->
|
th:value="${account.id}"
|
||||||
<!-- </select>-->
|
th:text="${account.title}"></option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue