Wappler 5.8.1, NodeJS 14 Debian 11 - Bullseye, MariaDB 10.5.13, Docker, Digital Ocean, Ubuntu 21.04.1
I have a table setup like this
CREATE TABLE `rezdy_tripletex_vat_split_mapping` (
`rtvsm_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rtvsm_rezdy_product_code` varchar(30) NOT NULL,
`rtvsm_rezdy_price_option_id` bigint(20) unsigned DEFAULT NULL,
`rtvsm_rezdy_price_option_label` varchar(255) DEFAULT NULL,
`rtvsm_tripletex_number` int(10) unsigned DEFAULT NULL,
`rtvsm_tripletex_product_id` int(10) unsigned DEFAULT NULL,
`rtvsm_demo_tripletex_product_id` int(10) unsigned DEFAULT NULL,
`rtvsm_rezdy_advertised_price` decimal(8,2) DEFAULT NULL,
`rtvsm_price_split` decimal(8,2) DEFAULT NULL,
`rtvsm_final_percentage` varchar(30) DEFAULT NULL,
`rtvsm_status` varchar(50) DEFAULT 'Existing',
PRIMARY KEY (`rtvsm_id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4;
I have some entries inside it like this
rtvsm_id | rtvsm_rezdy_product_code | rtvsm_rezdy_price_option_id | rtvsm_rezdy_price_option_label | rtvsm_tripletex_number | rtvsm_tripletex_product_id | rtvsm_demo_tripletex_product_id | rtvsm_rezdy_advertised_price | rtvsm_price_split | rtvsm_final_percentage | rtvsm_status |
---|---|---|---|---|---|---|---|---|---|---|
2260 | DYNRSRFACONLTL | 1819186131514122012 | Quantity | 1375 | 61022811 | 21666538 | 6285.00 | 4776.60 | 0.76 | Confirmed 2023-12-28 |
2261 | DYNRSRFACONLTL | 1819186131514122012 | Quantity | 2375 | 61022812 | 21666539 | 6285.00 | 754.20 | 0.12 | Confirmed 2023-12-28 |
2262 | DYNRSRFACONLTL | 1819186131514122012 | Quantity | 3375 | 61022813 | 21666540 | 6285.00 | 754.20 | 0.12 | Confirmed 2023-12-28 |
The column I am interested in is rtvsm_rezdy_price_option_id, I do a standard database query and get the following result returned
As you can see the number changes from 1819186131514122012
to 1819186131514122000
like it just drops my last 2 digits and changes them from 12 to 00
I have tried this as a custom query with no change, and when i run it in my app the output is also incorrect just as it displays in my screenshot supplied.
I can not change from bigint to something else as the number comes from an external API, and is also sent to an external accounting software API, so I am kind of stuck using big int, or as the accounting system calls it int64.
Anyway, wondering if anyone has any ideas here how i can output the same number as it appears in the database instead of this slightly changed number,