presentatiion day
parent
1b58f36d9f
commit
9560438af2
|
@ -80,6 +80,7 @@ class Transaksi extends Controller
|
||||||
'jumlah_produk' => $value['qty'],
|
'jumlah_produk' => $value['qty'],
|
||||||
'harga_produk' => $value['harga'],
|
'harga_produk' => $value['harga'],
|
||||||
'total_harga_produk' => $value['total'],
|
'total_harga_produk' => $value['total'],
|
||||||
|
'diskon_persen' => $value['diskonSatuan'] ?? null,
|
||||||
'keterangan_produk' => $value['keterangan'] ?? null,
|
'keterangan_produk' => $value['keterangan'] ?? null,
|
||||||
];
|
];
|
||||||
$detailPesananModels = \App\Models\DetailPesanan::create($oderDatas);
|
$detailPesananModels = \App\Models\DetailPesanan::create($oderDatas);
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Oswald';
|
/* font-family: 'Oswald'; */
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
/* transform: scaleY(1.5); */
|
/* transform: scaleY(1.5); */
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Oswald';
|
/* font-family: 'Oswald'; */
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
/* transform: scaleY(1.5); */
|
/* transform: scaleY(1.5); */
|
||||||
}
|
}
|
||||||
|
|
|
@ -882,6 +882,14 @@
|
||||||
var diskonSatuan = row.getAttribute('data-diskon-satuan');
|
var diskonSatuan = row.getAttribute('data-diskon-satuan');
|
||||||
var harga = row.getAttribute('data-harga');
|
var harga = row.getAttribute('data-harga');
|
||||||
var total = row.getAttribute('data-total');
|
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) {
|
if (id != null || qty != null || total != null) {
|
||||||
orderMenus.push({
|
orderMenus.push({
|
||||||
|
|
Loading…
Reference in New Issue