mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat: adjust penjualan calculation and delivery order logic
This commit is contained in:
@@ -15,7 +15,7 @@ export type MarketingFormValues = {
|
||||
total_price?: string | number;
|
||||
marketing_type?: { value: string; label: string } | null;
|
||||
convertion_unit?: { value: string; label: string } | null;
|
||||
week?: { value?: number; label?: string } | null;
|
||||
week?: number | null;
|
||||
weight_per_convertion?: number | null;
|
||||
price_per_convertion?: number | null;
|
||||
total_peti?: number | null;
|
||||
@@ -100,7 +100,7 @@ export const calculateAyamPullet = (
|
||||
): void => {
|
||||
const { values, setFieldValue } = ctx;
|
||||
const unitPrice = Number(values.unit_price || 0);
|
||||
const week = Number(values.week?.value || 0);
|
||||
const week = Number(values.week || 0);
|
||||
const qty = Number(values.qty || 0);
|
||||
const avgWeight = Number(values.avg_weight || 0);
|
||||
const totalWeight = Number(values.total_weight || 0);
|
||||
|
||||
Reference in New Issue
Block a user