@@ -135,6 +135,7 @@ public class PurchaseOrderSupplierService {
|
||||
createPurchaseOrderSupplierLineTCO(PurchaseOrderNew.getPurchaseOrderLineList() ,purchaseOrderLinesBySupplierPartner.get(supplierPartner));
|
||||
}
|
||||
|
||||
purchaseOrder.setArchived(true);
|
||||
poRepo.save(purchaseOrder);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,28 @@ import com.axelor.rpc.ActionResponse;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.stream.Collectors;
|
||||
import com.axelor.meta.schema.actions.ActionView;
|
||||
|
||||
|
||||
@Singleton
|
||||
public class PurchaseOrderSupplierLineController {
|
||||
|
||||
public void showPurchaseOrder(ActionRequest request, ActionResponse response) {
|
||||
PurchaseOrderSupplierLine purchaseOrderSupplierLine = Beans.get(PurchaseOrderSupplierLineRepository.class)
|
||||
.find(request.getContext().asType(PurchaseOrderSupplierLine.class).getId());
|
||||
PurchaseOrder purchaseOrder = purchaseOrderSupplierLine.getPurchaseOrderLine().getPurchaseOrder();
|
||||
response.setView(
|
||||
ActionView.define("Devis fournisseur")
|
||||
.model(PurchaseOrder.class.getName())
|
||||
.add("form", "purchase-order-form")
|
||||
.param("show-toolbar", "false")
|
||||
.param("show-confirm", "false")
|
||||
.param("popup-save", "false")
|
||||
.param("popup", "true")
|
||||
.context("_showRecord", String.valueOf(purchaseOrder.getId()))
|
||||
.map());
|
||||
}
|
||||
|
||||
public void accept(ActionRequest request, ActionResponse response) {
|
||||
|
||||
PurchaseOrderSupplierLine purchaseOrderSupplierLine =
|
||||
|
||||
@@ -86,6 +86,10 @@ table.form-layout .tabbable-tabs .tab-content{
|
||||
|
||||
.view-tabs, .nav-tabs-strip {
|
||||
background: #323232 !important;
|
||||
/* background: url('../../img/bg.jpg') !important; */
|
||||
/* background-repeat: no-repeat !important; */
|
||||
/* object-fit: fill !important; */
|
||||
/* background-size: 100% !important; */
|
||||
}
|
||||
|
||||
.navbar-inner {
|
||||
|
||||
BIN
src/main/webapp/img/bg.jpg
Normal file
BIN
src/main/webapp/img/bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 MiB |
Reference in New Issue
Block a user