Merge pull request #7 from root/dev

Dev
This commit is contained in:
root
2022-05-12 09:54:09 +02:00
2 changed files with 21 additions and 0 deletions

View File

@@ -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);
}
}
} }

View File

@@ -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