Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit d92e7fb6 authored by 65160206's avatar 65160206
Browse files

delete product price

parent 7c9cf134
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,5 @@ export declare class Product {
unit: string;
quantityInStock: number;
pricePerUnit: number;
price: number;
productStocks: ProductStock[];
}
......@@ -39,10 +39,6 @@ __decorate([
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 8 }),
__metadata("design:type", Number)
], Product.prototype, "pricePerUnit", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'float' }),
__metadata("design:type", Number)
], Product.prototype, "price", void 0);
__decorate([
(0, typeorm_1.OneToMany)(() => product_stock_entity_1.ProductStock, (productStock) => productStock.product),
__metadata("design:type", Array)
......
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../src/products/entities/product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAA8E;AAC9E,qCAA4E;AAGrE,IAAM,OAAO,GAAb,MAAM,OAAO;CAwBnB,CAAA;AAxBY,0BAAO;AAElB;IADC,IAAA,gCAAsB,GAAE;;0CACP;AAGlB;IADC,IAAA,gBAAM,GAAE;;2CACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;qCACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACZ;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;;6CAChC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;sCACZ;AAGd;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;;8CACxC;kBAvBnB,OAAO;IADnB,IAAA,gBAAM,EAAC,SAAS,CAAC;GACL,OAAO,CAwBnB"}
\ No newline at end of file
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../src/products/entities/product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAA8E;AAC9E,qCAA4E;AAGrE,IAAM,OAAO,GAAb,MAAM,OAAO;CAqBnB,CAAA;AArBY,0BAAO;AAElB;IADC,IAAA,gCAAsB,GAAE;;0CACP;AAGlB;IADC,IAAA,gBAAM,GAAE;;2CACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;qCACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACZ;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;;6CAChC;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;;8CACxC;kBApBnB,OAAO;IADnB,IAAA,gBAAM,EAAC,SAAS,CAAC;GACL,OAAO,CAqBnB"}
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -21,9 +21,6 @@ export class Product {
@Column({ type: 'decimal', precision: 10, scale: 8 })
pricePerUnit: number;
@Column({ type: 'float' })
price: number;
@OneToMany(() => ProductStock, (productStock) => productStock.product)
productStocks: ProductStock[];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment