fixe l'id estimation à la création d'une ligne de commande
This commit is contained in:
@ -54,8 +54,9 @@ namespace ZicMoove.Pages
|
|||||||
|
|
||||||
protected void OnNewCommanLine(object sender, EventArgs e)
|
protected void OnNewCommanLine(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var com = new BillingLine() { Count = 1, UnitaryCost = 0.01m };
|
var model = (EditEstimateViewModel)BindingContext;
|
||||||
var bill = ((EditEstimateViewModel)BindingContext).Bill;
|
var com = new BillingLine() { Count = 1, UnitaryCost = 0.01m, EstimateId = model.Data.Id };
|
||||||
|
var bill = model.Bill;
|
||||||
var lineView = new BillingLineViewModel(com)
|
var lineView = new BillingLineViewModel(com)
|
||||||
{ ValidateCommand = new Command(() => {
|
{ ValidateCommand = new Command(() => {
|
||||||
bill.Add(new BillingLineViewModel(com));
|
bill.Add(new BillingLineViewModel(com));
|
||||||
|
Reference in New Issue
Block a user