Add container weight tracking for weigh-based concentrate audits
Build and push image / build (push) Successful in 1m6s
Build and push image / build (push) Successful in 1m6s
Record the total weight of a jar (product + container) at acquisition so audits can be done by simply re-weighing the sealed jar. The tare is derived (containerWeight − productWeight), and the audit flow offers a "Weigh container" toggle that auto-calculates remaining product from the scale reading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,6 +24,7 @@ type InventoryRow = {
|
||||
cbd: number;
|
||||
total_cannabinoids: number;
|
||||
weight: number;
|
||||
container_weight: number | null;
|
||||
last_audit_weight: number | null;
|
||||
count_original: number;
|
||||
count_last_audit: number | null;
|
||||
@@ -101,6 +102,7 @@ bootstrapRouter.get("/bootstrap", (_req, res) => {
|
||||
cbd: i.cbd,
|
||||
totalCannabinoids: i.total_cannabinoids,
|
||||
weight: i.weight,
|
||||
containerWeight: i.container_weight,
|
||||
lastAuditWeight: i.last_audit_weight,
|
||||
countOriginal: i.count_original,
|
||||
countLastAudit: i.count_last_audit,
|
||||
|
||||
Reference in New Issue
Block a user