Fix charge payment method edition (#1738)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-04-13 14:41:07 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent bf700cc100
commit 30c1085b45
3 changed files with 3 additions and 4 deletions
@@ -149,8 +149,7 @@ export class EditChargeComponent implements OnInit {
submit() {
const charges = this.chargeForm.getRawValue();
charges.locale = this.settingsService.language.code;
charges.chargePaymentMode = this.chargeData.chargePaymentMode.id;
if(charges.taxGroupId.value===''){
if (charges.taxGroupId.value === '') {
delete charges.taxGroupId;
}
this.productsService.updateCharge(this.chargeData.id.toString(), charges)