Compare commits
2 Commits
dba24938d5
...
366380ae67
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
366380ae67 | ||
|
|
d57ad3e65d |
@ -28,7 +28,7 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'appearance' => 'tampilan',
|
||||
'appearance' => 'Tampilan',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,9 +29,9 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'current_password' => 'kata sandi saat ini',
|
||||
'password' => 'kata sandi baru',
|
||||
'password_confirmation' => 'konfirmasi kata sandi baru',
|
||||
'current_password' => 'Kata Sandi Saat Ini',
|
||||
'password' => 'Kata Sandi Baru',
|
||||
'password_confirmation' => 'Konfirmasi Kata Sandi Baru',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'amount' => 'jumlah',
|
||||
'amount' => 'Jumlah Pembayaran',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'reason' => 'alasan penolakan',
|
||||
'reason' => 'Alasan Penolakan',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,8 +50,8 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'start_date' => 'tanggal mulai',
|
||||
'end_date' => 'tanggal selesai',
|
||||
'start_date' => 'Tanggal Mulai',
|
||||
'end_date' => 'Tanggal Selesai',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,15 +73,15 @@ public function attributes(): array
|
||||
[
|
||||
'description' => 'Keterangan',
|
||||
'materials' => 'Bahan Baku',
|
||||
'materials.*.raw_material_price_id' => 'Bahan Baku',
|
||||
'materials.*.raw_material_price_id' => 'Varian',
|
||||
'materials.*.material_usage' => 'Pemakaian',
|
||||
'materials.*.material_result' => 'Hasil',
|
||||
'materials.*.combination_material_result' => 'Hasil Kombinasi',
|
||||
'results' => 'Hasil Produk',
|
||||
'results.*.product_variant_id' => 'Varian Produk',
|
||||
'results.*.cutting_result' => 'Hasil',
|
||||
'results.*.sample' => 'sample',
|
||||
'results.*.original_outside_sample' => 'Diluar sample',
|
||||
'results.*.sample' => 'Sample',
|
||||
'results.*.original_outside_sample' => 'Diluar Sample',
|
||||
'sewing_cost' => 'Jasa Jahit',
|
||||
'other_cost' => 'Biaya Lainnya',
|
||||
],
|
||||
|
||||
@ -63,9 +63,9 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'status' => 'status',
|
||||
'reason' => 'alasan penolakan',
|
||||
'verification_note' => 'catatan verifikasi',
|
||||
'status' => 'Status',
|
||||
'reason' => 'Alasan Penolakan',
|
||||
'verification_note' => 'Catatan Verifikasi',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'status' => 'status',
|
||||
'status' => 'Status',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -35,9 +35,9 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'product_variant_id' => 'varian produk',
|
||||
'quantity' => 'jumlah',
|
||||
'notes' => 'catatan',
|
||||
'product_variant_id' => 'Varian Produk',
|
||||
'quantity' => 'Jumlah',
|
||||
'notes' => 'Catatan',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,16 +42,16 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'verification_note' => 'catatan verifikasi',
|
||||
'result_prices' => 'harga jual',
|
||||
'result_prices.*.product_variant_id' => 'varian produk',
|
||||
'result_prices.*.prices' => 'harga jual',
|
||||
'result_prices.*.prices.*.type' => 'tipe harga',
|
||||
'result_prices.*.prices.*.price' => 'harga jual',
|
||||
'results' => 'hasil cutting',
|
||||
'results.*.product_variant_id' => 'varian produk',
|
||||
'results.*.good' => 'bagus',
|
||||
'results.*.reject' => 'reject',
|
||||
'verification_note' => 'Catatan Verifikasi',
|
||||
'result_prices' => 'Harga Jual',
|
||||
'result_prices.*.product_variant_id' => 'Varian Produk',
|
||||
'result_prices.*.prices' => 'Harga Jual',
|
||||
'result_prices.*.prices.*.type' => 'Tipe Harga',
|
||||
'result_prices.*.prices.*.price' => 'Harga Jual',
|
||||
'results' => 'Hasil Cutting',
|
||||
'results.*.product_variant_id' => 'Varian Produk',
|
||||
'results.*.good' => 'Bagus',
|
||||
'results.*.reject' => 'Reject',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@ public function attributes(): array
|
||||
'items' => 'Item Stok Opname',
|
||||
'items.*.product_variant_id' => 'Varian Produk',
|
||||
'items.*.physical_stock' => 'Stok Fisik',
|
||||
'items.*.stock_quality' => 'Kualitas',
|
||||
'items.*.notes' => 'Catatan',
|
||||
];
|
||||
}
|
||||
|
||||
@ -41,8 +41,8 @@ public function attributes(): array
|
||||
'hero_image_s3_key' => 'Foto Hero',
|
||||
'about_image' => 'Foto Tentang Kami',
|
||||
'about_image_s3_key' => 'Foto Tentang Kami',
|
||||
'gallery_s3_keys' => 'Foto Lookbook',
|
||||
'gallery_s3_keys.*' => 'Foto Lookbook',
|
||||
'gallery_s3_keys' => 'Koleksi Lookbook',
|
||||
'gallery_s3_keys.*' => 'Koleksi Lookbook',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,8 +33,8 @@ public function rules(): array
|
||||
public function attributes(): array
|
||||
{
|
||||
return [
|
||||
'login' => 'email/username',
|
||||
'password' => 'kata sandi',
|
||||
'login' => 'Email/Username',
|
||||
'password' => 'Kata Sandi',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +36,30 @@ const whatsappText = computed(() => {
|
||||
text += `Deskripsi: ${c.description}\n`;
|
||||
}
|
||||
|
||||
if (c.results?.length) {
|
||||
const groups: Record<string, { name: string; items: typeof c.results }> = {};
|
||||
|
||||
c.results.forEach((result) => {
|
||||
const productName = result.product_variant?.product?.name ?? 'Produk Tidak Diketahui';
|
||||
|
||||
if (!groups[productName]) {
|
||||
groups[productName] = { name: productName, items: [] };
|
||||
}
|
||||
|
||||
groups[productName].items.push(result);
|
||||
});
|
||||
|
||||
text += `\n*Hasil Produk:*\n`;
|
||||
|
||||
Object.values(groups).forEach((group, index) => {
|
||||
text += `${index + 1}. ${group.name}\n`;
|
||||
|
||||
group.items.forEach((item) => {
|
||||
text += ` - ${item.product_variant?.name ?? '-'}: ${item.cutting_result} pcs\n`;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
text += `\nTotal Hasil Cutting: ${c.total_result_pieces ?? 0} pcs\n`;
|
||||
text += `\nLihat detail lengkap:\n${shareLink.value}`;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user