@@ -26,6 +26,7 @@ import com.axelor.inject.Beans;
|
|||||||
import com.axelor.rpc.ActionRequest;
|
import com.axelor.rpc.ActionRequest;
|
||||||
import com.axelor.rpc.ActionResponse;
|
import com.axelor.rpc.ActionResponse;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
import com.axelor.rpc.Context;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class PurchaseOrderLineController {
|
public class PurchaseOrderLineController {
|
||||||
@@ -49,4 +50,14 @@ public class PurchaseOrderLineController {
|
|||||||
TraceBackService.trace(response, e);
|
TraceBackService.trace(response, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void defaultValuesSuppliersRequests(ActionRequest request, ActionResponse response) {
|
||||||
|
|
||||||
|
try {
|
||||||
|
Context context = request.getContext().getParent();
|
||||||
|
response.setValue("availableQty",context.get("qty"));
|
||||||
|
} catch (Exception e) {
|
||||||
|
TraceBackService.trace(response, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,16 @@
|
|||||||
|
|
||||||
<many-to-one name="supplierPartner" ref="com.axelor.apps.base.db.Partner" title="Supplier" initParam="true" index="idx_suppmanage_po_supp_line_supp_partner"/>
|
<many-to-one name="supplierPartner" ref="com.axelor.apps.base.db.Partner" title="Supplier" initParam="true" index="idx_suppmanage_po_supp_line_supp_partner"/>
|
||||||
|
|
||||||
|
<!-- sophal -->
|
||||||
|
<many-to-one name="taxLine" ref="com.axelor.apps.account.db.TaxLine" title="Tax"/>
|
||||||
|
<!-- Total HT -->
|
||||||
|
<decimal name="exTaxTotal" title="Total W.T." scale="2" precision="20" readonly="true"/>
|
||||||
|
<!-- Total T.V.A. -->
|
||||||
|
<decimal name="taxTotal" title="Total Tax" scale="2" precision="20" readonly="true"/>
|
||||||
|
<!-- Total T.T.C -->
|
||||||
|
<decimal name="inTaxTotal" title="Total A.T.I." scale="2" precision="20" readonly="true"/>
|
||||||
|
<!-- sophal -->
|
||||||
|
|
||||||
<extra-code><![CDATA[
|
<extra-code><![CDATA[
|
||||||
|
|
||||||
//STATE SELECT
|
//STATE SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user