esoftplay-event 0.0.2-q → 0.0.2-s
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/event/order_detail.tsx
CHANGED
|
@@ -1113,12 +1113,7 @@ export default function m(props: EventOrder_detailProps): any {
|
|
|
1113
1113
|
<EventButton label={Number(result.is_shareable) ? /*share_ticket*/esp.lang("event/order_detail", "share_ticket") : esp.lang("event/order_detail", "shared")} onPress={() => {
|
|
1114
1114
|
if (Number(result.is_shareable)) {
|
|
1115
1115
|
LibDialog.confirm(esp.lang("event/order_detail", "share_title"), esp.lang("event/order_detail", "share_msg", esp.appjson().expo.name), esp.lang("event/order_detail", "share_ok"), () => {
|
|
1116
|
-
|
|
1117
|
-
if (esp.isDebug("")) {
|
|
1118
|
-
LibNavigation.navigate('event/order_detail_share', { url: url })
|
|
1119
|
-
} else {
|
|
1120
|
-
LibNavigation.navigate('event/order_share_to', { url: url })
|
|
1121
|
-
}
|
|
1116
|
+
LibNavigation.navigate('event/order_detail_share', { url: url })
|
|
1122
1117
|
}, esp.lang("event/order_detail", "share_no"), () => {
|
|
1123
1118
|
|
|
1124
1119
|
})
|
|
@@ -1132,11 +1127,7 @@ export default function m(props: EventOrder_detailProps): any {
|
|
|
1132
1127
|
result?.par_id != 0 && result?.status == 1 && result?.qty_returnable > 0 &&
|
|
1133
1128
|
<View style={{ padding: 5 }}>
|
|
1134
1129
|
<EventButton label={esp.lang("event/order_detail", "return_ticket")} onPress={() => {
|
|
1135
|
-
|
|
1136
|
-
LibNavigation.navigate('event/order_detail_return', { url: url })
|
|
1137
|
-
} else {
|
|
1138
|
-
dialogSendBack?.current?.show()
|
|
1139
|
-
}
|
|
1130
|
+
LibNavigation.navigate('event/order_detail_return', { url: url })
|
|
1140
1131
|
}} backgroundColor={LibStyle.colorGreen} />
|
|
1141
1132
|
</View>
|
|
1142
1133
|
}
|
|
@@ -160,8 +160,8 @@ export default function m(props: EventOrder_detail_upgradeProps): any {
|
|
|
160
160
|
<LibTextstyle textStyle='m_overline' text={esp.lang("event/order_detail_upgrade", "current_ticket")} style={{ fontSize: 12, margin: 15, marginBottom: 0 }} />
|
|
161
161
|
|
|
162
162
|
<View style={{ ...LibStyle.elevation(2), margin: 15, width: LibStyle.width - 30, borderRadius: 10, backgroundColor: LibStyle.colorBgGrey, padding: 10, height: 100, alignContent: 'center', alignItems: 'center', justifyContent: 'center' }}>
|
|
163
|
-
<EventHtmltext allowFontScaling={false} style={{ marginHorizontal: 5, fontSize: 20, color: "#000", textAlign: 'center', fontWeight: 'bold' }} numberOfLines={2} ellipsizeMode={'tail'}>{dataTicket?.price_name}</EventHtmltext>
|
|
164
|
-
<Text allowFontScaling={false} style={{ color: "#000", marginTop: 10 }}>{LibUtils.money(result?.total_from, dataTicket?.currency)}</Text>
|
|
163
|
+
<EventHtmltext allowFontScaling={false} style={{ marginHorizontal: 5, fontSize: 20, color: "#000", textAlign: 'center', fontWeight: 'bold' }} numberOfLines={2} ellipsizeMode={'tail'}>{result?.price_name_from || dataTicket?.price_name}</EventHtmltext>
|
|
164
|
+
<Text allowFontScaling={false} style={{ color: "#000", marginTop: 10 }}>{LibUtils.money(result?.total_from, result?.currency || dataTicket?.currency)}</Text>
|
|
165
165
|
|
|
166
166
|
<View style={applyStyle({ flexDirection: 'row', alignItems: 'center', justifyContent: 'center', position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 })}>
|
|
167
167
|
<View style={applyStyle({ width: 25, height: 25, borderRadius: 12.5, backgroundColor: "#fff", marginLeft: -12.5 })} />
|
|
@@ -217,7 +217,7 @@ export default function m(props: EventOrder_detail_upgradeProps): any {
|
|
|
217
217
|
dataTicket: {
|
|
218
218
|
url_payment: result?.url_payment,
|
|
219
219
|
url_upgrade: result?.url_upgrade,
|
|
220
|
-
price_name: dataTicket?.price_name,
|
|
220
|
+
price_name: result?.price_name_from || dataTicket?.price_name,
|
|
221
221
|
previous_total: selectedTicket?.selected_ticket?.is_remainer == 0 ? 0 : Number(result?.total_from),//kondisi jika upgrade fixprice
|
|
222
222
|
booking_id: dataTicket?.id,
|
|
223
223
|
qty_upgrade: dataTicket?.qty_upgrade,
|