Abstract saving to DB.

This commit is contained in:
HenriT
2021-02-16 22:34:50 +02:00
parent 5cf166ca12
commit 320bc5a3ad
4 changed files with 52 additions and 39 deletions

View File

@ -65,6 +65,11 @@ export function validateField(input, field, label) {
return null;
}
export function removeVuexORMFlags(obj) {
delete obj.$id;
delete obj.$isNew;
delete obj.$isDirty;
}
export function generateInvoiceNumber(invoices) {
const date = dayjs()