fixe l'id estimation à la création d'une ligne de commande
This commit is contained in:
parent
f31d37bc67
commit
374086ae25
1 changed files with 3 additions and 2 deletions
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue