Added orderrow fields

This commit is contained in:
Niklas Fondberg
2021-04-11 09:03:04 +02:00
parent d76bd3678c
commit b8ff97ce6a
5 changed files with 200 additions and 26 deletions
+11
View File
@@ -34,6 +34,17 @@ export class ProductAPI extends SQLDataSource {
return res;
}
async getMaterial(printId: number): Promise<any> {
// SELECT materialid, material, (price / 100::float) as price FROM "product-materials"
}
// TODO: get product details
async getProductDetails(id: number): Promise<any> {
// SELECT * FROM "product-fields";
// SELECT * FROM "product-products_fields" WHERE productid = 58941;
return null;
}
getBlacklisting(row: any): Array<ProductBlacklist> {
if (!row.blacklisting) {
return [];