In my Power App I have a section where users can add multiple line items and the Save Button Patches the data for each line.
When a user enters say 125.20 and then clicks the Save button, the Field value drops to 125.2
This causes an issue as I have another field where users enter the Total amount of all items they are submitting.
So in the "Total Amount" they enter 125.20, but the Field value in the table after patch is now 125.2 and the two values don't match.
ETA Collection information for the OnStart of my App:
ClearCollect(AcctInfo, {CompanyCode:"", GenLedAcct:"", ProCenter:"", CostCenter:"", WBS:"", IntOrder:"", Amount:"", TaxAllCode:"", TaxJurCode:"", Desc:"", TradPart:"", ShowSaveButtons: true })
Tried using Amount: 0 but received errors in the clearcollect statement.
My Patch command is:
Patch(AcctInfo,ThisItem,{CompanyCode:CompanyCodeVal.Selected.Result,GenLedAcct:GenLedAcctVal.Text,ProCenter:ProCenterVal.Text,CostCenter:CostCenterVal.Text,WBS:WBSVal.Text,IntOrder:IntOrderVal.Text,Amount:Value(AmountVal.Text),TaxAllCode:TaxAllCodeVal.Selected.Result,TaxJurCode:TaxJurCodeVal.Text,Desc:DescVal.Text,TradPart:TradPartVal.Text,ShowSaveButtons: false });
Where "AmountVal" is a Text Input field - Format = TextFormat.Number