I am working with a jsstore table called tblInvoice
const tblInvoice: ITable = {
name: "invoice",
columns: {
// Here "Id" is name of column
id: { autoIncrement: true, primaryKey: true, notNull: false },
branchId: { notNull: true, dataType: DATA_TYPE.Number },
invoiceNumber: { notNull: false, dataType: DATA_TYPE.String },
totalDiscount: { notNull: true, dataType: DATA_TYPE.Number },
amountPaid: { notNull: true, dataType: DATA_TYPE.Number },
remainingAmount: { notNull: true, dataType: DATA_TYPE.Number },
createAt: { notNull: true, dataType: DATA_TYPE.DateTime },
client: { notNull: false, dataType: DATA_TYPE.Object },
total: { notNull: true, dataType: DATA_TYPE.Number },
netTotal: { notNull: true, dataType: DATA_TYPE.Number },
productsCount: { notNull: true, dataType: DATA_TYPE.Number },
items: { notNull: true, dataType: DATA_TYPE.Array, multiEntry: true },
},
version: this.currentVersion,
};
My current task is to modify the property value in the column items, specifically the quantity