presentatiion day

auth
Zelda Ababil 2024-01-20 13:25:43 +07:00
parent 1b58f36d9f
commit 9560438af2
4 changed files with 11 additions and 2 deletions

View File

@ -80,6 +80,7 @@ class Transaksi extends Controller
'jumlah_produk' => $value['qty'],
'harga_produk' => $value['harga'],
'total_harga_produk' => $value['total'],
'diskon_persen' => $value['diskonSatuan'] ?? null,
'keterangan_produk' => $value['keterangan'] ?? null,
];
$detailPesananModels = \App\Models\DetailPesanan::create($oderDatas);

View File

@ -22,7 +22,7 @@
}
body {
font-family: 'Oswald';
/* font-family: 'Oswald'; */
font-size: 8pt;
/* transform: scaleY(1.5); */
}

View File

@ -22,7 +22,7 @@
}
body {
font-family: 'Oswald';
/* font-family: 'Oswald'; */
font-size: 8pt;
/* transform: scaleY(1.5); */
}

View File

@ -882,6 +882,14 @@
var diskonSatuan = row.getAttribute('data-diskon-satuan');
var harga = row.getAttribute('data-harga');
var total = row.getAttribute('data-total');
if (diskonSatuan != 0 && diskonSatuan != null && diskonSatuan != undefined) {
total = total - (total * (diskonSatuan / 100));
} else {
total = total
}
console.log('id : ' + id + ' | nama : ' + nama + ' | qty : ' + qty + ' | diskonSatuan : ' +
diskonSatuan +
' | harga : ' + harga + ' | total : ' + total);
if (id != null || qty != null || total != null) {
orderMenus.push({