mirror of
https://github.com/frappe/books.git
synced 2026-08-24 02:24:17 -05:00
Merge pull request #1350 from mukulpadwal/fix/clear-default-fields
fix: allow clearing of default fields (Sales Invoice Terms & Purchase Invoice Terms)
This commit is contained in:
@@ -285,7 +285,7 @@ export default defineComponent({
|
||||
delete this.errors[fieldname];
|
||||
|
||||
try {
|
||||
await this.doc?.set(fieldname, value);
|
||||
await this.doc?.set(fieldname, value ?? '');
|
||||
} catch (err) {
|
||||
if (!(err instanceof Error)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user