esoftplay-event 0.0.2-i → 0.0.2-j

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/config.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "fonts": {
3
- "mono": "mono.ttf",
4
3
  "Arial": "Arial.ttf",
5
4
  "ArialBold": "ArialBold.ttf",
6
5
  "SFProText": "SFProText.ttf",
6
+ "mono": "mono.ttf",
7
7
  "MonoSpace": "MonoSpace.ttf",
8
8
  "DecoNumbers": "DecoNumbers.ttf",
9
9
  "digital": "digital.ttf"
@@ -174,10 +174,16 @@ export default function m(props: EventOrder_detail_upgrade_paymentProps): any {
174
174
 
175
175
  // Gov tax
176
176
  if (dataTicket?.tax_event) {
177
- items.push({
178
- label: esp.lang("bigbang/payment_detail", "tax", String(Number(dataTicket?.tax_event))),
179
- value: LibUtils.money(calculate.tax, currency)
180
- })
177
+ if (Number(dataTicket?.tax_event) !== 0) {
178
+ items.push({
179
+ label: esp.lang("bigbang/payment_detail", "tax", String(Number(dataTicket?.tax_event))),
180
+ value: LibUtils.money(calculate.tax, currency)
181
+ })
182
+ } else
183
+ //@ts-ignore
184
+ items.push({
185
+ caption: esp.lang("bigbang/payment_detail", "tax_include")
186
+ })
181
187
  }
182
188
 
183
189
  // Platform fee
@@ -37,7 +37,7 @@ export default function m(props: EventScan_itemProps): any {
37
37
  <View style={applyStyle({ flexDirection: 'row', justifyContent: 'space-between', alignContent: 'center', alignItems: 'center' })}>
38
38
  <Text allowFontScaling={false} style={applyStyle({ color: props?.colorText ? props?.colorText : "#000", fontSize: 14 })}>{props.item.price_name}</Text>
39
39
  {
40
- props.item.hasOwnProperty('seat_name') &&
40
+ props.item.hasOwnProperty('seat_name') && props?.item?.seat_name != "" &&
41
41
  <View style={applyStyle({ height: 35, width: 35, backgroundColor: "#fff", borderWidth: 1, borderColor: LibStyle.colorPrimary, borderRadius: 4, justifyContent: 'center', alignContent: 'center', alignItems: 'center' })}>
42
42
  <LibIcon name="seat" color={LibStyle.colorPrimary} size={15} />
43
43
  <Text allowFontScaling={false} style={applyStyle({ fontFamily: "Arial", fontSize: 12, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: LibStyle.colorPrimary })}>{props.item.seat_name}</Text>
@@ -73,11 +73,16 @@ export default function m(props: EventTms_add_resultProps): any {
73
73
 
74
74
  new LibCurl('event_tms_access' + LibUtils.objectToUrlParam(post), null, (res, msg) => {
75
75
  if (is_add) {
76
- const updatedPrice = res.price.map((item: any) => {
77
- return { ...item, is_selected: "1" };
78
- });
76
+ const updatedPrice = [...res.price]
77
+ .map((item: any) => {
78
+ return { ...item, is_selected: "1" }
79
+ })
80
+ .sort((a: any, b: any) =>
81
+ a.name.localeCompare(b.name, 'id', { sensitivity: 'base' })
82
+ )
83
+
84
+ const updatedData = { ...res, price: updatedPrice }
79
85
 
80
- const updatedData = { ...res, price: updatedPrice }; // Menggabungkan kembali data dengan price yang telah diperbarui
81
86
  setTicketTypes(updatedData)
82
87
 
83
88
  } else {
@@ -139,7 +144,7 @@ export default function m(props: EventTms_add_resultProps): any {
139
144
 
140
145
  {
141
146
  ticketTypes &&
142
- <View style={{ marginTop: 10 }}>
147
+ <View style={{ marginTop: 10, marginBottom: 10 }}>
143
148
  <LibTextstyle textStyle='m_overline' text={esp.lang("event/tms_add_result", "ticket_type")} style={{ fontSize: 12, marginTop: 15, marginBottom: 15 }} />
144
149
  {
145
150
  ticketTypes?.price?.map((item: any, i: number) => {
@@ -183,7 +183,7 @@ export default function m(props: EventTms_in_hall_failedProps): any {
183
183
  <View key={i} style={{ marginHorizontal: 10, marginBottom: 5, backgroundColor: "#fff", borderRadius: 10, overflow: 'hidden' }}>
184
184
  {
185
185
  item.hasOwnProperty("status_label") && item?.status_label != "" &&
186
- <View style={{ backgroundColor: '#37c2d0', padding: 10, }} >
186
+ <View style={{ backgroundColor: item?.status_scanned == 1 ? '#37c2d0' : '#ffcb3dff', padding: 10, }} >
187
187
  <Text allowFontScaling={false} style={{ fontSize: 16, fontWeight: "bold", fontStyle: "normal", letterSpacing: 1.5, color: item?.status == 1 ? item?.status_background : "#fff" }}>{(item?.status_label)?.toUpperCase()}</Text>
188
188
  </View>
189
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.2-i",
3
+ "version": "0.0.2-j",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {