From 7fabef60047edac2b85fc52354e44f1d72a876b6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 10 Oct 2021 20:08:52 -0400 Subject: [PATCH] Stop rounding case/unit cost fields to 2 places for purchase batch --- tailbone/views/purchasing/batch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tailbone/views/purchasing/batch.py b/tailbone/views/purchasing/batch.py index 95c12bb1..c00267a9 100644 --- a/tailbone/views/purchasing/batch.py +++ b/tailbone/views/purchasing/batch.py @@ -693,11 +693,10 @@ class PurchasingBatchView(BatchMasterView): f.set_type('units_mispick', 'quantity') # currency fields - f.set_type('po_unit_cost', 'currency') + # nb. we only show "total" fields as currency, but not case or + # unit cost fields, b/c currency is rounded to 2 places f.set_type('po_total', 'currency') f.set_type('po_total_calculated', 'currency') - f.set_type('invoice_unit_cost', 'currency') - f.set_type('catalog_unit_cost', 'currency') # upc f.set_type('upc', 'gpc')