adds the currency symbol and set the right parameter to method
reloadTotalBudget in the order edition view. FEA: ItEr76S04BugFixing
This commit is contained in:
parent
7364bb000d
commit
a7e2850045
2 changed files with 15 additions and 7 deletions
|
|
@ -94,7 +94,6 @@ import org.zkoss.zul.Comboitem;
|
|||
import org.zkoss.zul.ComboitemRenderer;
|
||||
import org.zkoss.zul.Constraint;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Decimalbox;
|
||||
import org.zkoss.zul.Grid;
|
||||
import org.zkoss.zul.Hbox;
|
||||
import org.zkoss.zul.Label;
|
||||
|
|
@ -1343,8 +1342,8 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
return orderModel.gettooltipText(order);
|
||||
}
|
||||
|
||||
public void reloadTotalBudget(Decimalbox decimalboxTotalBudget) {
|
||||
Util.reloadBindings(decimalboxTotalBudget);
|
||||
public void reloadTotalBudget(Label labelTotalBudget) {
|
||||
Util.reloadBindings(labelTotalBudget);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1726,4 +1725,7 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
return Util.getMoneyFormat();
|
||||
}
|
||||
|
||||
public String getCurrencySymbol() {
|
||||
return Util.getCurrencySymbol();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,20 +169,26 @@
|
|||
<label value="${i18n:_('Work')}" />
|
||||
<decimalbox id="boxWorkBudget" width="80px" scale = "2"
|
||||
value="@{controller.order.workBudget}"
|
||||
onChange="controller.reloadTotalBudget(txtTotalBudget)" />
|
||||
onChange="controller.reloadTotalBudget(txtTotalBudget)"
|
||||
format="@{controller.moneyFormat}"/>
|
||||
<separator bar="false" spacing="15px" orient="vertical"/>
|
||||
<label value="${i18n:_('Materials')}" />
|
||||
<decimalbox id="boxMaterialsBudget" width="80px" scale="2"
|
||||
value="@{controller.order.materialsBudget}"
|
||||
onChange="controller.reloadTotalBudget(txtTotalBudget)" />
|
||||
onChange="controller.reloadTotalBudget(txtTotalBudget)"
|
||||
format="@{controller.moneyFormat}"/>
|
||||
<separator bar="false" spacing="15px" orient="vertical"/>
|
||||
<label value=" ${i18n:_('Total')} :" />
|
||||
<label id="txtTotalBudget" value="@{controller.order.totalBudget}"/>
|
||||
<label id="txtTotalBudget" value="@{controller.order.totalBudget}"/>
|
||||
<label value="@{controller.currencySymbol}"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Calculated budget')}" />
|
||||
<label id="budget" value="@{controller.order.budget}" />
|
||||
<hbox>
|
||||
<label id="budget" value="@{controller.order.budget}" />
|
||||
<label value="@{controller.currencySymbol}"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Total hours')}" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue