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