Hi @Cseni ,
Can you try the following code and check what Error is displayed on the top?
IfError(
Patch(
'All data',
Defaults('All data'),
{
'Amount incl. VAT': totalIncVAT,
'Amount Excl. VAT': ExclVAT,
'VAT (20%)': VAT
}
), Notify("Error in Saving 1st Patch - "& FirstError.Message, NotificationType.Error, 2000); false,
Patch(
'All data',
Defaults('All data'),
{
Employee: Text_Employee.Text,
'Cost Centre': Dropdown_CostCentre.Selected,
Date: Date_date.SelectedDate,
'Expenses incurred in week ending': Date_ExpIncWE.SelectedDate,
'Description/Notes':TextBox_Description.Value,
VISA: Checkbox_VAT.Checked,
Cash: Checkbox_Cash.Checked,
Transport: Dropdown_Transport.Selected,
'Nights Away':Value(TextBox_NightsAway.Value),
Mileage: Value(TextBox_Mileage.Value),
'Mileage total':Value(TextBox_MileageTotal.Value),
'Type of Expense': Dropdown_TypeofExpense.Selected,
'Expense Total': Value(Textbox_Expensetotal.Value),
'Approved by': Dropdown_Approvedby.Selected,
'Checked by': Dropdown_Checkedby.Selected,
'Paid by': Dropdown_Paidby.Selected,
'End Total': Value(TextBox_EndTotal.Value)
}
), Notify("Error in Saving 2nd Patch - "& FirstError.Message, NotificationType.Error, 2000); false,
Notify("Patch Successful", NotificationType.Success, 1000);
)
Hope this helps