use of com.axelor.apps.supplychain.service.PartnerSupplychainLinkService in project axelor-open-suite by axelor.
the class StockMoveController method setInvoicedPartnerDomain.
/**
* Called from stock move form view, on delivered partner select. Call {@link
* PartnerSupplychainLinkService#computePartnerFilter}
*
* @param request
* @param response
*/
public void setInvoicedPartnerDomain(ActionRequest request, ActionResponse response) {
try {
StockMove stockMove = request.getContext().asType(StockMove.class);
String strFilter = Beans.get(PartnerSupplychainLinkService.class).computePartnerFilter(stockMove.getPartner(), PartnerSupplychainLinkTypeRepository.TYPE_SELECT_INVOICED_BY);
response.setAttr("invoicedPartner", "domain", strFilter);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
use of com.axelor.apps.supplychain.service.PartnerSupplychainLinkService in project axelor-open-suite by axelor.
the class SaleOrderController method setDeliveredPartnerDomain.
/**
* Called from sale order form view, on delivered partner select. Call {@link
* PartnerSupplychainLinkService#computePartnerFilter}
*
* @param request
* @param response
*/
public void setDeliveredPartnerDomain(ActionRequest request, ActionResponse response) {
try {
SaleOrder saleOrder = request.getContext().asType(SaleOrder.class);
String strFilter = Beans.get(PartnerSupplychainLinkService.class).computePartnerFilter(saleOrder.getClientPartner(), PartnerSupplychainLinkTypeRepository.TYPE_SELECT_DELIVERED_BY);
response.setAttr("deliveredPartner", "domain", strFilter);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
use of com.axelor.apps.supplychain.service.PartnerSupplychainLinkService in project axelor-open-suite by axelor.
the class SaleOrderController method setInvoicedPartnerDomain.
/**
* Called from sale order form view, on invoiced partner select. Call {@link
* PartnerSupplychainLinkService#computePartnerFilter}
*
* @param request
* @param response
*/
public void setInvoicedPartnerDomain(ActionRequest request, ActionResponse response) {
try {
SaleOrder saleOrder = request.getContext().asType(SaleOrder.class);
String strFilter = Beans.get(PartnerSupplychainLinkService.class).computePartnerFilter(saleOrder.getClientPartner(), PartnerSupplychainLinkTypeRepository.TYPE_SELECT_INVOICED_BY);
response.setAttr("invoicedPartner", "domain", strFilter);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations