mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
also for sync
sync
This commit is contained in:
parent
472985351a
commit
dda9e3847f
2 changed files with 2 additions and 2 deletions
|
|
@ -256,7 +256,7 @@ func handleCreateItem(bs *booking.Service, hc *config.Host) echo.HandlerFunc {
|
||||||
return fmt.Errorf("invalid item name %q", ni.Item)
|
return fmt.Errorf("invalid item name %q", ni.Item)
|
||||||
}
|
}
|
||||||
|
|
||||||
newItems := bs.CreateItem(b.Id, itm, ni.Quantity, ni.Price, ni.PaymentMethod, b.CustomerNumber)
|
newItems := bs.CreateItem(b.Id, itm, ni.Quantity, ni.Price, ni.PaymentMethod, b.CustomerNumber, b.Platform)
|
||||||
|
|
||||||
// TODO: fix the calendar integration
|
// TODO: fix the calendar integration
|
||||||
// if err = cs.Create(
|
// if err = cs.Create(
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ func (bs Service) ParseFromApi(rawContent string) (*Booking, error) {
|
||||||
|
|
||||||
b := bs.Create(*formatDate(arrivalDate), *formatDate(departureDate), customerName, "", customerEmail, "Booking", customerNumber, commissionAmount, &externalId)
|
b := bs.Create(*formatDate(arrivalDate), *formatDate(departureDate), customerName, "", customerEmail, "Booking", customerNumber, commissionAmount, &externalId)
|
||||||
if item, ok := config.NewHost().Items[itemName]; ok {
|
if item, ok := config.NewHost().Items[itemName]; ok {
|
||||||
bs.CreateItem(b.Id, item, stayLength, standardRate, "Card", customerNumber)
|
bs.CreateItem(b.Id, item, stayLength, standardRate, "Card", customerNumber, b.Platform)
|
||||||
}
|
}
|
||||||
|
|
||||||
return b, nil
|
return b, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue