Fix charge payment method edition (#1738)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
bf700cc100
commit
30c1085b45
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user