mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE-316): Clarify instructions in uniformity template
This commit is contained in:
@@ -14,28 +14,26 @@ export const generateUniformityTemplate = (
|
|||||||
const flockPeriod = projectFlockKandangLookup.project_flock?.period || 1;
|
const flockPeriod = projectFlockKandangLookup.project_flock?.period || 1;
|
||||||
const locationName =
|
const locationName =
|
||||||
projectFlockKandangLookup.project_flock?.location?.name || '';
|
projectFlockKandangLookup.project_flock?.location?.name || '';
|
||||||
const areaName = projectFlockKandangLookup.project_flock?.area?.name || '';
|
|
||||||
|
|
||||||
const instructions = [
|
const instructions = [
|
||||||
['PETUNJUK PENGISIAN DATA UNIFORMITY'],
|
['PETUNJUK PENGISIAN DATA UNIFORMITY'],
|
||||||
[''],
|
[''],
|
||||||
['INFORMASI PROYEK'],
|
['INFORMASI FLOCK'],
|
||||||
['Location', locationName],
|
['Lokasi', locationName],
|
||||||
['Area', areaName],
|
['Nama Flock', flockName],
|
||||||
['Flock Name', flockName],
|
|
||||||
['Periode', flockPeriod],
|
['Periode', flockPeriod],
|
||||||
['Kandang', kandangName],
|
['Kandang', kandangName],
|
||||||
['Total Populasi', formatNumber(availableQuantity)],
|
['Total Populasi', formatNumber(availableQuantity)],
|
||||||
['Jumlah Sampel (2%)', formatNumber(sampleSize)],
|
['Jumlah Sampel (2%)', formatNumber(sampleSize)],
|
||||||
[''],
|
[''],
|
||||||
['CARA PENGISIAN:'],
|
['CARA PENGISIAN:'],
|
||||||
['1. Pindah ke sheet "Data" untuk mengisi data BW (Body Weight)'],
|
['1. Pindah ke sheet ke-2 untuk mengisi data BW (Body Weight)'],
|
||||||
[
|
[
|
||||||
'2. Kolom NO sudah terisi otomatis dari 1 sampai ' +
|
'2. Kolom NO sudah terisi otomatis dari 1 sampai ' +
|
||||||
formatNumber(sampleSize),
|
formatNumber(sampleSize),
|
||||||
],
|
],
|
||||||
['3. Isi kolom BW dengan berat badan ayam dalam gram'],
|
['3. Isi kolom BW dengan berat badan ayam dalam gram'],
|
||||||
['4. Pastikan semua baris terisi dengan data yang valid'],
|
['4. Pastikan baris terisi dengan data yang valid'],
|
||||||
['5. Simpan file dan upload kembali ke sistem'],
|
['5. Simpan file dan upload kembali ke sistem'],
|
||||||
[''],
|
[''],
|
||||||
['FORMAT DATA:'],
|
['FORMAT DATA:'],
|
||||||
@@ -43,9 +41,16 @@ export const generateUniformityTemplate = (
|
|||||||
['• BW: Berat badan dalam gram (contoh: 1500, 1650, 1800)'],
|
['• BW: Berat badan dalam gram (contoh: 1500, 1650, 1800)'],
|
||||||
[''],
|
[''],
|
||||||
['CATATAN:'],
|
['CATATAN:'],
|
||||||
['• Data yang diisi adalah sampel 2% dari total populasi'],
|
[
|
||||||
['• Pastikan timbangan dalam kondisi baik dan terkalibrasi'],
|
'1. File ini dibuat secara otomatis berdasarkan ukuran sampling (2% dari total populasi).',
|
||||||
['• Lakukan pengukuran pada waktu yang sama setiap hari'],
|
],
|
||||||
|
[
|
||||||
|
'2. Jumlah baris sudah ditentukan dan boleh ditambah asal angkanya berurutan.',
|
||||||
|
],
|
||||||
|
['3. Silakan isi berat badan (gram) untuk setiap ayam yang disampling.'],
|
||||||
|
[
|
||||||
|
'4. Biarkan sel kosong jika data tidak tersedia, jangan dihapus nomornya.',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
const instructionSheet = XLSX.utils.aoa_to_sheet(instructions);
|
const instructionSheet = XLSX.utils.aoa_to_sheet(instructions);
|
||||||
|
|||||||
Reference in New Issue
Block a user