Commit 45828f6e authored by Dio Maulana's avatar Dio Maulana

Hide Tombol Batalkan CC Mandiri ketika status table lock

parent be178cf2
...@@ -1172,30 +1172,36 @@ class CoreBill extends StatelessWidget { ...@@ -1172,30 +1172,36 @@ class CoreBill extends StatelessWidget {
], ],
) )
: const SizedBox() : const SizedBox()
: Column( : (dataBill[0].tableStatus == tableStatusOpen)
children: [ ? Column(
const SizedBox( children: [
height: 12, const SizedBox(
), height: 12,
GestureDetector( ),
onTap: () { GestureDetector(
Api.addCancelPromotion( onTap: () {
dataBill[0].id, Api.addCancelPromotion(
false, dataBill[0].id,
).then((value) { false,
if (value) { ).then((value) {
context.read<ViewBillBloc>().getBill(); if (value) {
} context
}); .read<ViewBillBloc>()
}, .getBill();
child: ButtonComponent( }
buttonColor: cancelColorButton, });
teksButton: 'Batalkan Promo CC Mandiri', },
teksButtonColor: textColorBlack, child: ButtonComponent(
), buttonColor: cancelColorButton,
teksButton: 'Batalkan Promo CC Mandiri',
teksButtonColor: textColorBlack,
),
),
],
)
: const SizedBox(
height: 5,
), ),
],
),
const SizedBox( const SizedBox(
height: 5, height: 5,
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment